Package org.apache.torque.om
Schnittstelle Persistent
- Alle Superschnittstellen:
ObjectModel
This interface defines methods related to saving an object
- Version:
- $Id: Persistent.java 1754260 2016-07-27 12:26:53Z tv $
- Autor:
- John D. McNally, Fedor K.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
save()
Saves the object.void
Stores the object in the database.void
save
(Connection con) Stores the object in the database.Von Schnittstelle geerbte Methoden org.apache.torque.om.ObjectModel
getPrimaryKey, isModified, isNew, setModified, setNew, setPrimaryKey, setPrimaryKey
-
Methodendetails
-
save
Saves the object.- Löst aus:
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.- Parameter:
dbName
- the name of the database- Löst aus:
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- Parameter:
con
- the Connection used to store the object- Löst aus:
Exception
- This method might throw an exception
-