|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
U
- the auditing type. Typically some kind of user.ID
- the type of the audited type's identifierpublic interface Auditable<U,ID extends Serializable>
Interface for auditable entities. Allows storing and retrieving creation and modification information. The changing instance (typically some user) is to be defined by a generics definition.
Method Summary | |
---|---|
U |
getCreatedBy()
Returns the user who created this entity. |
org.joda.time.DateTime |
getCreatedDate()
Returns the creation date of the entity. |
U |
getLastModifiedBy()
Returns the user who modified the entity lastly. |
org.joda.time.DateTime |
getLastModifiedDate()
Returns the date of the last modification. |
void |
setCreatedBy(U createdBy)
Sets the user who created this entity. |
void |
setCreatedDate(org.joda.time.DateTime creationDate)
Sets the creation date of the entity. |
void |
setLastModifiedBy(U lastModifiedBy)
Sets the user who modified the entity lastly. |
void |
setLastModifiedDate(org.joda.time.DateTime lastModifiedDate)
Sets the date of the last modification. |
Methods inherited from interface org.springframework.data.domain.Persistable |
---|
getId, isNew |
Method Detail |
---|
U getCreatedBy()
void setCreatedBy(U createdBy)
createdBy
- the creating entity to setorg.joda.time.DateTime getCreatedDate()
void setCreatedDate(org.joda.time.DateTime creationDate)
creationDate
- the creation date to setU getLastModifiedBy()
void setLastModifiedBy(U lastModifiedBy)
lastModifiedBy
- the last modifying entity to setorg.joda.time.DateTime getLastModifiedDate()
void setLastModifiedDate(org.joda.time.DateTime lastModifiedDate)
lastModifiedDate
- the date of the last modification to set
|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |