|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Persistent
This interface defines methods related to saving an object
| Method Summary | |
|---|---|
ObjectKey |
getPrimaryKey()
getter for the object primaryKey. |
boolean |
isModified()
Returns whether the object has been modified, since it was last retrieved from storage. |
boolean |
isNew()
Returns whether the object has ever been saved. |
void |
save()
Saves the object. |
void |
save(Connection con)
Stores the object in the database. |
void |
save(String dbName)
Stores the object in the database. |
void |
setModified(boolean m)
Sets the modified state for the object. |
void |
setNew(boolean b)
Setter for the isNew attribute. |
void |
setPrimaryKey(ObjectKey primaryKey)
Sets the PrimaryKey for the object. |
void |
setPrimaryKey(String primaryKey)
Sets the PrimaryKey for the object. |
| Method Detail |
|---|
ObjectKey getPrimaryKey()
void setPrimaryKey(ObjectKey primaryKey)
throws TorqueException
primaryKey - The new PrimaryKey for the object.
TorqueException - This method might throw an exception
void setPrimaryKey(String primaryKey)
throws TorqueException
primaryKey - the String should be of the form produced by
ObjectKey.toString().
TorqueException - This method might throw an exceptionboolean isModified()
boolean isNew()
void setNew(boolean b)
b - the state of the object.void setModified(boolean m)
m - The new modified state for the object.
void save()
throws Exception
Exception - This method might throw an exception
void save(String dbName)
throws Exception
dbName - the name of the database
Exception - This method might throw an exception
void save(Connection con)
throws Exception
con - the Connection used to store the object
Exception - This method might throw an exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||