public class AuditableWrapper extends Object implements org.springframework.data.domain.Auditable
auditing. If the underlying
entity does not exhibit auditable behavior (either by implementing Auditable or by having properties that are
annotated with one of the audit annotations provided by Spring Data Commons) this class will simply ignore audit
requests. Otherwise, it will convert the values to their appropriate types and sets and gets the appropriate
properties.| Constructor and Description |
|---|
AuditableWrapper(Object entity,
RepositoryMetadata repositoryMetadata) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCreatedBy() |
org.joda.time.DateTime |
getCreatedDate() |
Serializable |
getId() |
Object |
getLastModifiedBy() |
org.joda.time.DateTime |
getLastModifiedDate() |
boolean |
isNew() |
void |
setCreatedBy(Object createdBy) |
void |
setCreatedDate(org.joda.time.DateTime creationDate) |
void |
setLastModifiedBy(Object lastModifiedBy) |
void |
setLastModifiedDate(org.joda.time.DateTime lastModifiedDate) |
public AuditableWrapper(Object entity, RepositoryMetadata repositoryMetadata)
public Object getCreatedBy()
getCreatedBy in interface org.springframework.data.domain.Auditablepublic void setCreatedBy(Object createdBy)
setCreatedBy in interface org.springframework.data.domain.Auditablepublic org.joda.time.DateTime getCreatedDate()
getCreatedDate in interface org.springframework.data.domain.Auditablepublic void setCreatedDate(org.joda.time.DateTime creationDate)
setCreatedDate in interface org.springframework.data.domain.Auditablepublic Object getLastModifiedBy()
getLastModifiedBy in interface org.springframework.data.domain.Auditablepublic void setLastModifiedBy(Object lastModifiedBy)
setLastModifiedBy in interface org.springframework.data.domain.Auditablepublic org.joda.time.DateTime getLastModifiedDate()
getLastModifiedDate in interface org.springframework.data.domain.Auditablepublic void setLastModifiedDate(org.joda.time.DateTime lastModifiedDate)
setLastModifiedDate in interface org.springframework.data.domain.Auditablepublic Serializable getId()
getId in interface org.springframework.data.domain.Persistablepublic boolean isNew()
isNew in interface org.springframework.data.domain.PersistableCopyright © 2014–2016. All rights reserved.