Interface Entity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
compareTo(Entity e)
Default implementation of compareTo by id.java.lang.Long
getId()
Returns the id of this entitiy.boolean
isDeleted()
Returns true, if the entity is marked as deleted, otherwise falsedefault boolean
isNotDeleted()
Returns true, if the entity is not marked as deleted, otherwise false
-
-
-
Method Detail
-
getId
java.lang.Long getId()
Returns the id of this entitiy.- Returns:
- the id of this entitiy
- Since:
- 1.2
-
isDeleted
boolean isDeleted()
Returns true, if the entity is marked as deleted, otherwise false- Returns:
- true, if the entity is deleted
- Since:
- 1.0
-
isNotDeleted
default boolean isNotDeleted()
Returns true, if the entity is not marked as deleted, otherwise false- Returns:
- true, if the entity is not deleted
- Since:
- 1.9
-
-