org.nakedobjects.plugins.hibernate.objectstore
Class HibernateObjectStoreImmediate

java.lang.Object
  extended by org.nakedobjects.plugins.hibernate.objectstore.HibernateObjectStore
      extended by org.nakedobjects.plugins.hibernate.objectstore.HibernateObjectStoreImmediate
All Implemented Interfaces:
Component, NamedComponent, SessionScopedComponent, DebugInfo, ObjectStore, ObjectStorePersistence, ObjectStoreTransactionManagement, PersistenceSessionHydratorAware

public class HibernateObjectStoreImmediate
extends HibernateObjectStore

Same as HibernateObjectStore except doesn't create commands to save/update objects at the end of the NOF transaction, instead it does the update there and then.


Constructor Summary
HibernateObjectStoreImmediate()
           
 
Method Summary
 void endTransaction()
           
 void execute(java.util.List<PersistenceCommand> commands)
           
protected  boolean startHibernateTransaction()
          Is protected so can be overridden.
 
Methods inherited from class org.nakedobjects.plugins.hibernate.objectstore.HibernateObjectStore
abortTransaction, close, commitHibernateTransaction, createCreateObjectCommand, createDestroyObjectCommand, createQuery, createSaveObjectCommand, debugData, debugTitle, executeCommands, getInstances, getInstances, getInstancesByHibernateCriteria, getInstancesByPatternCriteria, getInstancesByTitleCriteria, getObject, getOidForService, hasInstances, isFixturesInstalled, name, open, registerService, reset, resolveField, resolveImmediately, setHydrator, startTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateObjectStoreImmediate

public HibernateObjectStoreImmediate()
Method Detail

startHibernateTransaction

protected boolean startHibernateTransaction()
Description copied from class: HibernateObjectStore
Is protected so can be overridden.

Overrides:
startHibernateTransaction in class HibernateObjectStore
Returns:

endTransaction

public void endTransaction()
Specified by:
endTransaction in interface ObjectStoreTransactionManagement
Overrides:
endTransaction in class HibernateObjectStore

execute

public void execute(java.util.List<PersistenceCommand> commands)
Specified by:
execute in interface ObjectStorePersistence
Specified by:
execute in interface ObjectStoreTransactionManagement
Overrides:
execute in class HibernateObjectStore


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.