Returns true if the object can be persistent. If an object doesn't have table information
or row id information, it can not be persistent.
true if the object can be persistent.
Deletes the object from a matching database table using the jpersist.Database instance.
Parameters: database - a database instance throws: JPersistException -
Deletes the object from a matching database table using the jpersist.DatabaseManager instance.
Parameters: databaseManager - a database manager instance throws: JPersistException -
Deletes the object from a matching database table using the jpersist.TransactionManager instance.
Parameters: transactionManager - a jpersist.TransactionManager instance throws: JPersistException -
Returns true is associations are being ignored and not loaded or saved, false otherwise.
true is associations are being ignored and not loaded or saved, false otherwise.
Returns the key value that was originally loaded with the object. Even if the
field in the object changes the original key's value remains for updates
and deletes.
Parameters: key - a key field defined in the object the key value that was originally loaded with the object
Returns whether an object can be persistent, and the reason why or why not.
Objects are checked during loading to see if they can be made persistent.
If they can OBJECT_CAN_PERSIST will be returned. If the object can't persist,
then the reason why, usually MISSING_ROW_ID, will be returned.
whether an object can be persistent, and the reason why or why not
Returns true if object is in the persistent state (has been saved/loaded and will be updated)
true if object is in the persistent state (has been saved/loaded and will be updated)
Saves the object to a matching database table using the jpersist.Database instance.
Parameters: database - a database instance throws: JPersistException -
Saves the object to a matching database table using the jpersist.DatabaseManager instance.
Parameters: databaseManager - a database manager instance throws: JPersistException -
Saves the object to a matching database table using the jpersist.TransactionManager instance.
Parameters: transactionManager - a jpersist.TransactionManager instance throws: JPersistException -
Set the state of the object to has changed which will cause it to be saved.
Parameters: objectHasChanged - true if the object has changed and needs to be saved
Set whether objects are reloaded after saves. If the database changes
any of the columns associated with an object, it should be reloaded.
Parameters: reloadAfterSave - true if the object is to be reloaded following a save