Class OJSONFetchContext
java.lang.Object
com.orientechnologies.orient.core.fetch.json.OJSONFetchContext
- All Implemented Interfaces:
OFetchContext
- Author:
- Luca Molino (molino.luca--at--gmail.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final OJSONWriterprotected final FormatSettingsprotected final Stack<StringBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleanisInCollection(ODocument record) protected voidmanageTypes(String fieldName, Object fieldValue, OType fieldType) voidonAfterArray(ODocument iRootRecord, String iFieldName, Object iUserObject) voidonAfterCollection(ODocument iRootRecord, String iFieldName, Object iUserObject) voidonAfterDocument(ODocument iRootRecord, ODocument iDocument, String iFieldName, Object iUserObject) voidonAfterFetch(ODocument rootRecord) voidonAfterMap(ODocument iRootRecord, String iFieldName, Object iUserObject) voidonAfterStandardField(Object iFieldValue, String iFieldName, Object iUserObject, OType fieldType) voidonBeforeArray(ODocument iRootRecord, String iFieldName, Object iUserObject, OIdentifiable[] iArray) voidonBeforeCollection(ODocument rootRecord, String fieldName, Object userObject, Iterable<?> iterable) voidonBeforeDocument(ODocument iRootRecord, ODocument iDocument, String iFieldName, Object iUserObject) voidonBeforeFetch(ODocument rootRecord) voidonBeforeMap(ODocument iRootRecord, String iFieldName, Object iUserObject) voidonBeforeStandardField(Object iFieldValue, String iFieldName, Object iUserObject, OType fieldType) voidwriteLinkedAttribute(OIdentifiable iRecord, String iFieldName) voidwriteLinkedValue(OIdentifiable iRecord, String iFieldName) voidwriteSignature(OJSONWriter json, ORecord record)
-
Field Details
-
jsonWriter
-
settings
-
typesStack
-
collectionStack
-
-
Constructor Details
-
OJSONFetchContext
-
-
Method Details
-
onBeforeFetch
- Specified by:
onBeforeFetchin interfaceOFetchContext
-
onAfterFetch
- Specified by:
onAfterFetchin interfaceOFetchContext
-
onBeforeStandardField
public void onBeforeStandardField(Object iFieldValue, String iFieldName, Object iUserObject, OType fieldType) - Specified by:
onBeforeStandardFieldin interfaceOFetchContext
-
onAfterStandardField
public void onAfterStandardField(Object iFieldValue, String iFieldName, Object iUserObject, OType fieldType) - Specified by:
onAfterStandardFieldin interfaceOFetchContext
-
onBeforeArray
public void onBeforeArray(ODocument iRootRecord, String iFieldName, Object iUserObject, OIdentifiable[] iArray) - Specified by:
onBeforeArrayin interfaceOFetchContext
-
onAfterArray
- Specified by:
onAfterArrayin interfaceOFetchContext
-
onBeforeCollection
public void onBeforeCollection(ODocument rootRecord, String fieldName, Object userObject, Iterable<?> iterable) - Specified by:
onBeforeCollectionin interfaceOFetchContext
-
onAfterCollection
- Specified by:
onAfterCollectionin interfaceOFetchContext
-
onBeforeMap
- Specified by:
onBeforeMapin interfaceOFetchContext
-
onAfterMap
- Specified by:
onAfterMapin interfaceOFetchContext
-
onBeforeDocument
public void onBeforeDocument(ODocument iRootRecord, ODocument iDocument, String iFieldName, Object iUserObject) - Specified by:
onBeforeDocumentin interfaceOFetchContext
-
onAfterDocument
public void onAfterDocument(ODocument iRootRecord, ODocument iDocument, String iFieldName, Object iUserObject) - Specified by:
onAfterDocumentin interfaceOFetchContext
-
writeLinkedValue
- Throws:
IOException
-
writeLinkedAttribute
- Throws:
IOException
-
isInCollection
-
getJsonWriter
-
getIndentLevel
public int getIndentLevel() -
writeSignature
- Throws:
IOException
-
fetchEmbeddedDocuments
public boolean fetchEmbeddedDocuments()- Specified by:
fetchEmbeddedDocumentsin interfaceOFetchContext
-
manageTypes
-