Interface Persistent

All Superinterfaces:
Serializable
All Known Subinterfaces:
DataObject
All Known Implementing Classes:
BaseDataObject, CayenneDataObject, HybridDataObject, PersistentObject

public interface Persistent
extends Serializable
Defines minimal API of an object that can be persisted via Cayenne.
Since:
1.2
  • Method Details

    • getObjectId

      ObjectId getObjectId()
    • setObjectId

      void setObjectId​(ObjectId id)
    • getPersistenceState

      int getPersistenceState()
    • setPersistenceState

      void setPersistenceState​(int state)
    • getObjectContext

      ObjectContext getObjectContext()
    • setObjectContext

      void setObjectContext​(ObjectContext objectContext)