Class OJSONFetchListener
java.lang.Object
com.orientechnologies.orient.core.fetch.json.OJSONFetchListener
- All Implemented Interfaces:
OFetchListener
- Author:
- Luca Molino (molino.luca--at--gmail.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetchLinked(ODocument iRecord, 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 iRecord, 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) voidprocessStandardCollectionValue(Object iFieldValue, 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.voidskipStandardField(ODocument iRecord, String iFieldName, OFetchContext iContext, Object iUserObject, String iFormat)
-
Constructor Details
-
OJSONFetchListener
public OJSONFetchListener()
-
-
Method Details
-
requireFieldProcessing
public boolean requireFieldProcessing()Description copied from interface:OFetchListenerReturns true if the listener fetches he fields.- Specified by:
requireFieldProcessingin interfaceOFetchListener
-
processStandardField
public void processStandardField(ODocument iRecord, Object iFieldValue, String iFieldName, OFetchContext iContext, Object iusObject, String iFormat, OType filedType) - Specified by:
processStandardFieldin interfaceOFetchListener
-
processStandardCollectionValue
public void processStandardCollectionValue(Object iFieldValue, OFetchContext iContext) throws OFetchException - Throws:
OFetchException
-
fetchLinked
public Object fetchLinked(ODocument iRecord, Object iUserObject, String iFieldName, ODocument iLinked, OFetchContext iContext) throws OFetchException Description copied from interface:OFetchListenerFetch the linked field.- Specified by:
fetchLinkedin interfaceOFetchListener- Parameters:
iRecord-iFieldName-iLinked-- Returns:
- null if the fetching must stop, otherwise the current field value
- Throws:
OFetchException
-
fetchLinkedMapEntry
public Object fetchLinkedMapEntry(ODocument iRecord, Object iUserObject, String iFieldName, String iKey, ODocument iLinked, OFetchContext iContext) throws OFetchException - Specified by:
fetchLinkedMapEntryin 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
-
fetchLinkedCollectionValue
public Object fetchLinkedCollectionValue(ODocument iRoot, Object iUserObject, String iFieldName, ODocument iLinked, OFetchContext iContext) throws OFetchException - Specified by:
fetchLinkedCollectionValuein interfaceOFetchListener- Throws:
OFetchException
-
skipStandardField
public void skipStandardField(ODocument iRecord, String iFieldName, OFetchContext iContext, Object iUserObject, String iFormat) throws OFetchException - Specified by:
skipStandardFieldin interfaceOFetchListener- Throws:
OFetchException
-