Class ORecordFlat
java.lang.Object
com.orientechnologies.orient.core.record.ORecordAbstract
com.orientechnologies.orient.core.record.impl.ORecordFlat
- All Implemented Interfaces:
OIdentifiable,ORecordElement,ORecord,ORecordStringable,OSerializableStream,Serializable,Comparable<OIdentifiable>,Comparator<OIdentifiable>
Deprecated.
It's schema less. Use this if you need to store Strings at low level. The object can be reused
across calls to the database by using the reset() at every re-use.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.record.ORecordElement
ORecordElement.STATUS -
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.record.ORecordAbstract
BASE_FORMAT, contentChanged, DEFAULT_FORMAT, dirty, dirtyManager, OLD_FORMAT_WITH_LATE_TYPES, recordFormat, recordId, recordVersion, size, source, status -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ORecordFlat(byte[] iSource) Deprecated.ORecordFlat(ODatabaseDocument iDatabase, ORID iRID) Deprecated.ORecordFlat(ODatabaseDocumentInternal iDatabase) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionclear()Deprecated.All the fields are deleted but the record identity is maintained.copy()Deprecated.Creates a copy of the record.fromStream(byte[] iRecordBuffer) Deprecated.Unmarshalls the object.byteDeprecated.reload()Deprecated.Loads the record content in memory.reset()Deprecated.Resets the record to be reused.intsize()Deprecated.byte[]toStream()Deprecated.Marshalls the object.toString()Deprecated.unload()Deprecated.Unloads current record.value()Deprecated.Deprecated.Methods inherited from class com.orientechnologies.orient.core.record.ORecordAbstract
addIdentityChangeListener, checkForLoading, clearSource, compare, compareTo, copyTo, delete, detach, equals, fill, fill, flatCopy, fromJSON, fromJSON, fromJSON, fromJSON, fromStream, getDatabase, getDatabaseIfDefined, getDatabaseIfDefinedInternal, getDatabaseInternal, getDirtyManager, getIdentity, getInternalStatus, getOwner, getRecord, getSize, getVersion, hashCode, isContentChanged, isDirty, isLocked, load, lock, lockingStrategy, onAfterIdentityChanged, onBeforeIdentityChanged, reload, reload, reload, removeIdentityChangeListener, save, save, save, save, setContentChanged, setDirty, setDirtyManager, setDirtyNoChanged, setIdentity, setIdentity, setInternalStatus, setup, setVersion, toJSON, toJSON, toJSON, toJSON, track, unlock, unsetDirty, unTrackMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
RECORD_TYPE
public static final byte RECORD_TYPEDeprecated.- See Also:
-
value
Deprecated.
-
-
Constructor Details
-
ORecordFlat
Deprecated. -
ORecordFlat
public ORecordFlat()Deprecated. -
ORecordFlat
public ORecordFlat(byte[] iSource) Deprecated. -
ORecordFlat
Deprecated.
-
-
Method Details
-
value
Deprecated.- Specified by:
valuein interfaceORecordStringable
-
reset
Deprecated.Description copied from interface:ORecordResets the record to be reused. The record is fresh like just created. Use this method to recycle records avoiding the creation of them stressing the JVM Garbage Collector.- Specified by:
resetin interfaceORecord- Overrides:
resetin classORecordAbstract- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
unload
Deprecated.Description copied from interface:ORecordUnloads current record. All information are lost but the record identity. At the next access the record will be auto-reloaded. Useful to free memory or to avoid to keep an old version of it.- Specified by:
unloadin interfaceORecord- Overrides:
unloadin classORecordAbstract- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
clear
Deprecated.Description copied from interface:ORecordAll the fields are deleted but the record identity is maintained. Use this to remove all the document's fields.- Specified by:
clearin interfaceORecord- Overrides:
clearin classORecordAbstract- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
copy
Deprecated.Description copied from interface:ORecordCreates a copy of the record. All the record contents are copied. -
value
Deprecated.- Specified by:
valuein interfaceORecordStringable
-
toString
Deprecated.- Overrides:
toStringin classORecordAbstract
-
reload
Deprecated.Description copied from interface:ORecordLoads the record content in memory. No cache is used. If the record is dirty, then it returns to the original content. If the record does not exist a ORecordNotFoundException exception is thrown.Use
ODatabaseDocument.reload(OElement)instead.- Specified by:
reloadin interfaceORecord- Overrides:
reloadin classORecordAbstract- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
fromStream
Deprecated.Description copied from interface:OSerializableStreamUnmarshalls the object. Fills the current object with the values contained in the byte array representation restoring a previous state. Usually byte[] comes from the storage or network.- Specified by:
fromStreamin interfaceOSerializableStream- Overrides:
fromStreamin classORecordAbstract- Parameters:
iRecordBuffer- byte array representation of the object- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
toStream
public byte[] toStream()Deprecated.Description copied from interface:OSerializableStreamMarshalls the object. Transforms the current object in byte[] form to being stored or transferred over the network.- Specified by:
toStreamin interfaceOSerializableStream- Overrides:
toStreamin classORecordAbstract- Returns:
- The byte array representation of the object
- See Also:
-
size
public int size()Deprecated. -
getRecordType
public byte getRecordType()Deprecated.- Specified by:
getRecordTypein classORecordAbstract
-