Class AuditEntity
- java.lang.Object
- 
- com.netflix.genie.web.data.services.impl.jpa.entities.IdEntity
- 
- com.netflix.genie.web.data.services.impl.jpa.entities.AuditEntity
 
 
- 
- All Implemented Interfaces:
- AuditProjection,- IdProjection,- java.io.Serializable
 - Direct Known Subclasses:
- FileEntity,- TagEntity,- UniqueIdEntity
 
 @MappedSuperclass public class AuditEntity extends IdEntity implements AuditProjection Abstract class to support basic columns for all entities for genie.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AuditEntity()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.time.InstantgetCreated()Get when this entity was created.java.time.InstantgetUpdated()Get the time this entity was updated.inthashCode()protected voidonCreateBaseEntity()Updates the created and updated timestamps to be creation time.protected voidonUpdateBaseEntity()On any update to the entity will update the update time.- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjectiongetId
 
- 
 
- 
- 
- 
Method Detail- 
onCreateBaseEntityprotected void onCreateBaseEntity() Updates the created and updated timestamps to be creation time.
 - 
onUpdateBaseEntityprotected void onUpdateBaseEntity() On any update to the entity will update the update time.
 - 
getCreatedpublic java.time.Instant getCreated() Get when this entity was created.- Specified by:
- getCreatedin interface- AuditProjection
- Returns:
- The created timestamps
 
 - 
getUpdatedpublic java.time.Instant getUpdated() Get the time this entity was updated.- Specified by:
- getUpdatedin interface- AuditProjection
- Returns:
- The updated timestamp
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-