public abstract class BaseRelationType extends EmptyRelationType implements SystemRelationType
| Modifier and Type | Method and Description |
|---|---|
ConsistencyModifier |
getConsistencyModifier() |
boolean |
hasId()
Checks whether this entity has a unique identifier.
|
Object |
id()
Returns a unique identifier for this entity.
|
boolean |
isInvisibleType() |
String |
name()
Returns the unique name of this entity.
|
void |
setId(Object id) |
getBaseType, getKeyIndexes, getRelationIndexes, getSignature, getSortKey, getSortOrder, getStatus, getTTL, isInvisible, toStringaddEdge, addRelation, edges, findAddedProperty, findPreviousRelation, getAddedRelations, getLifeCycle, hasAddedRelations, hasLoadedRelations, hasRemovedRelations, isLoaded, isModified, isNew, isRemoved, it, label, loadRelations, properties, property, property, query, remove, removeRelation, tx, value, valueOrNull, vertexLabel, verticesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBaseType, getKeyIndexes, getRelationIndexes, getSignature, getSortKey, getSortOrder, getStatus, getTTL, isUnidirected, multiplicityisEdgeLabel, isPropertyKeyisNew, longIdaddRelation, findAddedProperty, findPreviousRelation, getAddedRelations, getDuplicatedAddedRelation, hasAddedRelations, hasLoadedRelations, hasRemovedRelations, it, loadRelations, query, removeRelationaddEdge, isModified, label, property, property, property, vertexLabeledges, properties, property, verticesgetLifeCycle, graph, isInvisible, txisLoaded, isNew, isRemoved, remove, valueOrNullpublic String name()
Namifiablename in interface Namifiablepublic Object id()
JanusGraphElementThe unique identifier may only be set when the transaction in which entity is created commits. Some entities are never assigned a unique identifier if they depend on a parent entity.
JanusGraph allocates blocks of identifiers and automatically assigns identifiers to elements
automatically be default. This behavior can be partially overridden by setting
GraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_ID
id in interface org.apache.tinkerpop.gremlin.structure.Elementid in interface Idfiableid in interface JanusGraphElementid in class EmptyVertexJanusGraphElement.hasId()public boolean hasId()
JanusGraphElementNote that some entities may never be assigned an identifier and others will only be assigned an identifier at the end of a transaction.
hasId in interface JanusGraphElementhasId in class EmptyVertexpublic void setId(Object id)
setId in interface InternalElementsetId in class EmptyVertexpublic ConsistencyModifier getConsistencyModifier()
getConsistencyModifier in interface InternalRelationTypepublic boolean isInvisibleType()
isInvisibleType in interface InternalRelationTypeCopyright © 2012–2024. All rights reserved.