org.infoglue.cms.controllers.delivery.kernel.impl.simple
Class BaseDeliveryController

java.lang.Object
  |
  +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.BaseDeliveryController
Direct Known Subclasses:
AvailableServiceBindingDeliveryController, ContentDeliveryController, 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 commitTransaction(org.exolab.castor.jdo.Database db)
          Ends a transaction on the named database
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.
static void rollbackTransaction(org.exolab.castor.jdo.Database db)
          Rollbacks a transaction on the named database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDeliveryController

public BaseDeliveryController()
Method Detail

getObjectWithId

protected java.lang.Object getObjectWithId(java.lang.Class arg,
                                           java.lang.Integer id,
                                           org.exolab.castor.jdo.Database db)
                                    throws org.infoglue.cms.exception.SystemException,
                                           org.infoglue.cms.exception.Bug
This method fetches one object / entity within a transaction.

org.infoglue.cms.exception.SystemException
org.infoglue.cms.exception.Bug

beginTransaction

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

org.infoglue.cms.exception.SystemException

commitTransaction

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

org.infoglue.cms.exception.SystemException

rollbackTransaction

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

org.infoglue.cms.exception.SystemException

closeDatabase

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

org.infoglue.cms.exception.SystemException


Copyright © 2003 InfoGlue.org All Rights Reserved.