T
- The type of the id/externalIdP
- The type of the providerIdpublic abstract class Entity<T extends EntityId,P extends Id> extends Object implements Identifiable<T>
Modifier and Type | Class and Description |
---|---|
static class |
Entity.EntityBuilder<T extends EntityId,P extends Id,E extends Entity<T,P>,SELF extends Entity.EntityBuilder<T,P,E,SELF>> |
protected static class |
Entity.EntityData<T extends EntityId,P extends Id>
Data container that holds the state of an entity.
|
Modifier and Type | Field and Description |
---|---|
protected Entity.EntityData<T,P> |
entityData |
Modifier | Constructor and Description |
---|---|
protected |
Entity(Entity.EntityData<T,P> entityData) |
Modifier and Type | Method and Description |
---|---|
Date |
getCreationTime()
Returns the time the entity was created.
|
String |
getDescription()
Returns the description of the entity.
|
T |
getExternalId()
Returns the external id of the entity.
|
GlobalId |
getGlobalId()
Returns the global id of the entity.
|
T |
getId()
Returns the id of the entity.
|
UserId |
getModificationCreatorId()
Returns the id of the user who created the entity.
|
UserId |
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.
|
P |
getProviderId()
Returns the id of the provider that contributed the entity.
|
TenantId |
getTenantId()
Returns the id of the tenant to whom the entity belongs.
|
Type |
getType()
Returns the concrete type of the entity.
|
Date |
getUpdateTime()
Returns the time the entity was last updated.
|
abstract String |
toString() |
protected final Entity.EntityData<T extends EntityId,P extends Id> entityData
protected Entity(Entity.EntityData<T,P> entityData)
public T getId()
getId
in interface Identifiable<T extends EntityId>
public GlobalId getGlobalId()
public T getExternalId()
public P getProviderId()
public TenantId getTenantId()
public String getName()
public String getDescription()
public Date getCreationTime()
public Date getUpdateTime()
public Type getType()
public long getModificationVersion()
public UserId getModificationCreatorId()
public UserId getModificationUpdaterId()
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.