Package org.apache.cayenne
Class PersistentObject
java.lang.Object
org.apache.cayenne.PersistentObject
- All Implemented Interfaces:
Serializable
,Persistent
- Direct Known Subclasses:
BaseDataObject
A convenience base superclass for concrete Persistent objects. Provides implementation
of properties declared in Persistent interface.
POJO Note
If having PersistentObject as a superclass presents a problem in an application, source code of this class can be copied verbatim to a custom class generation template. Desired superclass can be set in CayenneModeler.
- Since:
- 1.2
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
Returns a map key for a given to-many map relationship and a target object.int
void
setObjectContext
(ObjectContext objectContext) void
setObjectId
(ObjectId objectId) void
setPersistenceState
(int persistenceState) toString()
-
Field Details
-
Constructor Details
-
Method Details
-
getPersistenceState
public int getPersistenceState()- Specified by:
getPersistenceState
in interfacePersistent
-
setPersistenceState
public void setPersistenceState(int persistenceState) - Specified by:
setPersistenceState
in interfacePersistent
-
getObjectContext
- Specified by:
getObjectContext
in interfacePersistent
-
setObjectContext
- Specified by:
setObjectContext
in interfacePersistent
-
getObjectId
- Specified by:
getObjectId
in interfacePersistent
-
setObjectId
- Specified by:
setObjectId
in interfacePersistent
-
getMapKey
Returns a map key for a given to-many map relationship and a target object.- Since:
- 3.0
-
toString
-