public class ODocument extends ORecordAbstract implements Iterable<Map.Entry<String,Object>>, ORecordSchemaAware, ODetachable, Externalizable, OElement
ORecordElement.STATUS
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowChainedAccess |
protected static String[] |
EMPTY_STRINGS |
protected Map<String,ODocumentEntry> |
fields |
protected int |
fieldSize |
protected boolean |
lazyLoad |
protected boolean |
ordered |
protected WeakReference<ORecordElement> |
owner |
protected OPropertyAccess |
propertyAccess |
protected OPropertyEncryption |
propertyEncryption |
static byte |
RECORD_TYPE |
protected OImmutableSchema |
schema |
protected boolean |
trackingChanges |
contentChanged, dirty, dirtyManager, recordFormat, recordId, recordVersion, size, source, status
Constructor and Description |
---|
ODocument()
Internal constructor used on unmarshalling.
|
ODocument(byte[] iSource)
Deprecated.
|
ODocument(InputStream iSource)
Creates a new instance by the raw stream usually read from the database.
|
ODocument(Map<?,Object> iFieldMap)
Fills a document passing a map of key/values where the key is the field name and the value the
field's value.
|
ODocument(Object[] iFields)
Fills a document passing the field array in form of pairs of field name and value.
|
ODocument(OClass iClass)
Creates a new instance in memory of the specified schema class.
|
ODocument(ODatabaseSession database)
Internal constructor used on unmarshalling.
|
ODocument(ODatabaseSession session,
String iClassName)
Creates a new instance in memory of the specified class.
|
ODocument(ORID iRID)
Creates a new instance in memory linked by the Record Id to the persistent one.
|
ODocument(String iClassName)
Creates a new instance in memory of the specified class.
|
ODocument(String iFieldName,
Object iFieldValue,
Object... iFields)
Fills a document passing the field names/values pair, where the first pair is mandatory.
|
ODocument(String iClassName,
ORID iRID)
Creates a new instance in memory of the specified class, linked by the Record Id to the
persistent one.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
accessProperty(String property) |
protected void |
addOwner(ORecordElement iOwner)
Internal.
|
Optional<OEdge> |
asEdge()
Returns an instance of OEdge representing current element
|
Optional<OVertex> |
asVertex()
Returns an instance of OVertex representing current element
|
protected void |
autoConvertFieldsToClass(ODatabaseDocumentInternal database) |
protected void |
autoConvertValues() |
protected void |
checkClass(ODatabaseDocumentInternal database) |
protected String |
checkFieldName(String iFieldName) |
protected boolean |
checkForFields(String... iFields) |
ODocument |
clear()
Clears all the field values and types.
|
protected void |
clearSource() |
protected void |
clearTrackData() |
protected void |
clearTransactionTrackData() |
boolean |
containsField(String iFieldName)
Checks if a field exists.
|
protected void |
convertAllMultiValuesToTrackedVersions() |
ODocument |
copy()
Copies the current instance to a new one.
|
ORecordAbstract |
copyTo(ORecordAbstract iDestination)
Copies all the fields into iDestination document.
|
boolean |
deserializeFields(String... iFields) |
boolean |
detach()
Detaches all the connected records.
|
boolean |
equals(Object obj) |
Object |
eval(String iExpression)
Evaluates a SQL expression against current document.
|
Object |
eval(String iExpression,
OCommandContext iContext)
Evaluates a SQL expression against current document by passing a context.
|
<RET> RET |
field(String iFieldName)
Reads the field value.
|
<RET> RET |
field(String iFieldName,
Class<?> iFieldType)
Reads the field value forcing the return type.
|
ODocument |
field(String iFieldName,
Object iPropertyValue)
Writes the field value.
|
ODocument |
field(String iFieldName,
Object iPropertyValue,
OType... iFieldType)
Writes the field value forcing the type.
|
<RET> RET |
field(String iFieldName,
OType iFieldType)
Reads the field value forcing the return type.
|
String[] |
fieldNames()
Returns the set of field names.
|
int |
fields()
Returns the number of fields in memory.
|
ODocument |
fields(Map<String,Object> iMap)
Deprecated.
|
ODocument |
fields(String iFieldName,
Object iFieldValue,
Object... iFields)
Fills a document passing the field names/values.
|
OType |
fieldType(String iFieldName)
Returns the forced field type if any.
|
Object[] |
fieldValues()
Returns the array of field values.
|
protected ORecordAbstract |
fill(ORID iRid,
int iVersion,
byte[] iBuffer,
boolean iDirty) |
protected ORecordAbstract |
fill(ORID iRid,
int iVersion,
byte[] iBuffer,
boolean iDirty,
ODatabaseDocumentInternal db) |
protected void |
fillClassIfNeed(String iClassName) |
ODocument |
fromJSON(InputStream iContentResult) |
ODocument |
fromJSON(String iSource)
Fills the record parsing the content in JSON format.
|
ODocument |
fromJSON(String iSource,
boolean needReload) |
ODocument |
fromJSON(String iSource,
String iOptions) |
ODocument |
fromMap(Map<String,?> iMap)
Fills a document passing the field names/values as a Map String,Object where the keys are the
field names and the values are the field values.
|
ODocument |
fromStream(byte[] iRecordBuffer)
Unmarshalls the object.
|
void |
fromString(String iValue)
Deprecated.
|
String |
getClassName()
Returns the class name associated to the current record.
|
OMultiValueChangeTimeLine<Object,Object> |
getCollectionTimeLine(String iFieldName) |
String[] |
getDirtyFields()
Returns list of changed fields.
|
protected List<Map.Entry<String,ODocumentEntry>> |
getFilteredEntries() |
protected OGlobalProperty |
getGlobalPropertyById(int id) |
protected OImmutableSchema |
getImmutableSchema() |
protected OImmutableClass |
getImmutableSchemaClass() |
protected OImmutableClass |
getImmutableSchemaClass(ODatabaseDocumentInternal database) |
protected ODocumentEntry |
getOrCreate(String key) |
Object |
getOriginalValue(String iFieldName)
Returns the original value of a field before it has been changed.
|
ORecordElement |
getOwner() |
Iterable<ORecordElement> |
getOwners()
Deprecated.
|
<RET> RET |
getProperty(String iFieldName)
retrieves a property value from the current document
|
Set<String> |
getPropertyNames()
Returns all the names of defined properties
|
protected Set<Map.Entry<String,ODocumentEntry>> |
getRawEntries() |
protected <RET> RET |
getRawProperty(String iFieldName)
retrieves a property value from the current document, without evaluating it (eg.
|
protected byte |
getRecordType()
Internal.
|
OClass |
getSchemaClass()
Returns the schema class object for the record.
|
Optional<OClass> |
getSchemaType()
Returns the type of current element, ie the class in the schema (if any)
|
int |
hashCode() |
boolean |
hasOwners()
Returns true if the record has some owner.
|
boolean |
hasProperty(String propertyName)
Checks if a property exists.
|
boolean |
hasSameContentOf(ODocument iOther) |
protected void |
internalReset() |
boolean |
isAllowChainedAccess()
Returns the behavior of field() methods allowing access to the sub documents with dot notation
('.').
|
boolean |
isEdge()
return true if the current element is an edge
|
boolean |
isEmbedded() |
boolean |
isEmpty() |
boolean |
isLazyLoad() |
boolean |
isOrdered() |
boolean |
isTrackingChanges() |
boolean |
isVertex()
return true if the current element is a vertex
|
Iterator<Map.Entry<String,Object>> |
iterator()
Returns the iterator fields
|
ODocument |
load(String iFetchPlan)
Loads the record using a fetch plan.
|
ODocument |
load(String iFetchPlan,
boolean iIgnoreCache)
Loads the record using a fetch plan.
|
ODocument |
merge(Map<String,Object> iOther,
boolean iUpdateOnlyMode,
boolean iMergeSingleItemsOfMultiValueFields)
Merge current document with the document passed as parameter.
|
ODocument |
merge(ODocument iOther,
boolean iUpdateOnlyMode,
boolean iMergeSingleItemsOfMultiValueFields)
Merge current document with the document passed as parameter.
|
protected ODocument |
mergeMap(Map<String,ODocumentEntry> iOther,
boolean iUpdateOnlyMode,
boolean iMergeSingleItemsOfMultiValueFields) |
ORecord |
placeholder()
Deprecated.
|
protected boolean |
rawContainsField(String iFiledName) |
<RET> RET |
rawField(String iFieldName) |
protected void |
rawField(String iFieldName,
Object iFieldValue,
OType iFieldType) |
void |
readExternal(ObjectInput stream) |
ODocument |
reload(String fetchPlan,
boolean ignoreCache) |
Object |
removeField(String iFieldName)
Removes a field.
|
protected void |
removeOwner(ORecordElement iRecordElement) |
<RET> RET |
removeProperty(String iFieldName)
Remove a property
|
ODocument |
reset()
Resets the record values and class type to being reused.
|
ODocument |
save()
Saves in-memory changes to the database.
|
ODocument |
save(String iClusterName)
Saves in-memory changes to the database defining a specific cluster where to save it.
|
ORecordAbstract |
save(String iClusterName,
boolean forceCreate) |
ODocument |
setAllowChainedAccess(boolean allowChainedAccess)
Change the behavior of field() methods allowing access to the sub documents with dot notation
('.').
|
protected void |
setClass(OClass iClass) |
void |
setClassName(String className)
Sets the class for the current record.
|
void |
setClassNameIfExists(String iClassName)
Sets the class for the current record only if already exists in the schema.
|
ORecordAbstract |
setDirty()
Propagates the dirty status to the owner, if any.
|
void |
setDirtyNoChanged() |
ODocument |
setFieldType(String iFieldName,
OType iFieldType)
Sets the field type.
|
void |
setLazyLoad(boolean iLazyLoad) |
ODocument |
setOrdered(boolean iOrdered) |
void |
setProperty(String iFieldName,
Object iPropertyValue)
sets a property value on current document
|
void |
setProperty(String iPropetyName,
Object iPropertyValue,
OType... iFieldType)
Sets
|
ODocument |
setTrackingChanges(boolean iTrackingChanges)
Enabled or disabled the tracking of changes in the document.
|
protected void |
setup(ODatabaseDocumentInternal db)
Internal.
|
Map<String,Object> |
toMap()
Returns the document as Map String,Object .
|
byte[] |
toStream()
Marshalls the object.
|
protected byte[] |
toStream(boolean iOnlyDelta) |
String |
toString()
Dumps the instance as string.
|
protected String |
toString(Set<ORecord> inspected) |
protected void |
track(OIdentifiable id) |
ODocument |
undo()
Rollbacks changes to the loaded version without reloading the document.
|
ODocument |
undo(String field) |
ODocument |
unload()
Unloads current record.
|
protected void |
unTrack(OIdentifiable id) |
void |
validate()
Validates the record following the declared constraints defined in schema such as mandatory,
notNull, min, max, regexp, etc.
|
protected static void |
validateEmbedded(OProperty p,
Object fieldValue) |
protected static void |
validateField(ODocument iRecord,
OImmutableProperty p) |
protected static void |
validateFieldsSecurity(ODatabaseDocumentInternal internal,
ODocument iRecord) |
protected static void |
validateLink(OProperty p,
Object fieldValue,
boolean allowNull) |
protected static void |
validateLinkCollection(OProperty property,
Iterable<Object> values,
ODocumentEntry value) |
protected static void |
validateType(OProperty p,
Object value) |
void |
writeExternal(ObjectOutput stream) |
addIdentityChangeListener, checkForLoading, compare, compareTo, delete, flatCopy, getDatabase, getDatabaseIfDefined, getDatabaseIfDefinedInternal, getDatabaseInternal, getDirtyManager, getIdentity, getInternalStatus, getRecord, getSize, getVersion, isContentChanged, isDirty, isLocked, load, lock, lockingStrategy, onAfterIdentityChanged, onBeforeIdentityChanged, reload, reload, reload, removeIdentityChangeListener, save, setContentChanged, setDirtyManager, setIdentity, setIdentity, setInternalStatus, setVersion, toJSON, toJSON, toJSON, toJSON, unlock, unsetDirty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
delete, getDatabase, getIdentity, getInternalStatus, getSize, getVersion, isDirty, load, reload, reload, save, setInternalStatus, toJSON, toJSON
getRecord, isLocked, lock, lockingStrategy, unlock
compareTo
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final byte RECORD_TYPE
protected static final String[] EMPTY_STRINGS
protected int fieldSize
protected Map<String,ODocumentEntry> fields
protected boolean trackingChanges
protected boolean ordered
protected boolean lazyLoad
protected boolean allowChainedAccess
protected transient WeakReference<ORecordElement> owner
protected OImmutableSchema schema
protected OPropertyAccess propertyAccess
protected OPropertyEncryption propertyEncryption
public ODocument()
public ODocument(ODatabaseSession database)
@Deprecated public ODocument(byte[] iSource)
save()
is called.iSource
- Raw streampublic ODocument(InputStream iSource) throws IOException
save()
is called.iSource
- Raw stream as InputStreamIOException
public ODocument(ORID iRID)
save()
is called.iRID
- Record Idpublic ODocument(String iClassName, ORID iRID)
save()
is called.iClassName
- Class nameiRID
- Record Idpublic ODocument(String iClassName)
save()
is called.iClassName
- Class namepublic ODocument(ODatabaseSession session, String iClassName)
save()
is called.session
- the session the instance will be attached toiClassName
- Class namepublic ODocument(OClass iClass)
save()
is called. The database reference is taken from the thread
local.iClass
- OClass instancepublic ODocument(Object[] iFields)
iFields
- Array of field pairspublic ODocument(Map<?,Object> iFieldMap)
iFieldMap
- Map of Object/Objectpublic Optional<OVertex> asVertex()
OElement
public Optional<OEdge> asEdge()
OElement
public boolean isVertex()
OElement
public boolean isEdge()
OElement
public Optional<OClass> getSchemaType()
OElement
getSchemaType
in interface OElement
public Set<String> getPropertyNames()
OElement
getPropertyNames
in interface OElement
public <RET> RET getProperty(String iFieldName)
getProperty
in interface OElement
RET
- iFieldName
- The field name, it can contain any character (it's not evaluated as an
expression, as in #eval()protected <RET> RET getRawProperty(String iFieldName)
RET
- iFieldName
- The field name, it can contain any character (it's not evaluated as an
expression, as in #eval()public void setProperty(String iFieldName, Object iPropertyValue)
setProperty
in interface OElement
iFieldName
- The property nameiPropertyValue
- The property valuepublic void setProperty(String iPropetyName, Object iPropertyValue, OType... iFieldType)
setProperty
in interface OElement
iPropetyName
- The property nameiPropertyValue
- The property valueiFieldType
- Forced type (not auto-determined)public <RET> RET removeProperty(String iFieldName)
OElement
removeProperty
in interface OElement
iFieldName
- the property nameprotected static void validateFieldsSecurity(ODatabaseDocumentInternal internal, ODocument iRecord) throws OValidationException
OValidationException
protected static void validateField(ODocument iRecord, OImmutableProperty p) throws OValidationException
OValidationException
protected static void validateLinkCollection(OProperty property, Iterable<Object> values, ODocumentEntry value)
public ODocument copy()
public ORecordAbstract copyTo(ORecordAbstract iDestination)
copyTo
in class ORecordAbstract
@Deprecated public ORecord placeholder()
public boolean detach()
detach
in interface ODetachable
detach
in interface ORecord
detach
in class ORecordAbstract
public ODocument load(String iFetchPlan)
doc.load( "*:3" ); // LOAD THE DOCUMENT BY EARLY FETCHING UP TO 3rd
LEVEL OF CONNECTIONS
iFetchPlan
- Fetch plan to usepublic ODocument load(String iFetchPlan, boolean iIgnoreCache)
doc.load( "*:3", true ); // LOAD THE DOCUMENT BY EARLY FETCHING UP TO
3rd LEVEL OF CONNECTIONS IGNORING THE CACHE
iIgnoreCache
- Ignore the cache or use itpublic ODocument reload(String fetchPlan, boolean ignoreCache)
reload
in class ORecordAbstract
public boolean hasSameContentOf(ODocument iOther)
public byte[] toStream()
OSerializableStream
toStream
in interface OSerializableStream
toStream
in class ORecordAbstract
OSerializableStream.fromStream(byte[])
public Map<String,Object> toMap()
public String toString()
toString
in class ORecordAbstract
@Deprecated public void fromString(String iValue)
record.reset();
record.setClassName("Account");
record.fromString(new String("Account@id:" + data.getCyclesDone() + ",name:'Luca',surname:'Garulli',birthDate:" +
date.getTime()
+ ",salary:" + 3000f + i));
record.save();
iValue
- String representation of the record.public String[] fieldNames()
fieldNames
in interface ORecordSchemaAware
public Object[] fieldValues()
fieldValues
in interface ORecordSchemaAware
public <RET> RET rawField(String iFieldName)
public Object eval(String iExpression)
long amountPlusVat = doc.eval("amount * 120 /
100");
iExpression
- SQL expression to evaluate.OQueryParsingException
- in case the expression is not validpublic Object eval(String iExpression, OCommandContext iContext)
OCommandContext context = new OBasicCommandContext().setVariable("vat", 20); long amountPlusVat
= doc.eval("amount * (100+$vat) / 100", context);
iExpression
- SQL expression to evaluate.OQueryParsingException
- in case the expression is not validpublic <RET> RET field(String iFieldName)
field
in interface ORecordSchemaAware
iFieldName
- field namepublic <RET> RET field(String iFieldName, Class<?> iFieldType)
iFieldName
- field nameiFieldType
- Forced type.public <RET> RET field(String iFieldName, OType iFieldType)
field
in interface ORecordSchemaAware
iFieldName
- field nameiFieldType
- Forced type.public ODocument field(String iFieldName, Object iPropertyValue)
field
in interface ORecordSchemaAware
iFieldName
- field name. If contains dots (.) the change is applied to the nested
documents in chain. To disable this feature call setAllowChainedAccess(boolean)
to
false.iPropertyValue
- field valuepublic ODocument fields(String iFieldName, Object iFieldValue, Object... iFields)
@Deprecated public ODocument fields(Map<String,Object> iMap)
fromMap(Map)
public ODocument fromMap(Map<String,?> iMap)
public ODocument field(String iFieldName, Object iPropertyValue, OType... iFieldType)
if there's a schema definition for the specified field, the value will be converted to respect the schema definition if needed. if the type defined in the schema support less precision than the iPropertyValue provided, the iPropertyValue will be converted following the java casting rules with possible precision loss.
field
in interface ORecordSchemaAware
iFieldName
- field name. If contains dots (.) the change is applied to the nested
documents in chain. To disable this feature call setAllowChainedAccess(boolean)
to
false.iPropertyValue
- field value.iFieldType
- Forced type (not auto-determined)public Object removeField(String iFieldName)
removeField
in interface ORecordSchemaAware
iFieldName
- Field namepublic ODocument merge(ODocument iOther, boolean iUpdateOnlyMode, boolean iMergeSingleItemsOfMultiValueFields)
iOther
- Other ODocument instance to mergeiUpdateOnlyMode
- if true, the other document properties will always be added or
overwritten. If false, the missed properties in the "other" document will be removed by
original documentiMergeSingleItemsOfMultiValueFields
- If true, merges single items of multi field fields
(collections, maps, arrays, etc)public ODocument merge(Map<String,Object> iOther, boolean iUpdateOnlyMode, boolean iMergeSingleItemsOfMultiValueFields)
iOther
- Other ODocument instance to mergeiUpdateOnlyMode
- if true, the other document properties will always be added or
overwritten. If false, the missed properties in the "other" document will be removed by
original documentiMergeSingleItemsOfMultiValueFields
- If true, merges single items of multi field fields
(collections, maps, arrays, etc)public String[] getDirtyFields()
field(String, Object)
method for
example.
public Object getOriginalValue(String iFieldName)
iFieldName
- Property name to retrieve the original valuepublic OMultiValueChangeTimeLine<Object,Object> getCollectionTimeLine(String iFieldName)
public boolean containsField(String iFieldName)
containsField
in interface ORecordSchemaAware
iFieldName
- Field namepublic boolean hasProperty(String propertyName)
hasProperty
in interface OElement
public boolean hasOwners()
public ORecordElement getOwner()
getOwner
in interface ORecordElement
getOwner
in class ORecordAbstract
@Deprecated public Iterable<ORecordElement> getOwners()
public ORecordAbstract setDirty()
setDirty
in interface ORecordElement
setDirty
in class ORecordAbstract
public void setDirtyNoChanged()
setDirtyNoChanged
in interface ORecordElement
setDirtyNoChanged
in class ORecordAbstract
public ODocument fromStream(byte[] iRecordBuffer)
OSerializableStream
fromStream
in interface OSerializableStream
fromStream
in class ORecordAbstract
iRecordBuffer
- byte array representation of the objectpublic OType fieldType(String iFieldName)
iFieldName
- name of field to checkpublic ODocument unload()
ORecord
unload
in interface ORecord
unload
in class ORecordAbstract
public ODocument clear()
The following code will clear all data from specified document.
doc.clear(); doc.save();
clear
in interface ORecord
clear
in class ORecordAbstract
reset()
public ODocument reset()
The following code will create a new document in database. doc.clear(); doc.save();
IMPORTANT! This can be used only if no transactions are begun.
reset
in interface ORecord
reset
in class ORecordAbstract
IllegalStateException
- if transaction is begun.clear()
public ODocument undo()
isTrackingChanges()
and setTrackingChanges(boolean)
methods.public boolean isLazyLoad()
public void setLazyLoad(boolean iLazyLoad)
public boolean isTrackingChanges()
public ODocument setTrackingChanges(boolean iTrackingChanges)
OClassIndexManager
to determine what
fields are changed to update indexes.iTrackingChanges
- True to enable it, otherwise falseprotected void clearTrackData()
protected void clearTransactionTrackData()
public boolean isOrdered()
public ODocument setOrdered(boolean iOrdered)
public boolean equals(Object obj)
equals
in interface Comparator<OIdentifiable>
equals
in class ORecordAbstract
public int hashCode()
hashCode
in class ORecordAbstract
public int fields()
fields
in interface ORecordSchemaAware
public boolean isEmpty()
public ODocument fromJSON(String iSource, String iOptions)
fromJSON
in class ORecordAbstract
public ODocument fromJSON(String iSource)
ORecord
fromJSON
in interface ORecord
fromJSON
in class ORecordAbstract
iSource
- Object content in JSON formatpublic ODocument fromJSON(InputStream iContentResult) throws IOException
fromJSON
in class ORecordAbstract
IOException
public ODocument fromJSON(String iSource, boolean needReload)
fromJSON
in class ORecordAbstract
public boolean isEmbedded()
public ODocument setFieldType(String iFieldName, OType iFieldType)
iFieldName
- Field nameiFieldType
- Type to set between OType enumeration valuespublic ODocument save()
ORecord
save
in interface ORecord
save
in class ORecordAbstract
public ODocument save(String iClusterName)
ORecord
save
in interface ORecord
save
in class ORecordAbstract
public ORecordAbstract save(String iClusterName, boolean forceCreate)
save
in interface ORecord
save
in class ORecordAbstract
public boolean deserializeFields(String... iFields)
public void writeExternal(ObjectOutput stream) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public boolean isAllowChainedAccess()
public ODocument setAllowChainedAccess(boolean allowChainedAccess)
public void setClassNameIfExists(String iClassName)
ORecordSchemaAware
setClassNameIfExists
in interface ORecordSchemaAware
iClassName
- Class name to setpublic OClass getSchemaClass()
ORecordSchemaAware
getSchemaClass
in interface ORecordSchemaAware
OClass
instance or null if the record has no class associatedpublic String getClassName()
ORecordSchemaAware
#reset()
to re-associate the class.getClassName
in interface ORecordSchemaAware
public void setClassName(String className)
ORecordSchemaAware
setClassName
in interface ORecordSchemaAware
className
- Class name to setpublic void validate() throws OValidationException
validate
in interface ORecordSchemaAware
OValidationException
- if the document breaks some validation constraints defined in the
schemaOProperty
protected ODocument mergeMap(Map<String,ODocumentEntry> iOther, boolean iUpdateOnlyMode, boolean iMergeSingleItemsOfMultiValueFields)
protected ORecordAbstract fill(ORID iRid, int iVersion, byte[] iBuffer, boolean iDirty)
fill
in class ORecordAbstract
protected ORecordAbstract fill(ORID iRid, int iVersion, byte[] iBuffer, boolean iDirty, ODatabaseDocumentInternal db)
fill
in class ORecordAbstract
protected void clearSource()
clearSource
in class ORecordAbstract
protected OGlobalProperty getGlobalPropertyById(int id)
protected void fillClassIfNeed(String iClassName)
protected OImmutableClass getImmutableSchemaClass()
protected OImmutableClass getImmutableSchemaClass(ODatabaseDocumentInternal database)
protected ODocumentEntry getOrCreate(String key)
protected boolean rawContainsField(String iFiledName)
protected void autoConvertValues()
protected byte[] toStream(boolean iOnlyDelta)
protected byte getRecordType()
getRecordType
in class ORecordAbstract
protected void addOwner(ORecordElement iOwner)
protected void removeOwner(ORecordElement iRecordElement)
protected void convertAllMultiValuesToTrackedVersions()
protected void internalReset()
protected boolean checkForFields(String... iFields)
protected void setup(ODatabaseDocumentInternal db)
setup
in class ORecordAbstract
db
- protected void setClass(OClass iClass)
protected Set<Map.Entry<String,ODocumentEntry>> getRawEntries()
protected List<Map.Entry<String,ODocumentEntry>> getFilteredEntries()
protected void autoConvertFieldsToClass(ODatabaseDocumentInternal database)
protected void checkClass(ODatabaseDocumentInternal database)
protected void track(OIdentifiable id)
track
in class ORecordAbstract
protected void unTrack(OIdentifiable id)
unTrack
in class ORecordAbstract
protected OImmutableSchema getImmutableSchema()
Copyright © 2009–2020 OrientDB. All rights reserved.