Class OVertexDocument
java.lang.Object
com.orientechnologies.orient.core.record.ORecordAbstract
com.orientechnologies.orient.core.record.impl.ODocument
com.orientechnologies.orient.core.record.impl.OVertexDocument
- All Implemented Interfaces:
ODetachable,OIdentifiable,ORecordElement,OElement,ORecord,ORecordSchemaAware,OVertex,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, status -
Constructor Summary
ConstructorsConstructorDescriptionOVertexDocument(ODatabaseSession session) OVertexDocument(ODatabaseSession session, String klass) OVertexDocument(String klass) -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleancheckDeletedInTx(ORID id) copy()Copies the current instance to a new one.static ObjectcreateLink(ODocument iFromVertex, OIdentifiable iTo, String iFieldName) (Internal only) Creates a link between a vertices and a Graph Element.static voiddeleteLinks(ODatabaseSession db, OVertex delegate) protected static voiddetachEdge(OVertex vertex, OEdge edge, String fieldPrefix) protected static voiddetachIncomingEdge(OVertex vertex, OEdge edge) protected static voiddetachOutgointEdge(OVertex vertex, OEdge edge) protected OPair<ODirection, String> getConnection(ODirection iDirection, String iFieldName, String... iClassNames) static StringgetConnectionFieldName(ODirection iDirection, String iClassName, boolean useVertexFieldsForEdgeLabels) getEdgeFieldNames(ODirection iDirection, String... iClassNames) getEdges(ODirection direction) getEdges(ODirection direction, OClass... type) getEdges(ODirection direction, String... labels) getVertices(ODirection direction) getVertices(ODirection direction, OClass... type) getVertices(ODirection direction, String... type) protected static ORIDmoveTo(String iClassName, String iClusterName, OVertex toMove, ODatabaseSession db) static voidreplaceLinks(ODocument iVertex, String iFieldName, OIdentifiable iVertexToRemove, OIdentifiable iNewVertex, ODatabaseSession db) 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, merge, merge, mergeMap, rawContainsField, rawField, rawField, readExternal, removeField, removeOwner, removeProperty, reset, 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, onAfterIdentityChanged, onBeforeIdentityChanged, removeIdentityChangeListener, setContentChanged, setDirtyManager, setIdentity, setIdentity, setInternalStatus, setVersion, toJSON, toJSON, toJSON, toJSON, 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.OElement
asEdge, asVertex, getProperty, getPropertyNames, getSchemaType, hasProperty, isEdge, isVertex, removeProperty, setProperty, setPropertyMethods inherited from interface com.orientechnologies.orient.core.db.record.OIdentifiable
getRecordMethods inherited from interface com.orientechnologies.orient.core.record.ORecord
clear, detach, fromJSON, getIdentity, getInternalStatus, getSize, getVersion, isDirty, reset, 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
-
OVertexDocument
-
OVertexDocument
public OVertexDocument() -
OVertexDocument
-
OVertexDocument
-
OVertexDocument
-
-
Method Details
-
getEdges
-
getEdges
-
getEdges
-
getVertices
- Specified by:
getVerticesin interfaceOVertex
-
getVertices
- Specified by:
getVerticesin interfaceOVertex
-
getVertices
- Specified by:
getVerticesin interfaceOVertex
-
addEdge
-
addEdge
-
addEdge
-
moveTo
-
moveTo
protected static ORID moveTo(String iClassName, String iClusterName, OVertex toMove, ODatabaseSession db) -
deleteLinks
-
getConnectionFieldName
public static String getConnectionFieldName(ODirection iDirection, String iClassName, boolean useVertexFieldsForEdgeLabels) -
getEdgeFieldNames
-
checkDeletedInTx
-
replaceLinks
public static void replaceLinks(ODocument iVertex, String iFieldName, OIdentifiable iVertexToRemove, OIdentifiable iNewVertex, ODatabaseSession db) -
getConnection
protected OPair<ODirection,String> getConnection(ODirection iDirection, String iFieldName, String... iClassNames) -
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. -
detachEdge
-
detachIncomingEdge
-
detachOutgointEdge
-
createLink
(Internal only) Creates a link between a vertices and a Graph Element.
-