
public class OJSONFetchContext extends Object implements OFetchContext
| Modifier and Type | Field and Description |
|---|---|
protected Stack<ODocument> |
collectionStack |
protected OJSONWriter |
jsonWriter |
protected ORecordSerializerJSON.FormatSettings |
settings |
protected Stack<StringBuilder> |
typesStack |
| Constructor and Description |
|---|
OJSONFetchContext(OJSONWriter iJsonWriter,
ORecordSerializerJSON.FormatSettings iSettings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fetchEmbeddedDocuments() |
int |
getIndentLevel() |
OJSONWriter |
getJsonWriter() |
boolean |
isInCollection(ODocument record) |
protected void |
manageTypes(String iFieldName,
Object iFieldValue,
OType fieldType) |
void |
onAfterArray(ODocument iRootRecord,
String iFieldName,
Object iUserObject) |
void |
onAfterCollection(ODocument iRootRecord,
String iFieldName,
Object iUserObject) |
void |
onAfterDocument(ODocument iRootRecord,
ODocument iDocument,
String iFieldName,
Object iUserObject) |
void |
onAfterFetch(ODocument iRootRecord) |
void |
onAfterMap(ODocument iRootRecord,
String iFieldName,
Object iUserObject) |
void |
onAfterStandardField(Object iFieldValue,
String iFieldName,
Object iUserObject,
OType fieldType) |
void |
onBeforeArray(ODocument iRootRecord,
String iFieldName,
Object iUserObject,
OIdentifiable[] iArray) |
void |
onBeforeCollection(ODocument iRootRecord,
String iFieldName,
Object iUserObject,
Iterable<?> iterable) |
void |
onBeforeDocument(ODocument iRootRecord,
ODocument iDocument,
String iFieldName,
Object iUserObject) |
void |
onBeforeFetch(ODocument iRootRecord) |
void |
onBeforeMap(ODocument iRootRecord,
String iFieldName,
Object iUserObject) |
void |
onBeforeStandardField(Object iFieldValue,
String iFieldName,
Object iUserObject,
OType fieldType) |
void |
writeLinkedAttribute(OIdentifiable iRecord,
String iFieldName) |
void |
writeLinkedValue(OIdentifiable iRecord,
String iFieldName) |
void |
writeSignature(OJSONWriter json,
ORecord record) |
protected final OJSONWriter jsonWriter
protected final ORecordSerializerJSON.FormatSettings settings
protected final Stack<StringBuilder> typesStack
public OJSONFetchContext(OJSONWriter iJsonWriter, ORecordSerializerJSON.FormatSettings iSettings)
public void onBeforeFetch(ODocument iRootRecord)
onBeforeFetch in interface OFetchContextpublic void onAfterFetch(ODocument iRootRecord)
onAfterFetch in interface OFetchContextpublic void onBeforeStandardField(Object iFieldValue, String iFieldName, Object iUserObject, OType fieldType)
onBeforeStandardField in interface OFetchContextpublic void onAfterStandardField(Object iFieldValue, String iFieldName, Object iUserObject, OType fieldType)
onAfterStandardField in interface OFetchContextpublic void onBeforeArray(ODocument iRootRecord, String iFieldName, Object iUserObject, OIdentifiable[] iArray)
onBeforeArray in interface OFetchContextpublic void onAfterArray(ODocument iRootRecord, String iFieldName, Object iUserObject)
onAfterArray in interface OFetchContextpublic void onBeforeCollection(ODocument iRootRecord, String iFieldName, Object iUserObject, Iterable<?> iterable)
onBeforeCollection in interface OFetchContextpublic void onAfterCollection(ODocument iRootRecord, String iFieldName, Object iUserObject)
onAfterCollection in interface OFetchContextpublic void onBeforeMap(ODocument iRootRecord, String iFieldName, Object iUserObject)
onBeforeMap in interface OFetchContextpublic void onAfterMap(ODocument iRootRecord, String iFieldName, Object iUserObject)
onAfterMap in interface OFetchContextpublic void onBeforeDocument(ODocument iRootRecord, ODocument iDocument, String iFieldName, Object iUserObject)
onBeforeDocument in interface OFetchContextpublic void onAfterDocument(ODocument iRootRecord, ODocument iDocument, String iFieldName, Object iUserObject)
onAfterDocument in interface OFetchContextpublic void writeLinkedValue(OIdentifiable iRecord, String iFieldName) throws IOException
IOExceptionpublic void writeLinkedAttribute(OIdentifiable iRecord, String iFieldName) throws IOException
IOExceptionpublic boolean isInCollection(ODocument record)
public OJSONWriter getJsonWriter()
public int getIndentLevel()
public void writeSignature(OJSONWriter json, ORecord record) throws IOException
IOExceptionpublic boolean fetchEmbeddedDocuments()
fetchEmbeddedDocuments in interface OFetchContextCopyright © 2009–2025 OrientDB. All rights reserved.