|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.cms.controllers.kernel.impl.simple.BaseController
public abstract class BaseController
BaseController.java Created on 2002-aug-28
| Constructor Summary | |
|---|---|
BaseController()
|
|
| Method Summary | |
|---|---|
protected static org.exolab.castor.jdo.Database |
beginTransaction()
Creates a new database and starts a transaction |
protected static void |
beginTransaction(org.exolab.castor.jdo.Database db)
Begins a transaction on the named database |
protected static void |
closeDatabase(org.exolab.castor.jdo.Database db)
Rollbacks a transaction on the named database |
protected static void |
commitTransaction(org.exolab.castor.jdo.Database db)
Ends a transaction on the named database |
protected static java.lang.Object |
createEntity(java.lang.Object entity)
Create, Delete & Update operations |
protected static java.lang.Object |
createEntity(java.lang.Object entity,
org.exolab.castor.jdo.Database db)
|
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. |
static void |
deleteEntity(java.lang.Class entClass,
java.lang.Integer id)
|
static void |
deleteEntity(java.lang.Class entClass,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
|
static void |
deleteEntity(java.lang.Class entClass,
java.lang.String id)
|
static void |
deleteEntity(java.lang.Class entClass,
java.lang.String id,
org.exolab.castor.jdo.Database db)
|
protected static java.util.List |
executeQuery(java.lang.String query)
Executes a Query with no parameters |
protected static java.util.List |
executeQuery(java.lang.String query,
org.exolab.castor.jdo.Database db)
Executes a Query with no parameters |
protected static java.util.List |
executeQuery(java.lang.String query,
java.util.List params)
Executes a Query, also binds the provided parameters |
protected static java.util.List |
executeQuery(java.lang.String query,
java.util.List params,
org.exolab.castor.jdo.Database db)
Executes a Query, also binds the provided parameters |
java.util.List |
getAllObjects(java.lang.Class arg,
java.lang.String primaryKey,
org.exolab.castor.jdo.Database db)
This method fetches all object in read only mode and returns a list of objects. |
java.util.List |
getAllVOObjects(java.lang.Class arg,
java.lang.String primaryKey)
This method fetches all object in read only mode and returns a list of value objects sorted on primary Key. |
java.util.List |
getAllVOObjects(java.lang.Class arg,
java.lang.String primaryKey,
org.exolab.castor.jdo.Database db)
This method fetches all object in read only mode and returns a list of value objects. |
static java.util.List |
getAllVOObjects(java.lang.Class arg,
java.lang.String orderByAttribute,
java.lang.String direction)
This method fetches all object in read only mode and returns a list of value objects. |
static 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. |
abstract BaseEntityVO |
getNewVO()
|
protected static 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 static java.lang.Object |
getObjectWithId(java.lang.Class arg,
java.lang.String id,
org.exolab.castor.jdo.Database db)
This method fetches one object / entity within a transaction. |
protected static java.lang.Object |
getObjectWithIdAsReadOnly(java.lang.Class arg,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
This method fetches one object / entity within a transaction. |
static java.lang.Object |
getVOWithId(java.lang.Class arg,
java.lang.Integer id)
This method is used to fetch a ValueObject from the database. |
static 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 java.lang.Object |
getVOWithId(java.lang.Class arg,
java.lang.String id)
This method is used to fetch a ValueObject from the database. |
static BaseEntityVO |
getVOWithId(java.lang.Class arg,
java.lang.String id,
org.exolab.castor.jdo.Database db)
This method fetches one object in read only mode and returns it's value object. |
protected void |
intercept(java.util.Map hashMap,
java.lang.String InterceptionPointName,
InfoGluePrincipal infogluePrincipal)
This method is called by the controllers to let interceptors listen to events. |
protected void |
intercept(java.util.Map hashMap,
java.lang.String InterceptionPointName,
InfoGluePrincipal infogluePrincipal,
org.exolab.castor.jdo.Database db)
This method is called by the controllers to let interceptors listen to events. |
protected static void |
rollbackTransaction(org.exolab.castor.jdo.Database db)
Rollbacks a transaction on the named database |
static java.util.List |
toModifiableVOList(java.util.Collection baseEntities)
This method converts a List of entities to a list of value-objects. |
static java.util.List |
toVOList(java.util.Collection baseEntities)
This method converts a List of entities to a list of value-objects. |
static BaseEntityVO |
updateEntity(java.lang.Class arg,
BaseEntityVO vo)
|
static BaseEntityVO |
updateEntity(java.lang.Class arg,
BaseEntityVO vo,
org.exolab.castor.jdo.Database db)
|
static BaseEntityVO |
updateEntity(java.lang.Class entClass,
BaseEntityVO vo,
java.lang.String collectionMethod,
java.lang.Class manyClass,
java.lang.String[] manyIds)
|
static IBaseEntity |
updateEntity(java.lang.Class entClass,
BaseEntityVO vo,
java.lang.String collectionMethod,
java.lang.Class manyClass,
java.lang.String[] manyIds,
org.exolab.castor.jdo.Database db)
|
static ConstraintExceptionBuffer |
validateEntity(ValidatableEntityVO vo)
Validation and integrity check of entities - cre 2002-09-18 / SS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseController()
| Method Detail |
|---|
protected void intercept(java.util.Map hashMap,
java.lang.String InterceptionPointName,
InfoGluePrincipal infogluePrincipal)
throws ConstraintException,
SystemException,
Bug,
java.lang.Exception
hashMap - InterceptionPointName - infogluePrincipal -
ConstraintException
SystemException
Bug
java.lang.Exception
protected void intercept(java.util.Map hashMap,
java.lang.String InterceptionPointName,
InfoGluePrincipal infogluePrincipal,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
Bug,
java.lang.Exception
hashMap - InterceptionPointName - infogluePrincipal -
ConstraintException
SystemException
Bug
java.lang.Exception
protected static java.lang.Object createEntity(java.lang.Object entity)
throws SystemException,
Bug
SystemException
Bug
protected static java.lang.Object createEntity(java.lang.Object entity,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug,
java.lang.Exception
SystemException
Bug
java.lang.Exception
public static void deleteEntity(java.lang.Class entClass,
java.lang.Integer id)
throws Bug,
SystemException
Bug
SystemException
public static void deleteEntity(java.lang.Class entClass,
java.lang.String id)
throws Bug,
SystemException
Bug
SystemException
public static void deleteEntity(java.lang.Class entClass,
java.lang.String id,
org.exolab.castor.jdo.Database db)
throws Bug,
SystemException,
java.lang.Exception
Bug
SystemException
java.lang.Exception
public static void deleteEntity(java.lang.Class entClass,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
throws Bug,
SystemException
Bug
SystemException
public static BaseEntityVO updateEntity(java.lang.Class arg,
BaseEntityVO vo)
throws Bug,
SystemException
Bug
SystemException
public static BaseEntityVO updateEntity(java.lang.Class arg,
BaseEntityVO vo,
org.exolab.castor.jdo.Database db)
throws Bug,
SystemException
Bug
SystemException
public static BaseEntityVO updateEntity(java.lang.Class entClass,
BaseEntityVO vo,
java.lang.String collectionMethod,
java.lang.Class manyClass,
java.lang.String[] manyIds)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public static IBaseEntity updateEntity(java.lang.Class entClass,
BaseEntityVO vo,
java.lang.String collectionMethod,
java.lang.Class manyClass,
java.lang.String[] manyIds,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
protected static java.lang.Object getObjectWithId(java.lang.Class arg,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
protected static java.lang.Object getObjectWithIdAsReadOnly(java.lang.Class arg,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
protected static java.lang.Object getObjectWithId(java.lang.Class arg,
java.lang.String id,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public static java.util.List toVOList(java.util.Collection baseEntities)
throws SystemException,
Bug
SystemException
Bug
public static java.util.List toModifiableVOList(java.util.Collection baseEntities)
throws SystemException,
Bug
SystemException
Bug
public static java.lang.Object getVOWithId(java.lang.Class arg,
java.lang.Integer id)
throws SystemException,
Bug
SystemException
Bug
public static BaseEntityVO getVOWithId(java.lang.Class arg,
java.lang.Integer id,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public static java.lang.Object getVOWithId(java.lang.Class arg,
java.lang.String id)
throws SystemException,
Bug
SystemException
Bug
public static BaseEntityVO getVOWithId(java.lang.Class arg,
java.lang.String id,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public static java.util.List getAllVOObjects(java.lang.Class arg,
java.lang.String orderByAttribute,
java.lang.String direction)
throws SystemException,
Bug
SystemException
Bug
public static 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
public java.util.List getAllVOObjects(java.lang.Class arg,
java.lang.String primaryKey)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getAllVOObjects(java.lang.Class arg,
java.lang.String primaryKey,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getAllObjects(java.lang.Class arg,
java.lang.String primaryKey,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
protected static java.util.List executeQuery(java.lang.String query)
throws SystemException
query - An OQL Query
SystemException - If an error occurs
protected static java.util.List executeQuery(java.lang.String query,
org.exolab.castor.jdo.Database db)
throws SystemException
query - An OQL Query
SystemException - If an error occurs
protected static java.util.List executeQuery(java.lang.String query,
java.util.List params)
throws SystemException
query - An OQL Queryparams - A List of paramters
SystemException - If an error occurs
protected static java.util.List executeQuery(java.lang.String query,
java.util.List params,
org.exolab.castor.jdo.Database db)
throws SystemException
query - An OQL Queryparams - A List of paramtersdb - A transaction object
SystemException - If an error occurs
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.PersistenceExceptionpublic static ConstraintExceptionBuffer validateEntity(ValidatableEntityVO vo)
protected static org.exolab.castor.jdo.Database beginTransaction()
throws SystemException
SystemException - if a database error occurs.
protected static void beginTransaction(org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
protected static void commitTransaction(org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
protected static void rollbackTransaction(org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
protected static void closeDatabase(org.exolab.castor.jdo.Database db)
throws SystemException
SystemExceptionpublic abstract BaseEntityVO getNewVO()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||