public class PersistentEntityId
extends java.lang.Object
implements jetbrains.exodus.entitystore.EntityId
| Modifier and Type | Field and Description |
|---|---|
static @NotNull PersistentEntityId |
EMPTY_ID |
| Constructor and Description |
|---|
PersistentEntityId(@NotNull jetbrains.exodus.entitystore.EntityId id)
Constructs id for last (up-to-date) version of specified id.
|
PersistentEntityId(int entityTypeId,
long entityLocalId)
Generic constructor for id of the last (up-to-date) version of entity.
|
PersistentEntityId(int entityTypeId,
long entityLocalId,
int version)
Generic entity id constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull jetbrains.exodus.entitystore.EntityId o) |
boolean |
equals(java.lang.Object obj) |
long |
getLocalId() |
int |
getTypeId() |
int |
hashCode() |
static jetbrains.exodus.entitystore.EntityId |
toEntityId(@NotNull java.lang.CharSequence representation) |
void |
toHash(EntityIterableHandleBase.EntityIterableHandleHash hash) |
@NotNull java.lang.String |
toString() |
void |
toString(@NotNull java.lang.StringBuilder builder) |
@NotNull public static final @NotNull PersistentEntityId EMPTY_ID
public PersistentEntityId(int entityTypeId,
long entityLocalId,
int version)
entityTypeId - entity type id.entityLocalId - local entity id within entity type.version - entity version.public PersistentEntityId(int entityTypeId,
long entityLocalId)
entityTypeId - entity type id.entityLocalId - local entity id within entity type.public PersistentEntityId(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId id)
id - source entity id.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getTypeId()
getTypeId in interface jetbrains.exodus.entitystore.EntityIdpublic long getLocalId()
getLocalId in interface jetbrains.exodus.entitystore.EntityId@NotNull public @NotNull java.lang.String toString()
toString in interface jetbrains.exodus.entitystore.EntityIdtoString in class java.lang.Objectpublic void toString(@NotNull
@NotNull java.lang.StringBuilder builder)
public void toHash(@NotNull
EntityIterableHandleBase.EntityIterableHandleHash hash)
public static jetbrains.exodus.entitystore.EntityId toEntityId(@NotNull
@NotNull java.lang.CharSequence representation)
public int compareTo(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId o)
compareTo in interface java.lang.Comparable<jetbrains.exodus.entitystore.EntityId>