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, toString
addEdge, addRelation, edges, getAddedRelations, getLifeCycle, hasAddedRelations, hasLoadedRelations, hasRemovedRelations, isLoaded, isModified, isNew, isRemoved, it, label, loadRelations, properties, property, property, query, remove, removeRelation, tx, value, valueOrNull, vertexLabel, vertices
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBaseType, getKeyIndexes, getRelationIndexes, getSignature, getSortKey, getSortOrder, getStatus, getTTL, isUnidirected, multiplicity
isEdgeLabel, isPropertyKey, longId
isNew
addRelation, getAddedRelations, hasAddedRelations, hasLoadedRelations, hasRemovedRelations, it, loadRelations, query, removeRelation
addEdge, isModified, label, property, property, property, vertexLabel
edges, properties, property, vertices
getLifeCycle, graph, isInvisible, tx
isLoaded, isNew, isRemoved, remove, valueOrNull
public String name()
Namifiable
name
in interface Namifiable
public Object id()
JanusGraphElement
The 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.Element
id
in interface Idfiable
id
in interface JanusGraphElement
id
in class EmptyVertex
JanusGraphElement.hasId()
public boolean hasId()
JanusGraphElement
Note 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 JanusGraphElement
hasId
in class EmptyVertex
public void setId(Object id)
setId
in interface InternalElement
setId
in class EmptyVertex
public ConsistencyModifier getConsistencyModifier()
getConsistencyModifier
in interface InternalRelationType
public boolean isInvisibleType()
isInvisibleType
in interface InternalRelationType
Copyright © 2012–2023. All rights reserved.