Package dev.akif.crud
Interface CRUDModel<I extends Serializable>
- Type Parameters:
I
- Id type of the data
- All Known Subinterfaces:
SimpleModel<I,
,E> SimplerModel<I,
E, M>
- All Known Implementing Classes:
SimplestEntity
public interface CRUDModel<I extends Serializable>
Base model of a data model
-
Method Details
-
id
I id()Gets identifier of this model- Returns:
- Identifier of this model
-
version
int version()Gets version of this model- Returns:
- Version of this model
-
createdAt
Instant createdAt()Gets the instant at which this model is created- Returns:
- The instant at which this model is created
-
updatedAt
Instant updatedAt()Gets the instant at which this model is last updated- Returns:
- The instant at which this model is last updated
-
deletedAt
Instant deletedAt()Gets the instant at which this model is deleted- Returns:
- The instant at which this model is deleted or null if it is not deleted
-