Interface Identifiable<T>
- Type Parameters:
T- The type of the identifier
- All Known Subinterfaces:
DetailModel<E>
public interface Identifiable<T>
The Identifiable interface defines a contract for objects that have an identifier and
can be identified as transient.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the idbooleanReturnstrueif this object is transient and doesn't have id set.voidSet the id
-
Method Details
-
getId
T getId()Returns the id -
setId
Set the id -
isTransient
boolean isTransient()Returnstrueif this object is transient and doesn't have id set. If this object is persistent it returnsfalse.
-