Interface DataObject
- All Superinterfaces:
Persistent, Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
Defines basic methods for a persistent object in Cayenne.
-
Field Summary
Fields inherited from interface Persistent
DEFAULT_VERSION -
Method Summary
Methods inherited from interface Persistent
addToManyTarget, getObjectContext, getObjectId, getPersistenceState, getSnapshotVersion, readNestedProperty, readNestedProperty, readProperty, readPropertyDirectly, removeToManyTarget, setObjectContext, setObjectId, setPersistenceState, setSnapshotVersion, setToOneTarget, writeProperty, writePropertyDirectlyModifier and TypeMethodDescriptionvoidaddToManyTarget(String relationshipName, Persistent target, boolean setReverse) Adds an object to a to-many relationship.intlongReturns a version of a DataRow snapshot that was used to create this object.readNestedProperty(String path) Returns a value of the property identified by a property path.Returns a value of the property identified by a property path.readProperty(String propName) Returns a value of the property identified by propName.readPropertyDirectly(String propertyName) Returns mapped property value as currently stored in the Persistent object.voidremoveToManyTarget(String relationshipName, Persistent target, boolean unsetReverse) Removes an object from a to-many relationship.voidsetObjectContext(ObjectContext objectContext) voidsetObjectId(ObjectId id) voidsetPersistenceState(int state) voidsetSnapshotVersion(long snapshotVersion) voidsetToOneTarget(String relationshipName, Persistent value, boolean setReverse) Sets to-one relationship to a new value.voidwriteProperty(String propertyName, Object value) Sets the property to the new value.voidwritePropertyDirectly(String propertyName, Object val) Modifies a value of a named property without altering the object state in any way, and without triggering any database operations.
Persistentinterface directly