org.oddjob
Class OddjobSessionFactory
java.lang.Object
org.oddjob.OddjobSessionFactory
public class OddjobSessionFactory
- extends Object
Constructs an ArooaSession
for Oddjob. This is quite complicated
because of the ability to nest one Oddjob inside another.
- Author:
- rob
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OddjobSessionFactory
public OddjobSessionFactory()
createSession
public ArooaSession createSession()
- Create a session without any persister. Used for testing.
- Returns:
- A session. Never null.
createSession
public ArooaSession createSession(Object oddjob)
- Create a session.
- Parameters:
oddjob
- Used to find the id of Oddjob in any existing session
if a persister is being used.
- Returns:
- A session. Never null.
getExistingSession
public ArooaSession getExistingSession()
setExistingSession
public void setExistingSession(ArooaSession existingSession)
getClassLoader
public ClassLoader getClassLoader()
setClassLoader
public void setClassLoader(ClassLoader classLoader)
getDescriptorFactory
public ArooaDescriptorFactory getDescriptorFactory()
setDescriptorFactory
public void setDescriptorFactory(ArooaDescriptorFactory descriptorFactory)
getOddjobPersister
public OddjobPersister getOddjobPersister()
setOddjobPersister
public void setOddjobPersister(OddjobPersister oddjobPersister)
getProperties
public Properties getProperties()
setProperties
public void setProperties(Properties properties)
isInherit
public OddjobInheritance isInherit()
setInherit
public void setInherit(OddjobInheritance inherit)