org.nakedobjects.plugins.hibernate.objectstore
Class HibernateObjectStoreRemapping
java.lang.Object
org.nakedobjects.runtime.persistence.objectstore.NakedObjectStoreDelegating
org.nakedobjects.plugins.hibernate.objectstore.HibernateObjectStoreRemapping
- All Implemented Interfaces:
- Component, NamedComponent, SessionScopedComponent, DebugInfo, ObjectStore, ObjectStorePersistence, ObjectStoreTransactionManagement
public class HibernateObjectStoreRemapping
- extends NakedObjectStoreDelegating
Wraps a HibernateObjectStore to ensure objects are mapped, even if they aren't specified within the
properties file or picked up from related objects.
This class is useful when initially setting up a project, as it will tell you which entity classes
aren't listed in the properties and would cause a failure using the standard HibernateObjectStore.
| Methods inherited from class org.nakedobjects.runtime.persistence.objectstore.NakedObjectStoreDelegating |
abortTransaction, close, debugData, debugTitle, endTransaction, execute, getOidForService, isFixturesInstalled, name, open, registerService, reset, startTransaction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateObjectStoreRemapping
public HibernateObjectStoreRemapping(ObjectStore decorated)
createCreateObjectCommand
public CreateObjectCommand createCreateObjectCommand(NakedObject object)
- Specified by:
createCreateObjectCommand in interface ObjectStorePersistence- Overrides:
createCreateObjectCommand in class NakedObjectStoreDelegating
createSaveObjectCommand
public SaveObjectCommand createSaveObjectCommand(NakedObject object)
- Specified by:
createSaveObjectCommand in interface ObjectStorePersistence- Overrides:
createSaveObjectCommand in class NakedObjectStoreDelegating
createDestroyObjectCommand
public DestroyObjectCommand createDestroyObjectCommand(NakedObject object)
- Specified by:
createDestroyObjectCommand in interface ObjectStorePersistence- Overrides:
createDestroyObjectCommand in class NakedObjectStoreDelegating
getObject
public NakedObject getObject(Oid oid,
NakedObjectSpecification hint)
throws ObjectNotFoundException,
ObjectPersistenceException
- Specified by:
getObject in interface ObjectStorePersistence- Overrides:
getObject in class NakedObjectStoreDelegating
- Throws:
ObjectNotFoundException
ObjectPersistenceException
resolveField
public void resolveField(NakedObject object,
NakedObjectAssociation field)
- Specified by:
resolveField in interface ObjectStorePersistence- Overrides:
resolveField in class NakedObjectStoreDelegating
resolveImmediately
public void resolveImmediately(NakedObject object)
- Specified by:
resolveImmediately in interface ObjectStorePersistence- Overrides:
resolveImmediately in class NakedObjectStoreDelegating
getInstances
public NakedObject[] getInstances(PersistenceQuery criteria)
- Specified by:
getInstances in interface ObjectStorePersistence- Overrides:
getInstances in class NakedObjectStoreDelegating
hasInstances
public boolean hasInstances(NakedObjectSpecification specification)
- Specified by:
hasInstances in interface ObjectStorePersistence- Overrides:
hasInstances in class NakedObjectStoreDelegating
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.