Package cern.nxcals.api.domain
Class Entity
- java.lang.Object
-
- cern.nxcals.api.domain.Entity
-
- All Implemented Interfaces:
Identifiable
public class Entity extends java.lang.Object implements Identifiable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Entity.Builder
static class
Entity.InnerBuilder
-
Field Summary
-
Fields inherited from interface cern.nxcals.api.domain.Identifiable
NOT_SET
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Entity.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.SortedSet<EntityHistory>
getEntityHistory()
@NonNull java.util.Map<java.lang.String,java.lang.Object>
getEntityKeyValues()
EntityHistory
getFirstEntityHistory()
long
getId()
java.lang.Integer
getKafkaPartition()
java.time.Instant
getLockedUntilStamp()
@NonNull Partition
getPartition()
long
getRecVersion()
@NonNull SystemSpec
getSystemSpec()
int
hashCode()
Entity.Builder
toBuilder()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cern.nxcals.api.domain.Identifiable
hasId
-
-
-
-
Method Detail
-
getFirstEntityHistory
public EntityHistory getFirstEntityHistory()
-
toBuilder
public Entity.Builder toBuilder()
-
builder
public static Entity.Builder builder()
-
getId
public long getId()
- Specified by:
getId
in interfaceIdentifiable
-
getEntityKeyValues
@NonNull public @NonNull java.util.Map<java.lang.String,java.lang.Object> getEntityKeyValues()
-
getSystemSpec
@NonNull public @NonNull SystemSpec getSystemSpec()
-
getPartition
@NonNull public @NonNull Partition getPartition()
-
getEntityHistory
public java.util.SortedSet<EntityHistory> getEntityHistory()
-
getLockedUntilStamp
public java.time.Instant getLockedUntilStamp()
-
getRecVersion
public long getRecVersion()
-
getKafkaPartition
public java.lang.Integer getKafkaPartition()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-