public interface ORecord extends ORecordElement, OIdentifiable, Serializable, OSerializableStream
reset()
method.ORecordElement.STATUS
Modifier and Type | Method and Description |
---|---|
<RET extends ORecord> |
clear()
All the fields are deleted but the record identity is maintained.
|
<RET extends ORecord> |
copy()
Creates a copy of the record.
|
<RET extends ORecord> |
delete()
Deletes the record from the database.
|
boolean |
detach()
Removes all the dependencies with other records.
|
<RET extends ORecord> |
fromJSON(String iJson)
Fills the record parsing the content in JSON format.
|
ODatabaseDocument |
getDatabase()
Returns the database where the record belongs.
|
ORID |
getIdentity()
Returns the record identity as <cluster-id>:<cluster-position>
|
int |
getSize()
Returns the size in bytes of the record.
|
int |
getVersion()
Returns the current version number of the record.
|
boolean |
isDirty()
Checks if the record is dirty, namely if it was changed in memory.
|
<RET extends ORecord> |
load()
Loads the record content in memory.
|
<RET extends ORecord> |
reload()
Loads the record content in memory.
|
<RET extends ORecord> |
reload(String fetchPlan,
boolean ignoreCache,
boolean force) |
<RET extends ORecord> |
reset()
Resets the record to be reused.
|
<RET extends ORecord> |
save()
Saves in-memory changes to the database.
|
<RET extends ORecord> |
save(boolean forceCreate) |
<RET extends ORecord> |
save(String iCluster)
Saves in-memory changes to the database defining a specific cluster where to save it.
|
<RET extends ORecord> |
save(String iCluster,
boolean forceCreate) |
String |
toJSON()
Exports the record in JSON format.
|
String |
toJSON(String iFormat)
Exports the record in JSON format specifying additional formatting settings.
|
<RET extends ORecord> |
unload()
Unloads current record.
|
getInternalStatus, getOwner, setDirty, setDirtyNoChanged, setInternalStatus
getRecord, isLocked, lock, lockingStrategy, unlock
compareTo
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
fromStream, toStream
boolean detach()
<RET extends ORecord> RET reset()
<RET extends ORecord> RET unload()
<RET extends ORecord> RET clear()
<RET extends ORecord> RET copy()
ORID getIdentity()
getIdentity
in interface OIdentifiable
int getVersion()
OTransactionOptimistic
ODatabaseDocument getDatabase()
boolean isDirty()
<RET extends ORecord> RET load() throws ORecordNotFoundException
ORecordNotFoundException
<RET extends ORecord> RET reload() throws ORecordNotFoundException
ORecordNotFoundException
<RET extends ORecord> RET reload(String fetchPlan, boolean ignoreCache, boolean force) throws ORecordNotFoundException
ORecordNotFoundException
<RET extends ORecord> RET save()
<RET extends ORecord> RET save(String iCluster)
<RET extends ORecord> RET save(boolean forceCreate)
<RET extends ORecord> RET delete()
<RET extends ORecord> RET fromJSON(String iJson)
iJson
- Object content in JSON formatString toJSON()
String toJSON(String iFormat)
iFormat
- Format settings separated by comma. Available settings are:
int getSize()
Copyright © 2009–2019 OrientDB. All rights reserved.