|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ENTITY - specify the class name of the entity itself which is handled by a repository
manager.IDENTIFIER_TYPE - the identifier class name used by ENTITY for its primary key
definition.public interface Entity<ENTITY extends Entity<ENTITY,IDENTIFIER_TYPE>,IDENTIFIER_TYPE>
This interface must be implemented by all Silverpeas entity definitions that have to be persisted. It provides signatures for the following technical data :
| Method Summary | |
|---|---|
String |
getComponentInstanceId()
Gets the identifier of the component instance which the entity is attached. |
Date |
getCreateDate()
Gets the date of the entity creation (in the persistence environment). |
String |
getCreatedBy()
Gets the free "created by" data. |
UserDetail |
getCreator()
Gets the user which has created the entity (in the persistence environment). |
String |
getId()
Gets the id of the entity. |
Date |
getLastUpdateDate()
Gets the last date and time of the entity update (in the persistence environment). |
String |
getLastUpdatedBy()
Gets the free "last updated by" data. |
UserDetail |
getLastUpdater()
Gets the last user which has updated the entity (in the persistence environment). |
Long |
getVersion()
Gets the version of the entity (in the persistence environment). |
boolean |
hasBeenModified()
Indicates if the entity has been modified at least one time. |
boolean |
isPersisted()
Indicates if the entity is persisted (commonly if the entity has an id) |
void |
markAsModified()
By default, if no functional data is changed, last update date, last updated by and version technical data are not automatically updated on entity save operation. |
ENTITY |
setCreator(UserDetail creator)
Sets the user which has created the entity (in the persistence environment). |
ENTITY |
setLastUpdater(UserDetail updater)
Sets the last user which has updated the entity (in the persistence environment). |
| Method Detail |
|---|
String getId()
String getComponentInstanceId()
Date getCreateDate()
String getCreatedBy()
UserDetail getCreator()
ENTITY setCreator(UserDetail creator)
creator -
Date getLastUpdateDate()
String getLastUpdatedBy()
UserDetail getLastUpdater()
ENTITY setLastUpdater(UserDetail updater)
updater -
Long getVersion()
boolean isPersisted()
boolean hasBeenModified()
void markAsModified()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||