@MappedSuperclass public class StandardEntity extends BaseUuidEntity implements Versioned, Creatable, Updatable, SoftDelete
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
createdBy |
protected java.util.Date |
createTs |
protected java.lang.String |
deletedBy |
protected java.util.Date |
deleteTs |
protected java.lang.String |
updatedBy |
protected java.util.Date |
updateTs |
protected java.lang.Integer |
version |
id
__securityState, __state, dynamicAttributes
__propertyChangeListeners, _persistence_cacheKey, _persistence_fetchGroup, _persistence_href, _persistence_links, _persistence_listener, _persistence_primaryKey, _persistence_relationshipInfo, _persistence_session, _persistence_shouldRefreshFetchGroup, PROPERTY_CHANGE_LISTENERS_INITIAL_CAPACITY
Constructor and Description |
---|
StandardEntity() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreatedBy() |
java.util.Date |
getCreateTs() |
java.lang.String |
getDeletedBy()
Returns login name of the user who deleted the entity
or null if not deleted.
|
java.util.Date |
getDeleteTs()
Returns deletion timestamp or null if not deleted.
|
java.lang.String |
getUpdatedBy() |
java.util.Date |
getUpdateTs() |
java.lang.Integer |
getVersion() |
java.lang.Boolean |
isDeleted()
Returns true if the entity is deleted.
|
void |
setCreatedBy(java.lang.String createdBy) |
void |
setCreateTs(java.util.Date createTs) |
void |
setDeletedBy(java.lang.String deletedBy)
INTERNAL.
|
void |
setDeleteTs(java.util.Date deleteTs)
INTERNAL.
|
void |
setUpdatedBy(java.lang.String updatedBy) |
void |
setUpdateTs(java.util.Date updateTs) |
void |
setVersion(java.lang.Integer version)
Do not set version if you are not sure - it must be null for a new entity or loaded from the database
for a persistent one.
|
getId, getUuid, setId, setUuid
copySystemState, equals, getDynamicAttributes, getMetaClass, getValue, hashCode, setDynamicAttributes, setValue, toString
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getHref, _persistence_getId, _persistence_getLinks, _persistence_getPropertyChangeListener, _persistence_getRelationships, _persistence_getSession, _persistence_isAttributeFetched, _persistence_new, _persistence_post_clone, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setHref, _persistence_setId, _persistence_setLinks, _persistence_setPropertyChangeListener, _persistence_setRelationships, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, addPropertyChangeListener, getInstanceName, getMethodsCache, getValueEx, getValueEx, propertyChanged, removeAllListeners, removePropertyChangeListener, setValue, setValueEx, setValueEx
protected java.lang.Integer version
protected java.util.Date createTs
protected java.lang.String createdBy
protected java.util.Date updateTs
protected java.lang.String updatedBy
protected java.util.Date deleteTs
protected java.lang.String deletedBy
public java.lang.Integer getVersion()
getVersion
in interface Versioned
public void setVersion(java.lang.Integer version)
Versioned
setVersion
in interface Versioned
public java.util.Date getCreateTs()
getCreateTs
in interface Creatable
public void setCreateTs(java.util.Date createTs)
setCreateTs
in interface Creatable
public java.lang.String getCreatedBy()
getCreatedBy
in interface Creatable
public void setCreatedBy(java.lang.String createdBy)
setCreatedBy
in interface Creatable
public java.util.Date getUpdateTs()
getUpdateTs
in interface Updatable
public void setUpdateTs(java.util.Date updateTs)
setUpdateTs
in interface Updatable
public java.lang.String getUpdatedBy()
getUpdatedBy
in interface Updatable
public void setUpdatedBy(java.lang.String updatedBy)
setUpdatedBy
in interface Updatable
public java.lang.Boolean isDeleted()
SoftDelete
isDeleted
in interface SoftDelete
public java.util.Date getDeleteTs()
SoftDelete
getDeleteTs
in interface SoftDelete
public void setDeleteTs(java.util.Date deleteTs)
SoftDelete
setDeleteTs
in interface SoftDelete
public java.lang.String getDeletedBy()
SoftDelete
getDeletedBy
in interface SoftDelete
public void setDeletedBy(java.lang.String deletedBy)
SoftDelete
setDeletedBy
in interface SoftDelete