Package org.apache.torque.om
Interface Persistent
- All Superinterfaces:
ObjectModel
This interface defines methods related to saving an object
- Version:
- $Id: Persistent.java 1754260 2016-07-27 12:26:53Z tv $
- Author:
- John D. McNally, Fedor K.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsave()Saves the object.voidStores the object in the database.voidsave(Connection con) Stores the object in the database.Methods inherited from interface org.apache.torque.om.ObjectModel
getPrimaryKey, isModified, isNew, setModified, setNew, setPrimaryKey, setPrimaryKey
-
Method Details
-
save
Saves the object.- Throws:
Exception- This method might throw an exception
-
save
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.- Parameters:
dbName- the name of the database- Throws:
Exception- This method might throw an exception
-
save
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. This method is meant to be used as part of a transaction, otherwise use the save() method and the connection details will be handled internally- Parameters:
con- the Connection used to store the object- Throws:
Exception- This method might throw an exception
-