public class OVertexDocument extends ODocument implements OVertex
ORecordElement.STATUS
allowChainedAccess, EMPTY_STRINGS, fields, fieldSize, lazyLoad, ordered, owner, propertyAccess, propertyEncryption, RECORD_TYPE, schema, trackingChanges
contentChanged, dirty, dirtyManager, recordFormat, recordId, recordVersion, size, source, status
Constructor and Description |
---|
OVertexDocument() |
OVertexDocument(OClass cl) |
OVertexDocument(ODatabaseSession session) |
OVertexDocument(ODatabaseSession session,
String klass) |
OVertexDocument(String klass) |
Modifier and Type | Method and Description |
---|---|
OEdge |
addEdge(OVertex to) |
OEdge |
addEdge(OVertex to,
OClass type) |
OEdge |
addEdge(OVertex to,
String type) |
protected static boolean |
checkDeletedInTx(ORID id) |
OVertexDocument |
copy()
Copies the current instance to a new one.
|
OVertexDocument |
delete()
Deletes the record from the database.
|
static void |
deleteLinks(OVertex delegate) |
protected OPair<ODirection,String> |
getConnection(ODirection iDirection,
String iFieldName,
String... iClassNames) |
static String |
getConnectionFieldName(ODirection iDirection,
String iClassName,
boolean useVertexFieldsForEdgeLabels) |
protected Set<String> |
getEdgeFieldNames(ODirection iDirection,
String... iClassNames) |
Iterable<OEdge> |
getEdges(ODirection direction) |
Iterable<OEdge> |
getEdges(ODirection direction,
OClass... type) |
Iterable<OEdge> |
getEdges(ODirection direction,
String... labels) |
Iterable<OVertex> |
getVertices(ODirection direction) |
Iterable<OVertex> |
getVertices(ODirection direction,
OClass... type) |
Iterable<OVertex> |
getVertices(ODirection direction,
String... type) |
ORID |
moveTo(String iClassName,
String iClusterName) |
protected static ORID |
moveTo(String iClassName,
String iClusterName,
OVertex toMove,
ODatabaseSession db) |
static void |
replaceLinks(ODocument iVertex,
String iFieldName,
OIdentifiable iVertexToRemove,
OIdentifiable iNewVertex) |
accessProperty, addOwner, asEdge, asVertex, autoConvertFieldsToClass, autoConvertValues, checkClass, 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, 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, writeExternal
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, unsetDirty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asEdge, asVertex, getProperty, getPropertyNames, getSchemaType, hasProperty, isEdge, isVertex, removeProperty, setProperty, setProperty
clear, detach, fromJSON, getDatabase, getIdentity, getInternalStatus, getSize, getVersion, isDirty, load, reload, reload, reset, save, save, save, save, setInternalStatus, toJSON, toJSON, unload
getOwner, setDirty, setDirtyNoChanged
getRecord, isLocked, lock, lockingStrategy, unlock
compareTo
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
fromStream, toStream
forEach, spliterator
public OVertexDocument(OClass cl)
public OVertexDocument()
public OVertexDocument(ODatabaseSession session)
public OVertexDocument(ODatabaseSession session, String klass)
public OVertexDocument(String klass)
public Iterable<OEdge> getEdges(ODirection direction)
public Iterable<OEdge> getEdges(ODirection direction, String... labels)
public Iterable<OEdge> getEdges(ODirection direction, OClass... type)
public Iterable<OVertex> getVertices(ODirection direction)
getVertices
in interface OVertex
public Iterable<OVertex> getVertices(ODirection direction, String... type)
getVertices
in interface OVertex
public Iterable<OVertex> getVertices(ODirection direction, OClass... type)
getVertices
in interface OVertex
protected static ORID moveTo(String iClassName, String iClusterName, OVertex toMove, ODatabaseSession db)
public OVertexDocument delete()
ORecord
delete
in interface ORecord
delete
in class ORecordAbstract
public static void deleteLinks(OVertex delegate)
public static String getConnectionFieldName(ODirection iDirection, String iClassName, boolean useVertexFieldsForEdgeLabels)
protected Set<String> getEdgeFieldNames(ODirection iDirection, String... iClassNames)
protected static boolean checkDeletedInTx(ORID id)
public static void replaceLinks(ODocument iVertex, String iFieldName, OIdentifiable iVertexToRemove, OIdentifiable iNewVertex)
protected OPair<ODirection,String> getConnection(ODirection iDirection, String iFieldName, String... iClassNames)
public OVertexDocument copy()
ODocument
Copyright © 2009–2020 OrientDB. All rights reserved.