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 Type
    Method
    Description
    Returns the id
    boolean
    Returns true if this object is transient and doesn't have id set.
    void
    setId(T id)
    Set the id
  • Method Details

    • getId

      T getId()
      Returns the id
    • setId

      void setId(T id)
      Set the id
    • isTransient

      boolean isTransient()
      Returns true if this object is transient and doesn't have id set. If this object is persistent it returns false.