Package com.inteliqua.rest.entity
Interface BaseEntity
-
public interface BaseEntityInterface for defining the basic entity structure. Any entity implementing this interface will be required to manage basic auditing and tracking information.- Author:
- ckonstantakis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DategetChangeDate()Gets the date when the entity was last modified.IntegergetChangedBy()Gets the ID of the user who last modified the entity.IntegergetCreatedBy()Gets the ID of the user who created the entity.DategetCreationDate()Gets the creation date of the entity.booleangetDeleteFlag()Gets the delete flag, indicating whether the entity is deleted or not.IntegergetId()Gets the unique identifier for this entity.booleanisNew()Checks if this entity is newly created.StringtoString()Provides a string representation of this entity.
-
-
-
Method Detail
-
getId
Integer getId()
Gets the unique identifier for this entity.- Returns:
- the ID of the entity
-
getDeleteFlag
boolean getDeleteFlag()
Gets the delete flag, indicating whether the entity is deleted or not.- Returns:
- true if the entity is marked as deleted, false otherwise
-
getCreationDate
Date getCreationDate()
Gets the creation date of the entity.- Returns:
- the creation date of the entity
-
getChangeDate
Date getChangeDate()
Gets the date when the entity was last modified.- Returns:
- the last modification date of the entity
-
getCreatedBy
Integer getCreatedBy()
Gets the ID of the user who created the entity.- Returns:
- the ID of the user who created the entity
-
getChangedBy
Integer getChangedBy()
Gets the ID of the user who last modified the entity.- Returns:
- the ID of the user who last modified the entity
-
isNew
boolean isNew()
Checks if this entity is newly created.- Returns:
- true if the entity is new, false otherwise
-
-