| com.methodhead.persistable.Persistable com.methodhead.persistable.KeyedPersistable
All known Subclasses: com.methodhead.aikp.AutoIntKeyPersistable,
KeyedPersistable | public KeyedPersistable(DynaClass dynaClass)(Code) | | |
delete | public void delete()(Code) | | Deletes the persistable. Be sure call load() or
saveNew() before calling this method.
|
load | public void load(Key key) throws PersistableException(Code) | | Loads the persistable for the specified key, throwing an
exception if no such peristable exists.
|
loadAll | public static List loadAll(DynaClass dynaClass, String whereClause, String orderByClause)(Code) | | This method should not be called and will always throw an exception. Use
KeyedPersistable#loadAll(org.apache.commons.beanutils.DynaClass,
* java.lang.String whereClause, java.lang.String orderByClause,KeyFactory keyFactory) loadAll() instead.
|
save | public void save()(Code) | | Saves the persistable by updating an existing row in the database. Be
sure call load() or saveNew() before calling this
method.
|
saveNew | public void saveNew(Key key)(Code) | | Saves the persistable by inserting a new row into the table using the
specified key to specify key field value(s).
|
Methods inherited from com.methodhead.persistable.Persistable | public static void deleteAll(DynaClass dynaClass, String whereClause) throws PersistableException(Code)(Java Doc) public void deleteAll(String whereClause) throws PersistableException(Code)(Java Doc) public boolean getBoolean(String property)(Code)(Java Doc) public Date getDate(String property)(Code)(Java Doc) public double getDouble(String property)(Code)(Java Doc) public int getInt(String property)(Code)(Java Doc) public static String getSqlLiteral(String value)(Code)(Java Doc) public static String getSqlLiteral(Boolean value)(Code)(Java Doc) public static String getSqlLiteral(Date value)(Code)(Java Doc) protected String getSqlLiteral(DynaProperty dynaProperty)(Code)(Java Doc) public String getString(String property)(Code)(Java Doc) public void load(String whereClause)(Code)(Java Doc) public static List loadAll(DynaClass dynaClass, String whereClause, String orderByClause)(Code)(Java Doc) public List loadAll(String whereClause, String orderByClause)(Code)(Java Doc) public void save(String whereClause) throws PersistableException(Code)(Java Doc) public void saveNew()(Code)(Java Doc) public void setAsObject(String property, Object value)(Code)(Java Doc) public void setAsString(String property, String value)(Code)(Java Doc) public void setBoolean(String property, boolean value)(Code)(Java Doc) public void setDate(String property, Date value)(Code)(Java Doc) public void setDouble(String property, double value)(Code)(Java Doc) public void setInt(String property, int value)(Code)(Java Doc) protected static void setProperty(DynaBean persistable, DynaProperty dynaProperty, ResultSet rs)(Code)(Java Doc) public void setString(String property, String value)(Code)(Java Doc)
|
|
|