org.nakedobjects.applib
Class AbstractFactoryAndRepository
java.lang.Object
org.nakedobjects.applib.AbstractContainedObject
org.nakedobjects.applib.AbstractService
org.nakedobjects.applib.AbstractFactoryAndRepository
public abstract class AbstractFactoryAndRepository
- extends AbstractService
|
Method Summary |
protected
|
newInstance(Class<T> ofClass,
Object object)
Returns a new instance of the specified class that has the sane persisted state as the specified object. |
protected
|
newPersistentInstance(Class<T> ofClass)
Returns a new instance of the specified class that will have been persisted. |
| Methods inherited from class org.nakedobjects.applib.AbstractContainedObject |
allInstances, allMatches, allMatches, allMatches, allMatches, firstMatch, firstMatch, firstMatch, firstMatch, getContainer, getUser, informUser, isPersistent, isValid, newTransientInstance, persist, persistIfNotAlready, raiseError, remove, setContainer, uniqueMatch, uniqueMatch, uniqueMatch, uniqueMatch, validate, warnUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFactoryAndRepository
public AbstractFactoryAndRepository()
newPersistentInstance
protected <T> T newPersistentInstance(Class<T> ofClass)
- Returns a new instance of the specified class that will have been persisted.
This method isn't quite deprecated, but generally consider using
AbstractContainedObject.newTransientInstance(Class) instead.
newInstance
protected <T> T newInstance(Class<T> ofClass,
Object object)
- Returns a new instance of the specified class that has the sane persisted state as the specified object.
This method isn't quite deprecated, but generally consider using
AbstractContainedObject.newTransientInstance(Class) instead.
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.