Class OEdgeDocument

All Implemented Interfaces:
ODetachable, OIdentifiable, ORecordElement, OEdge, OElement, ORecord, ORecordSchemaAware, OSerializableStream, Externalizable, Serializable, Comparable<OIdentifiable>, Iterable<Map.Entry<String,Object>>, Comparator<OIdentifiable>

public class OEdgeDocument extends ODocument implements OEdge
See Also:
  • Constructor Details

    • OEdgeDocument

      public OEdgeDocument(OClass cl)
    • OEdgeDocument

      public OEdgeDocument(ODatabaseSession session, String cl)
    • OEdgeDocument

      public OEdgeDocument()
    • OEdgeDocument

      public OEdgeDocument(ODatabaseSession session)
  • Method Details

    • getFrom

      public OVertex getFrom()
      Specified by:
      getFrom in interface OEdge
    • getTo

      public OVertex getTo()
      Specified by:
      getTo in interface OEdge
    • isLightweight

      public boolean isLightweight()
      Specified by:
      isLightweight in interface OEdge
    • delete

      public OEdgeDocument delete()
      Description copied from interface: ORecord
      Deletes the record from the database. Behavior depends by the current running transaction if any. If no transaction is running then the record is deleted immediately. If an Optimistic transaction is running then the record will be deleted at commit time. The current transaction will continue to see the record as deleted, while others not. If a Pessimistic transaction is running, then an exclusive lock is acquired against the record. Current transaction will continue to see the record as deleted, while others cannot access to it since it's locked.
      Specified by:
      delete in interface ORecord
      Overrides:
      delete in class ORecordAbstract
      Returns:
      The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
    • copy

      public OEdgeDocument copy()
      Description copied from class: ODocument
      Copies the current instance to a new one. Hasn't been choose the clone() to let ODocument return type. Once copied the new instance has the same identity and values but all the internal structure are totally independent by the source.
      Specified by:
      copy in interface ORecord
      Overrides:
      copy in class ODocument
      Returns:
      The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
    • deleteLinks

      public static void deleteLinks(OEdge delegate)