org.nakedobjects.plugins.hibernate.objectstore
Class HibernatePersistenceMechanismInstaller

java.lang.Object
  extended by org.nakedobjects.runtime.installers.InstallerAbstract
      extended by org.nakedobjects.runtime.persistence.PersistenceMechanismInstallerAbstract
          extended by org.nakedobjects.runtime.persistence.objectstore.ObjectStorePersistenceMechanismInstallerAbstract
              extended by org.nakedobjects.plugins.hibernate.objectstore.HibernatePersistenceMechanismInstaller
All Implemented Interfaces:
ApplicationScopedComponent, Component, Installer, ConfigurationBuilderAware, InstallerLookupAware, PersistenceMechanismInstaller, PersistenceSessionFactoryDelegate

public class HibernatePersistenceMechanismInstaller
extends ObjectStorePersistenceMechanismInstallerAbstract

Installs the Hibernate object store.


Field Summary
 
Fields inherited from interface org.nakedobjects.runtime.persistence.PersistenceMechanismInstaller
TYPE
 
Constructor Summary
HibernatePersistenceMechanismInstaller()
           
 
Method Summary
protected  ObjectStore createObjectStore(NakedObjectConfiguration configuration, AdapterFactory nakedObjectFactory, AdapterManager adapterManager)
          Creates one of four variants of ObjectStore, dependent on NakedObjectConfiguration: not remapping & is save immediate : HibernateObjectStoreImmediate not remapping & not save immediate: HibernateObjectStore is remapping & is save immediate: HibernateObjectStoreRemapping( HibernateObjectStoreImmediate ) is remapping & not save immediate: HibernateObjectStoreRemapping( HibernateObjectStore )
protected  OidGenerator createOidGenerator(NakedObjectConfiguration configuration)
           
protected  PersistAlgorithm createPersistAlgorithm(NakedObjectConfiguration configuration)
           
 PersistenceSession createPersistenceSession(PersistenceSessionFactory persistenceSessionFactory)
           
 PersistenceSessionFactory createPersistenceSessionFactory(DeploymentType deploymentType)
           
 
Methods inherited from class org.nakedobjects.runtime.persistence.objectstore.ObjectStorePersistenceMechanismInstallerAbstract
createObjectStorePersistor, createPersistenceSession, createTransactionManager
 
Methods inherited from class org.nakedobjects.runtime.persistence.PersistenceMechanismInstallerAbstract
createAdapterFactory, createAdapterManager, createContainer, createObjectFactory, createRuntimeContext, createServicesInjector, getInstallerLookup, setInstallerLookup
 
Methods inherited from class org.nakedobjects.runtime.installers.InstallerAbstract
addConfigurationResources, getConfiguration, getConfigurationResources, getName, getType, init, setConfiguration, setConfigurationBuilder, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.Installer
getConfigurationResources, getName, getType
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.ApplicationScopedComponent
init, shutdown
 

Constructor Detail

HibernatePersistenceMechanismInstaller

public HibernatePersistenceMechanismInstaller()
Method Detail

createPersistenceSessionFactory

public PersistenceSessionFactory createPersistenceSessionFactory(DeploymentType deploymentType)

createPersistenceSession

public PersistenceSession createPersistenceSession(PersistenceSessionFactory persistenceSessionFactory)
Specified by:
createPersistenceSession in interface PersistenceSessionFactoryDelegate
Overrides:
createPersistenceSession in class PersistenceMechanismInstallerAbstract

createObjectStore

protected ObjectStore createObjectStore(NakedObjectConfiguration configuration,
                                        AdapterFactory nakedObjectFactory,
                                        AdapterManager adapterManager)
Creates one of four variants of ObjectStore, dependent on NakedObjectConfiguration:

Specified by:
createObjectStore in class ObjectStorePersistenceMechanismInstallerAbstract

createOidGenerator

protected OidGenerator createOidGenerator(NakedObjectConfiguration configuration)
Overrides:
createOidGenerator in class PersistenceMechanismInstallerAbstract

createPersistAlgorithm

protected PersistAlgorithm createPersistAlgorithm(NakedObjectConfiguration configuration)
Overrides:
createPersistAlgorithm in class ObjectStorePersistenceMechanismInstallerAbstract


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