Class OEdgeDocument
java.lang.Object
com.orientechnologies.orient.core.record.ORecordAbstract
com.orientechnologies.orient.core.record.impl.ODocument
com.orientechnologies.orient.core.record.impl.OEdgeDocument
- All Implemented Interfaces:
ODetachable,OIdentifiable,ORecordElement,OEdge,OElement,ORecord,ORecordSchemaAware,OSerializableStream,Externalizable,Serializable,Comparable<OIdentifiable>,Iterable<Map.Entry<String,,Object>> Comparator<OIdentifiable>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.record.ORecordElement
ORecordElement.STATUS -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.record.impl.ODocument
allowChainedAccess, EMPTY_STRINGS, fields, fieldSize, lazyLoad, ordered, owner, propertyAccess, propertyEncryption, RECORD_TYPE, schema, trackingChangesFields 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, statusFields inherited from interface com.orientechnologies.orient.core.record.OEdge
DIRECITON_IN, DIRECITON_OUT, DIRECTION_IN, DIRECTION_OUT -
Constructor Summary
ConstructorsConstructorDescriptionOEdgeDocument(ODatabaseSession session) OEdgeDocument(ODatabaseSession session, String cl) OEdgeDocument(OClass cl) -
Method Summary
Methods inherited from class com.orientechnologies.orient.core.record.impl.ODocument
accessProperty, addOwner, asEdge, asVertex, autoConvertFieldsToClass, autoConvertValues, calculatePropertyNames, checkClass, checkEmbeddable, checkFieldName, checkForFields, clear, clearSource, clearTrackData, clearTransactionTrackData, containsField, convertAllMultiValuesToTrackedVersions, copyTo, deserializeFields, detach, equals, eval, eval, field, field, field, field, field, fieldNames, fields, fields, fields, fieldType, fieldValues, fill, fill, fillClassIfNeed, fromJSON, fromJSON, fromJSON, fromJSON, fromMap, fromStream, fromStream, fromString, getClassName, getCollectionTimeLine, getDirtyFields, getFilteredEntries, getGlobalPropertyById, getImmutableSchema, getImmutableSchemaClass, getImmutableSchemaClass, getOrCreate, getOriginalValue, getOwner, getOwners, getProperty, getPropertyNames, getRawEntries, getRawProperty, getRecordType, getSchemaClass, getSchemaType, hashCode, hasOwners, hasProperty, hasSameContentOf, internalReset, isAllowChainedAccess, isEdge, isEmbedded, isEmpty, isLazyLoad, isOrdered, isTrackingChanges, isVertex, iterator, load, load, merge, merge, mergeMap, placeholder, rawContainsField, rawField, rawField, readExternal, reload, removeField, removeOwner, removeProperty, reset, save, save, save, setAllowChainedAccess, setClass, setClassName, setClassNameIfExists, setDirty, setDirtyNoChanged, setFieldType, setLazyLoad, setOrdered, setProperty, setProperty, setTrackingChanges, setup, toMap, toStream, toStream, toString, toString, track, undo, undo, unload, unTrack, validate, validateEmbedded, validateField, validateFieldsSecurity, validateLink, validateLinkCollection, validateType, writeExternalMethods inherited from class com.orientechnologies.orient.core.record.ORecordAbstract
addIdentityChangeListener, checkForLoading, compare, compareTo, 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, unsetDirtyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.orientechnologies.orient.core.record.OEdge
getVertex, isLabeledMethods inherited from interface com.orientechnologies.orient.core.record.OElement
asEdge, asVertex, getProperty, getPropertyNames, getSchemaType, hasProperty, isEdge, isVertex, removeProperty, setProperty, setPropertyMethods inherited from interface com.orientechnologies.orient.core.db.record.OIdentifiable
getRecord, isLocked, lock, lockingStrategy, unlockMethods inherited from interface com.orientechnologies.orient.core.record.ORecord
clear, detach, fromJSON, getDatabase, getIdentity, getInternalStatus, getSize, getVersion, isDirty, load, reload, reload, reset, save, save, save, save, setInternalStatus, toJSON, toJSON, unloadMethods inherited from interface com.orientechnologies.orient.core.db.record.ORecordElement
getOwner, setDirty, setDirtyNoChangedMethods inherited from interface com.orientechnologies.orient.core.serialization.OSerializableStream
fromStream, toStream
-
Constructor Details
-
OEdgeDocument
-
OEdgeDocument
-
OEdgeDocument
public OEdgeDocument() -
OEdgeDocument
-
-
Method Details
-
getFrom
-
getTo
-
isLightweight
public boolean isLightweight()- Specified by:
isLightweightin interfaceOEdge
-
delete
Description copied from interface:ORecordDeletes 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:
deletein interfaceORecord- Overrides:
deletein classORecordAbstract- Returns:
- The Object instance itself giving a "fluent interface". Useful to call multiple methods in chain.
-
copy
Description copied from class:ODocumentCopies 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. -
deleteLinks
-