org.infoglue.deliver.controllers.kernel.impl.simple
Class BaseDeliveryController

java.lang.Object
  |
  +--org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
Direct Known Subclasses:
AvailableServiceBindingDeliveryController, ContentDeliveryController, DigitalAssetDeliveryController, ExtranetController, LanguageDeliveryController, NodeDeliveryController, RepositoryDeliveryController

public abstract class BaseDeliveryController
extends java.lang.Object

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
 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.
static void rollbackTransaction(org.exolab.castor.jdo.Database db)
          Rollbacks a transaction on the named database
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDeliveryController

public BaseDeliveryController()
Method Detail

getAllVOObjects

public java.util.List getAllVOObjects(java.lang.Class arg,
                                      org.exolab.castor.jdo.Database db)
                               throws SystemException,
                                      Bug
This method fetches all object in read only mode and returns a list of value objects.

SystemException
Bug

getAllVOObjects

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
This method fetches all object in read only mode and returns a list of value objects.

SystemException
Bug

beginTransaction

public static void beginTransaction(org.exolab.castor.jdo.Database db)
                             throws SystemException
Begins a transaction on the named database

SystemException

closeTransaction

public static void closeTransaction(org.exolab.castor.jdo.Database db)
                             throws SystemException
Rollbacks a transaction on the named database

SystemException

commitTransaction

public static void commitTransaction(org.exolab.castor.jdo.Database db)
                              throws SystemException
Ends a transaction on the named database

SystemException

rollbackTransaction

public static void rollbackTransaction(org.exolab.castor.jdo.Database db)
                                throws SystemException
Rollbacks a transaction on the named database

SystemException

closeDatabase

public static void closeDatabase(org.exolab.castor.jdo.Database db)
                          throws SystemException
Close the database

SystemException