public abstract class AbstractElement extends Object implements InternalElement
| Constructor and Description |
|---|
AbstractElement(long id) |
| Modifier and Type | Method and Description |
|---|---|
InternalVertex |
clone() |
int |
compareTo(TitanElement other) |
boolean |
equals(Object other) |
protected long |
getCompareId()
Long identifier used to compare elements.
|
long |
getID()
Unique identifier for this entity.
|
int |
hashCode() |
boolean |
hasId()
Checks whether this entity has a unique identifier.
|
boolean |
isHidden()
Whether this element is hidden and should only be returned to queries that explicitly ask for hidden elements.
|
static boolean |
isImplicitId(long elementId) |
boolean |
isLoaded()
Checks whether this entity has been loaded into the current transaction and not yet modified.
|
boolean |
isNew()
Checks whether this entity has been newly created in the current transaction.
|
boolean |
isRemoved()
Checks whether this entity has been deleted into the current transaction.
|
static boolean |
isTemporaryId(long elementId) |
void |
setID(long id) |
finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetLifeCycle, it, txgetId, getProperty, getProperty, remove, removeProperty, removeProperty, setProperty, setPropertypublic static boolean isTemporaryId(long elementId)
public static boolean isImplicitId(long elementId)
public int compareTo(TitanElement other)
compareTo in interface Comparable<TitanElement>public InternalVertex clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionprotected long getCompareId()
getID()
but some instances of elements may be considered the same even if their ids differ. In that case,
this method should be overwritten to return an id that can be used for comparison.public long getID()
TitanElementTitanElement.getId() for the permanent id.getID in interface IdfiablegetID in interface TitanElementpublic boolean hasId()
TitanElementhasId in interface TitanElementTitanElement.getID()public void setID(long id)
setID in interface InternalElementpublic boolean isHidden()
InternalElementisHidden in interface InternalElementpublic boolean isNew()
TitanElementisNew in interface TitanElementpublic boolean isLoaded()
TitanElementisLoaded in interface TitanElementpublic boolean isRemoved()
TitanElementisRemoved in interface TitanElementCopyright © 2012–2014. All rights reserved.