public interface ObjectModel
| Modifier and Type | Method and Description | 
|---|---|
| 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 | 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. | 
ObjectKey<?> getPrimaryKey()
void setPrimaryKey(ObjectKey<?> primaryKey) throws TorqueException
primaryKey - The new PrimaryKey for the object.TorqueException - This method might throw an exceptionvoid 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.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.