|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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(java.sql.Connection con)
Stores the object in the database. |
void |
save(java.lang.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(java.lang.String primaryKey)
Sets the PrimaryKey for the object. |
| Method Detail |
public ObjectKey getPrimaryKey()
public void setPrimaryKey(ObjectKey primaryKey)
throws java.lang.Exception
primaryKey - The new PrimaryKey for the object.
java.lang.Exception - This method might throw an exception
public void setPrimaryKey(java.lang.String primaryKey)
throws java.lang.Exception
primaryKey - the String should be of the form produced by
ObjectKey.toString().
java.lang.Exception - This method might throw an exceptionpublic boolean isModified()
public boolean isNew()
public void setNew(boolean b)
b - the state of the object.public void setModified(boolean m)
m - The new modified state for the object.
public void save()
throws java.lang.Exception
java.lang.Exception - This method might throw an exception
public void save(java.lang.String dbName)
throws java.lang.Exception
dbName - the name of the database
java.lang.Exception - This method might throw an exception
public void save(java.sql.Connection con)
throws java.lang.Exception
con - the Connection used to store the object
java.lang.Exception - This method might throw an exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||