Interface AuditableBeanWrapper<T>
public interface AuditableBeanWrapper<T>
Interface to abstract the ways setting the auditing information can be implemented.
- Since:
- 1.5
- Author:
- Oliver Gierke
- 
Method SummaryModifier and TypeMethodDescriptiongetBean()Returns the underlying bean that potentially has been modified by the setter methods exposed.Returns the date of the last modification date of the backing bean.@Nullable ObjectsetCreatedBy(@Nullable Object value) Set the creator of the object.setCreatedDate(TemporalAccessor value) Set the date the object was created.@Nullable ObjectsetLastModifiedBy(@Nullable Object value) Set the last modifier of the object.Set the last modification date.
- 
Method Details- 
setCreatedBySet the creator of the object.- Parameters:
- value-
 
- 
setCreatedDateSet the date the object was created.- Parameters:
- value-
 
- 
setLastModifiedBy@Contract("null -> null; !null -> !null") @Nullable Object setLastModifiedBy(@Nullable Object value) Set the last modifier of the object.- Parameters:
- value-
 
- 
getLastModifiedDateOptional<TemporalAccessor> getLastModifiedDate()Returns the date of the last modification date of the backing bean.- Returns:
- the date of the last modification.
- Since:
- 1.10
 
- 
setLastModifiedDateSet the last modification date.- Parameters:
- value-
 
- 
getBeanT getBean()Returns the underlying bean that potentially has been modified by the setter methods exposed. Client code needs to make sure to call this method to see all the changes applied via thisAuditableBeanWrapper.- Returns:
- will never be null.
- Since:
- 2.1
 
 
-