|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
public abstract class BaseDeliveryController
BaseDeliveryController.java Baseclass for Castor Controller Classes. Various methods to handle transactions and so on
| Constructor Summary | |
|---|---|
BaseDeliveryController()
|
|
| Method Summary | |
|---|---|
static void |
beginTransaction(org.exolab.castor.jdo.Database db)
Begins a transaction on the named database |
static void |
closeDatabase(org.exolab.castor.jdo.Database db)
Close the database |
static void |
closeTransaction(org.exolab.castor.jdo.Database db)
Rollbacks a transaction on the named database |
static void |
commitTransaction(org.exolab.castor.jdo.Database db)
Ends a transaction on the named database |
protected static org.exolab.castor.jdo.OQLQuery |
createQuery(org.exolab.castor.jdo.Database db,
java.lang.String query,
java.util.List params)
Creates an OQLQuery for the provided Database and binds the parameters to it. |
protected static java.util.List |
executeQuery(org.exolab.castor.jdo.Database db,
java.lang.String query)
Executes a Query with no parameters |
protected static java.util.List |
executeQuery(org.exolab.castor.jdo.Database db,
java.lang.String query,
java.util.List params)
Executes a Query, also binds the provided parameters |
java.util.List |
getAllVOObjects(java.lang.Class arg,
org.exolab.castor.jdo.Database db)
This method fetches all object in read only mode and returns a list of value objects. |
java.util.List |
getAllVOObjects(java.lang.Class arg,
java.lang.String orderByField,
java.lang.String direction,
org.exolab.castor.jdo.Database db)
This method fetches all object in read only mode and returns a list of value objects. |
protected org.apache.log4j.Logger |
getLogger()
Gets a logger for the action class. |
protected java.lang.Object |
getObjectWithId(java.lang.Class arg,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
This method fetches one object / entity within a transaction. |
protected BaseEntityVO |
getVOWithId(java.lang.Class arg,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
This method fetches one object in read only mode and returns it's value object. |
static void |
rollbackTransaction(org.exolab.castor.jdo.Database db)
Rollbacks a transaction on the named database |
protected static java.util.List |
toVOList(java.util.Collection entities)
This method converts a List of entities to a list of value-objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseDeliveryController()
| Method Detail |
|---|
protected org.apache.log4j.Logger getLogger()
protected java.lang.Object getObjectWithId(java.lang.Class arg,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
protected BaseEntityVO getVOWithId(java.lang.Class arg,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getAllVOObjects(java.lang.Class arg,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getAllVOObjects(java.lang.Class arg,
java.lang.String orderByField,
java.lang.String direction,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
protected static java.util.List executeQuery(org.exolab.castor.jdo.Database db,
java.lang.String query)
throws SystemException,
java.lang.Exception
query - An OQL Query
SystemException - If an error occurs
java.lang.Exception
protected static java.util.List executeQuery(org.exolab.castor.jdo.Database db,
java.lang.String query,
java.util.List params)
throws java.lang.Exception
query - An OQL Queryparams - A List of paramters
SystemException - If an error occurs
java.lang.Exception
protected static org.exolab.castor.jdo.OQLQuery createQuery(org.exolab.castor.jdo.Database db,
java.lang.String query,
java.util.List params)
throws org.exolab.castor.jdo.PersistenceException
db - The Database to create the OQLQuery onquery - The String OQL queryparams - A List of Objects to bind to the query sequentially
org.exolab.castor.jdo.PersistenceException
protected static java.util.List toVOList(java.util.Collection entities)
throws SystemException,
Bug
SystemException
Bug
public static void beginTransaction(org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
public static void closeTransaction(org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
public static void commitTransaction(org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
public static void rollbackTransaction(org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
public static void closeDatabase(org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||