Interface OUserObject2RecordHandler
- All Known Subinterfaces:
ODatabaseObject
- All Known Implementing Classes:
OObjectDatabaseTx
public interface OUserObject2RecordHandler
Basic interface to handle the mapping between user objects and records. In some database
implementation the user objects can be the records themselves.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsUserObjectByRID(ORID iRID) Tells if e user object exists for a certain RecordId.getRecordByUserObject(Object iUserObject, boolean iCreateIfNotAvailable) Returns the record associated to a user object.getUserObjectByRecord(OIdentifiable iRecord, String iFetchPlan) Returns the user object associated to a record.voidregisterUserObject(Object iUserObject, ORecord iRecord) Registers the association between a user object and a record.voidregisterUserObjectAfterLinkSave(ORecord iRecord) Registers the saved linked record.
-
Method Details
-
getRecordByUserObject
Returns the record associated to a user object. If iCreateIfNotAvailable is true, then a new record instance will be created transparently.- Parameters:
iUserObject- User objectiCreateIfNotAvailable- Create the record if not available- Returns:
- The record associated
-
getUserObjectByRecord
Returns the user object associated to a record. If the record is not loaded yet, iFetchPlan will be used as fetch plan.- Parameters:
iRecord- RecordiFetchPlan- If the record is not loaded yet, use this as fetch plan- Returns:
- The user object associated
-
existsUserObjectByRID
Tells if e user object exists for a certain RecordId. -
registerUserObject
Registers the association between a user object and a record.- Parameters:
iUserObject- User objectiRecord- record
-
registerUserObjectAfterLinkSave
Registers the saved linked record. Needed only to make the old object database implementation work- Parameters:
iRecord- record
-