Class ORemoteFetchListener
java.lang.Object
com.orientechnologies.orient.core.fetch.remote.ORemoteFetchListener
- All Implemented Interfaces:
OFetchListener
Fetch listener for class
Whenever a record has to be fetched it will be added to the list of records to send
- Author:
- Luca Molino (molino.luca--at--gmail.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetchLinked(ODocument iRoot, Object iUserObject, String iFieldName, ODocument iLinked, OFetchContext iContext) Fetch the linked field.fetchLinkedCollectionValue(ODocument iRoot, Object iUserObject, String iFieldName, ODocument iLinked, OFetchContext iContext) fetchLinkedMapEntry(ODocument iRoot, Object iUserObject, String iFieldName, String iKey, ODocument iLinked, OFetchContext iContext) voidparseLinked(ODocument iRootRecord, OIdentifiable iLinked, Object iUserObject, String iFieldName, OFetchContext iContext) voidparseLinkedCollectionValue(ODocument iRootRecord, OIdentifiable iLinked, Object iUserObject, String iFieldName, OFetchContext iContext) voidprocessStandardField(ODocument iRecord, Object iFieldValue, String iFieldName, OFetchContext iContext, Object iusObject, String iFormat, OType filedType) booleanReturns true if the listener fetches he fields.protected abstract voidsendRecord(ORecord iLinked) voidskipStandardField(ODocument iRecord, String iFieldName, OFetchContext iContext, Object iUserObject, String iFormat)
-
Constructor Details
-
ORemoteFetchListener
public ORemoteFetchListener()
-
-
Method Details
-
requireFieldProcessing
public boolean requireFieldProcessing()Description copied from interface:OFetchListenerReturns true if the listener fetches he fields.- Specified by:
requireFieldProcessingin interfaceOFetchListener
-
sendRecord
-
processStandardField
public void processStandardField(ODocument iRecord, Object iFieldValue, String iFieldName, OFetchContext iContext, Object iusObject, String iFormat, OType filedType) throws OFetchException - Specified by:
processStandardFieldin interfaceOFetchListener- Throws:
OFetchException
-
parseLinked
public void parseLinked(ODocument iRootRecord, OIdentifiable iLinked, Object iUserObject, String iFieldName, OFetchContext iContext) throws OFetchException - Specified by:
parseLinkedin interfaceOFetchListener- Throws:
OFetchException
-
parseLinkedCollectionValue
public void parseLinkedCollectionValue(ODocument iRootRecord, OIdentifiable iLinked, Object iUserObject, String iFieldName, OFetchContext iContext) throws OFetchException - Specified by:
parseLinkedCollectionValuein interfaceOFetchListener- Throws:
OFetchException
-
fetchLinkedMapEntry
public Object fetchLinkedMapEntry(ODocument iRoot, Object iUserObject, String iFieldName, String iKey, ODocument iLinked, OFetchContext iContext) throws OFetchException - Specified by:
fetchLinkedMapEntryin interfaceOFetchListener- Throws:
OFetchException
-
fetchLinkedCollectionValue
public Object fetchLinkedCollectionValue(ODocument iRoot, Object iUserObject, String iFieldName, ODocument iLinked, OFetchContext iContext) throws OFetchException - Specified by:
fetchLinkedCollectionValuein interfaceOFetchListener- Throws:
OFetchException
-
fetchLinked
public Object fetchLinked(ODocument iRoot, Object iUserObject, String iFieldName, ODocument iLinked, OFetchContext iContext) throws OFetchException Description copied from interface:OFetchListenerFetch the linked field.- Specified by:
fetchLinkedin interfaceOFetchListener- Parameters:
iRoot-iFieldName-iLinked-- Returns:
- null if the fetching must stop, otherwise the current field value
- Throws:
OFetchException
-
skipStandardField
public void skipStandardField(ODocument iRecord, String iFieldName, OFetchContext iContext, Object iUserObject, String iFormat) throws OFetchException - Specified by:
skipStandardFieldin interfaceOFetchListener- Throws:
OFetchException
-