public abstract class Entity extends Object implements Identifiable
Base class for all entities.
Modifier and Type | Class and Description |
---|---|
static class |
Entity.EntityBuilder<E extends Entity,SELF extends Entity.EntityBuilder<E,SELF>> |
Modifier and Type | Method and Description |
---|---|
Instant |
getCreationTime()
Returns the time the entity was created.
|
String |
getExternalId()
Returns the external id of the entity.
|
String |
getGlobalId()
Returns the global id of the entity.
|
String |
getId()
Returns the id of the entity.
|
String |
getModificationCreatorId()
Returns the id of the user who created the entity.
|
String |
getModificationUpdaterId()
Returns the id of the user who last modified the entity.
|
long |
getModificationVersion()
Returns the modification version of the entity.
|
String |
getName()
Returns the name of the entity.
|
String |
getProviderId()
Returns the id of the provider that contributed the entity.
|
String |
getTenantId()
Returns the id of the tenant to whom the entity belongs.
|
String |
getType()
Returns the concrete type of the entity.
|
Instant |
getUpdateTime()
Returns the time the entity was last updated.
|
abstract String |
toString() |
public String getId()
Returns the id of the entity. The id is typically given by the persistence component of the system.
getId
in interface Identifiable
public String getGlobalId()
Returns the global id of the entity. The id identifies the same object in different tenants and is typically either given by the persistence component of the system or set when the entity is copied from another tenant or system.
public String getExternalId()
Returns the external id of the entity. The external id is typically given by the contributor of the entity.
public String getProviderId()
Returns the id of the provider that contributed the entity.
public String getTenantId()
Returns the id of the tenant to whom the entity belongs.
public String getName()
Returns the name of the entity.
public Instant getCreationTime()
Returns the time the entity was created.
public Instant getUpdateTime()
Returns the time the entity was last updated.
public String getType()
Returns the concrete type of the entity. The type discriminator is useful when operating on abstract entities but still wanting to know what the concrete entity type is, e.g. to display this information in a GUI.
public long getModificationVersion()
Returns the modification version of the entity. The complete state of an entity can be uniquely identified by its modification version.
public String getModificationCreatorId()
Returns the id of the user who created the entity.
public String getModificationUpdaterId()
Returns the id of the user who last modified the entity.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.