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 public class ORecordFlat extends ORecordAbstract implements ORecordStringable
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:
  • Field Details

    • RECORD_TYPE

      public static final byte RECORD_TYPE
      Deprecated.
      See Also:
    • value

      protected String value
      Deprecated.
  • Constructor Details

    • ORecordFlat

      public ORecordFlat(ODatabaseDocumentInternal iDatabase)
      Deprecated.
    • ORecordFlat

      public ORecordFlat()
      Deprecated.
    • ORecordFlat

      public ORecordFlat(byte[] iSource)
      Deprecated.
    • ORecordFlat

      public ORecordFlat(ODatabaseDocument iDatabase, ORID iRID)
      Deprecated.
  • Method Details

    • value

      public ORecordFlat value(String iValue)
      Deprecated.
      Specified by:
      value in interface ORecordStringable
    • reset

      public ORecordFlat reset()
      Deprecated.
      Description copied from interface: ORecord
      Resets 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:
      reset in interface ORecord
      Overrides:
      reset in class ORecordAbstract
      Returns:
      The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
    • unload

      public ORecordFlat unload()
      Deprecated.
      Description copied from interface: ORecord
      Unloads 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:
      unload in interface ORecord
      Overrides:
      unload in class ORecordAbstract
      Returns:
      The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
    • clear

      public ORecordFlat clear()
      Deprecated.
      Description copied from interface: ORecord
      All the fields are deleted but the record identity is maintained. Use this to remove all the document's fields.
      Specified by:
      clear in interface ORecord
      Overrides:
      clear in class ORecordAbstract
      Returns:
      The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
    • copy

      public ORecordFlat copy()
      Deprecated.
      Description copied from interface: ORecord
      Creates a copy of the record. All the record contents are copied.
      Specified by:
      copy in interface ORecord
      Returns:
      The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
    • value

      public String value()
      Deprecated.
      Specified by:
      value in interface ORecordStringable
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class ORecordAbstract
    • reload

      public ORecord reload()
      Deprecated.
      Description copied from interface: ORecord
      Loads 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:
      reload in interface ORecord
      Overrides:
      reload in class ORecordAbstract
      Returns:
      The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
    • fromStream

      public ORecordAbstract fromStream(byte[] iRecordBuffer)
      Deprecated.
      Description copied from interface: OSerializableStream
      Unmarshalls 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:
      fromStream in interface OSerializableStream
      Overrides:
      fromStream in class ORecordAbstract
      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: OSerializableStream
      Marshalls the object. Transforms the current object in byte[] form to being stored or transferred over the network.
      Specified by:
      toStream in interface OSerializableStream
      Overrides:
      toStream in class ORecordAbstract
      Returns:
      The byte array representation of the object
      See Also:
    • size

      public int size()
      Deprecated.
    • getRecordType

      public byte getRecordType()
      Deprecated.
      Specified by:
      getRecordType in class ORecordAbstract