Interface IEntity

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Long getId()
      Return the surrogate primary key of the object.
      boolean isNew()
      Return true if the object is new or transient object.
      void setId​(Long id)
      Set the surrogate primary key of the object.
      • Methods inherited from interface org.apache.cayenne.Persistent

        getObjectContext, getObjectId, getPersistenceState, setObjectContext, setObjectId, setPersistenceState
    • Method Detail

      • getId

        Long getId()
        Return the surrogate primary key of the object.
        Returns:
        the surrogate primary key of the object
      • setId

        void setId​(Long id)
        Set the surrogate primary key of the object.
        Parameters:
        id - the surrogate primary key of the object to set
      • isNew

        boolean isNew()
        Return true if the object is new or transient object.
        Returns:
        true if the object is new or transient object