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
,Serializable
- Direct Known Subclasses:
FileEntity
,TagEntity
,UniqueIdEntity
Abstract class to support basic columns for all entities for genie.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get when this entity was created.Get the time this entity was updated.int
hashCode()
protected void
Updates the created and updated timestamps to be creation time.protected void
On any update to the entity will update the update time.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjection
getId
-
Constructor Details
-
AuditEntity
public AuditEntity()
-
-
Method Details
-
onCreateBaseEntity
protected void onCreateBaseEntity()Updates the created and updated timestamps to be creation time. -
onUpdateBaseEntity
protected void onUpdateBaseEntity()On any update to the entity will update the update time. -
getCreated
Get when this entity was created.- Specified by:
getCreated
in interfaceAuditProjection
- Returns:
- The created timestamps
-
getUpdated
Get the time this entity was updated.- Specified by:
getUpdated
in interfaceAuditProjection
- Returns:
- The updated timestamp
-
equals
-
hashCode
public int hashCode()
-