public class MasterDataInstanceEntityImpl extends AbstractDataObjectEngineEntity implements MasterDataInstanceEntity
Modifier and Type | Field and Description |
---|---|
protected Date |
creationTime |
protected String |
creatorId |
protected String |
definitionId |
protected String |
definitionKey |
protected String |
description |
protected String |
externalId |
protected boolean |
favorite |
protected String |
key |
protected String |
name |
protected List<Translation> |
queryTranslations |
protected List<DataObjectVariableEntity> |
queryVariables |
protected int |
sortOrder |
protected String |
state |
protected String |
tenantId |
protected Map<String,Map<String,String>> |
translations |
protected boolean |
translationsInitialized |
protected String |
updaterId |
protected Date |
updateTime |
protected Map<String,Object> |
variables |
protected boolean |
variablesInitialized |
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
Constructor and Description |
---|
MasterDataInstanceEntityImpl() |
Modifier and Type | Method and Description |
---|---|
Date |
getCreationTime()
Returns the creation timestamp of this data instance.
|
String |
getCreatorId()
Returns the id of the user creating this data instance.
|
String |
getDefinitionId()
Returns the id of the master data definition this instance belongs to.
|
String |
getDefinitionKey()
Returns the key of the master data definition this instance belongs to.
|
String |
getDescription()
Returns the optional description of this master data instance, if any, null otherwise.
|
String |
getExternalId()
Returns the external id of this master data instance.
|
String |
getKey()
Returns the key for this master data instance which must be unique, but is human-readable normally and must be the same across environments for the
same master data instance.
|
String |
getLocalizedName(Locale locale)
Returns the name for this instance according the given locale, if available, defaults to the name provided by
MasterDataInstance.getName() if there is no
translation available for the requested locale. |
String |
getName()
Returns the name of this master data instance which is usually used as the label.
|
Object |
getPersistentState() |
List<Translation> |
getQueryTranslations()
Getter used by MyBatis when querying master data instances with translations included.
|
List<DataObjectVariableEntity> |
getQueryVariables()
Getter used by MyBatis when querying master data instances with variables included.
|
int |
getSortOrder()
Returns the sort order for this master data instance.
|
String |
getState()
Returns the state of this master data instance which might be active or archived.
|
String |
getTenantId()
Returns the tenant id for this master data instance.
|
Map<String,Map<String,String>> |
getTranslations()
The translations for the master data, a Map having locale as the key and key value pairs for each locale.
|
String |
getUpdaterId()
Returns the optional id of the user having last modified this data instance, if any,
null otherwise. |
Date |
getUpdateTime()
Returns the timestamp of the last update of this data instance, in most cases where events are immutable, this
timestamp is the same as the creation timestamp, but must never be
null . |
Map<String,Object> |
getVariables()
Returns the optional map of variables attached to this master data instance.
|
boolean |
isFavorite()
Returns true, if this master data instance is a favorite, which means it should be shown on the top of the list in a selection for instance.
|
void |
setCreationTime(Date creationTime) |
void |
setCreatorId(String creatorId) |
void |
setDefinitionId(String definitionId) |
void |
setDefinitionKey(String definitionKey) |
void |
setDescription(String description) |
void |
setExternalId(String externalId) |
void |
setFavorite(boolean favorite) |
void |
setKey(String key) |
void |
setName(String name) |
void |
setQueryTranslations(List<Translation> queryVariables)
Setter used by MyBatis when querying master data instances with translations.
|
void |
setQueryVariables(List<DataObjectVariableEntity> queryVariables)
Setter used by MyBatis when querying master data instances with variables.
|
void |
setSortOrder(int sortOrder) |
void |
setState(String state) |
void |
setTenantId(String tenantId) |
void |
setUpdaterId(String updaterId) |
void |
setUpdateTime(Date updateTime) |
getIdPrefix
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
getRevision, getRevisionNext, setRevision
protected String definitionId
protected String definitionKey
protected String tenantId
protected String externalId
protected String key
protected String name
protected String state
protected int sortOrder
protected boolean favorite
protected String description
protected Date creationTime
protected String creatorId
protected Date updateTime
protected String updaterId
protected List<DataObjectVariableEntity> queryVariables
protected List<Translation> queryTranslations
protected boolean variablesInitialized
protected boolean translationsInitialized
public Object getPersistentState()
getPersistentState
in interface Entity
public String getDefinitionId()
MasterDataInstance
getDefinitionId
in interface MasterDataInstance
public void setDefinitionId(String definitionId)
setDefinitionId
in interface MasterDataInstanceEntity
public String getDefinitionKey()
MasterDataInstance
getDefinitionKey
in interface MasterDataInstance
public void setDefinitionKey(String definitionKey)
setDefinitionKey
in interface MasterDataInstanceEntity
public String getTenantId()
MasterDataInstance
getTenantId
in interface MasterDataInstance
public void setTenantId(String tenantId)
setTenantId
in interface MasterDataInstanceEntity
public String getExternalId()
MasterDataInstance
getExternalId
in interface MasterDataInstance
MasterDataInstance.getId()
if this data object is managed internally and not by an external data sourcepublic void setExternalId(String externalId)
setExternalId
in interface MasterDataInstanceEntity
public String getKey()
MasterDataInstance
getKey
in interface MasterDataInstance
public void setKey(String key)
setKey
in interface MasterDataInstanceEntity
public String getName()
MasterDataInstance
getName
in interface MasterDataInstance
public void setName(String name)
setName
in interface MasterDataInstanceEntity
public String getState()
MasterDataInstance
getState
in interface MasterDataInstance
for a list of available states
public void setState(String state)
setState
in interface MasterDataInstanceEntity
public int getSortOrder()
MasterDataInstance
getSortOrder
in interface MasterDataInstance
public void setSortOrder(int sortOrder)
setSortOrder
in interface MasterDataInstanceEntity
public boolean isFavorite()
MasterDataInstance
isFavorite
in interface MasterDataInstance
public void setFavorite(boolean favorite)
setFavorite
in interface MasterDataInstanceEntity
public String getDescription()
MasterDataInstance
getDescription
in interface MasterDataInstance
public void setDescription(String description)
setDescription
in interface MasterDataInstanceEntity
public Date getCreationTime()
MasterDataInstance
getCreationTime
in interface MasterDataInstance
public void setCreationTime(Date creationTime)
setCreationTime
in interface MasterDataInstanceEntity
public String getCreatorId()
MasterDataInstance
getCreatorId
in interface MasterDataInstance
public void setCreatorId(String creatorId)
setCreatorId
in interface MasterDataInstanceEntity
public Date getUpdateTime()
MasterDataInstance
null
.getUpdateTime
in interface MasterDataInstance
public void setUpdateTime(Date updateTime)
setUpdateTime
in interface MasterDataInstanceEntity
public String getUpdaterId()
MasterDataInstance
null
otherwise.getUpdaterId
in interface MasterDataInstance
public void setUpdaterId(String updaterId)
setUpdaterId
in interface MasterDataInstanceEntity
public String getLocalizedName(Locale locale)
MasterDataInstance
MasterDataInstance.getName()
if there is no
translation available for the requested locale.getLocalizedName
in interface MasterDataInstance
locale
- the locale to return the name forpublic Map<String,Object> getVariables()
MasterDataInstance
getVariables
in interface MasterDataInstance
public Map<String,Map<String,String>> getTranslations()
MasterDataInstance
getTranslations
in interface MasterDataInstance
public List<DataObjectVariableEntity> getQueryVariables()
public void setQueryVariables(List<DataObjectVariableEntity> queryVariables)
setQueryVariables
in interface MasterDataInstanceEntity
public List<Translation> getQueryTranslations()
public void setQueryTranslations(List<Translation> queryVariables)