| java.lang.Object it.biobytes.ammentos.Persistor it.biobytes.ammentos.persistors.DatabasePersistor
DatabasePersistor | public class DatabasePersistor extends Persistor (Code) | | author: davide |
Method Summary | |
public int | count(Class<T> c, Query qry, Connection conn) | public int | count(Class<T> c, Query qry) | public int | count(Class<T> c, Query qry, Transaction trans) | public void | delete(Class<T> c, T obj) | public void | delete(Class<T> c, T obj, Transaction trans) | protected String | getSelectFieldsString(Metadata metadata) | public boolean | load(Class<T> c, T obj, Object primaryKey) | public boolean | load(Class<T> c, T obj, Object primaryKey, Transaction trans) | protected void | loadFields(Class<T> c, T obj, ResultSet rs) | public EntityIterable<T> | loadIterable(Class<T> c, Query qry) | public EntityIterable<T> | loadIterable(Class<T> c, Query qry, Transaction trans) | public void | save(Class<T> c, T obj) | public void | save(Class<T> c, T obj, Transaction trans) | protected void | setAutomaticValues(Class<T> c, T obj) Sets the values for the automatic fields. | protected void | setAutomaticValues(Class<T> c, T obj, ResultSet rs) Sets the values for the automatic fields from auto generated values. |
DatabasePersistor | public DatabasePersistor()(Code) | | Creates a new instance of DatabasePersistor
|
getSelectFieldsString | protected String getSelectFieldsString(Metadata metadata)(Code) | | Makes the select fields string as a comma separated list
|
setAutomaticValues | protected void setAutomaticValues(Class<T> c, T obj, ResultSet rs) throws PersistenceException(Code) | | Sets the values for the automatic fields from auto generated values. Only fields
marked as automatic=true and automaticType=EXTERNAL will be evaluated in this method.
author: Mark Bednarczyk |
Methods inherited from it.biobytes.ammentos.Persistor | abstract public int count(Class<T> c, Query qry) throws PersistenceException(Code)(Java Doc) abstract public int count(Class<T> c, Query qry, Transaction trans) throws PersistenceException(Code)(Java Doc) abstract public void delete(Class<T> c, T obj) throws PersistenceException(Code)(Java Doc) abstract public void delete(Class<T> c, T obj, Transaction trans) throws PersistenceException(Code)(Java Doc) protected boolean isLoaded(Class<T> c, T obj)(Code)(Java Doc) abstract public boolean load(Class<T> c, T obj, Object primaryKey) throws PersistenceException(Code)(Java Doc) abstract public boolean load(Class<T> c, T obj, Object primaryKey, Transaction trans) throws PersistenceException(Code)(Java Doc) abstract public EntityIterable<T> loadIterable(Class<T> c, Query qry) throws PersistenceException(Code)(Java Doc) abstract public EntityIterable<T> loadIterable(Class<T> c, Query qry, Transaction trans) throws PersistenceException(Code)(Java Doc) protected void markAsLoaded(Class<T> c, T obj)(Code)(Java Doc) abstract public void save(Class<T> c, T obj) throws PersistenceException(Code)(Java Doc) abstract public void save(Class<T> c, T obj, Transaction trans) throws PersistenceException(Code)(Java Doc) protected void unmarkAsLoaded(Class<T> c, T obj)(Code)(Java Doc)
|
|
|