Method Summary |
|
public boolean | equals(Object obj) Compares this with another BaseObject instance. |
public boolean | equals(BaseObject bo) Compares the primary key of this instance with the key of another.
Parameters: bo - The object to compare to. |
public Object | getByName(String field) Retrieves a field from the object by name. |
public Object | getByPeerName(String name) Retrieves a field from the object by name passed in as a String. |
public Object | getByPosition(int pos) Retrieves a field from the object by position as specified in a database
schema for example. |
protected Log | getLog() gets a commons-logging Log based on class name. |
public ObjectKey | getPrimaryKey() getter for the object primaryKey. |
public TableMap | getTableMap() Retrieves the TableMap object related to this Table data.
Must be overridden in generated classes. |
public int | hashCode() If the primary key is not null , return the hashcode of the
primary key. |
public boolean | isModified() Returns whether the object has been modified. |
public boolean | isNew() Returns whether the object has ever been saved. |
public void | resetModified() Sets the modified state for the object to be false. |
abstract public void | save() |
abstract public void | save(String dbName) |
abstract public void | save(Connection con) |
public boolean | setByName(String name, Object value) Set a field in the object by field (Java) name. |
public boolean | setByPeerName(String name, Object value) |
public boolean | setByPosition(int position, Object value) Set field values by it's position (zero based) in the XML schema. |
public void | setModified(boolean m) Sets the modified state for the object. |
public void | setNew(boolean b) Setter for the isNew attribute. |
public void | setPrimaryKey(String primaryKey) Sets the PrimaryKey for the object. |
public void | setPrimaryKey(SimpleKey[] primaryKey) Sets the PrimaryKey for the object as an Object. |
public void | setPrimaryKey(ObjectKey primaryKey) Sets the PrimaryKey for the object as an Object. |