|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.db.FarragoDbSessionFactory
public class FarragoDbSessionFactory
FarragoDbSessionFactory is a basic implementation for the FarragoSessionFactory
interface.
Field Summary | |
---|---|
private FarragoPluginClassLoader |
pluginClassLoader
|
Constructor Summary | |
---|---|
FarragoDbSessionFactory()
|
Method Summary | |
---|---|
void |
applyFennelExtensionParameters(Properties map)
Allows extensions of Farrago to add their own parameters to the Fennel configuration parameters. |
void |
cleanupSessions()
Gives this factory a chance to clean up after a session has been closed. |
void |
defineResourceBundles(List<ResourceBundle> bundleList)
Defines resource bundles to be used for localizing model object names. |
FarragoPluginClassLoader |
getPluginClassLoader()
|
FennelCmdExecutor |
newFennelCmdExecutor()
Creates a new intrepreter for Fennel commands. |
FennelTxnContext |
newFennelTxnContext(FarragoRepos repos,
FennelDbHandle fennelDbHandle)
Creates a new Fennel transaction context. |
FarragoSessionModelExtension |
newModelExtension(FarragoPluginClassLoader pcl,
FemJar femJar)
Loads a model extension plugin instance. |
FarragoSession |
newReentrantSession(FarragoSession session)
Creates a new reentrant session. |
FarragoRepos |
newRepos(FarragoAllocationOwner owner,
boolean userRepos)
Opens a new repositor instance. |
FarragoSession |
newSession(String url,
Properties info)
Creates a new session. |
FarragoSessionPersonality |
newSessionPersonality(FarragoSession session,
FarragoSessionPersonality defaultPersonality)
Creates a new session personality. |
FarragoSessionTxnMgr |
newTxnMgr()
|
void |
releaseReentrantSession(FarragoSession session)
Release a reentrant session. |
void |
setPluginClassLoader(FarragoPluginClassLoader pluginClassLoader)
Sets the class loader for plugins. |
void |
specializedInitialization(FarragoAllocationOwner owner)
Allows extensions of Farrago to perform their own initialization tasks. |
void |
specializedShutdown()
Allows extensions of Farrago to perform their own shutdown tasks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private FarragoPluginClassLoader pluginClassLoader
Constructor Detail |
---|
public FarragoDbSessionFactory()
Method Detail |
---|
public FarragoSession newSession(String url, Properties info)
FarragoSessionFactory
newSession
in interface FarragoSessionFactory
url
- (same as for JDBC connect)info
- (same as for JDBC connect)
public FarragoSession newReentrantSession(FarragoSession session)
FarragoSessionFactory
newReentrantSession
in interface FarragoSessionFactory
session
- the existing session on which to base the re-entrant
sessionpublic void releaseReentrantSession(FarragoSession session)
FarragoSessionFactory
releaseReentrantSession
in interface FarragoSessionFactory
public FarragoSessionPersonality newSessionPersonality(FarragoSession session, FarragoSessionPersonality defaultPersonality)
FarragoSessionPersonalityFactory
newSessionPersonality
in interface FarragoSessionPersonalityFactory
session
- session for which personality is being created; note that
the personality may be used for other sessions as well, so no reference
to this session should be retaineddefaultPersonality
- a default personality to which the new
personality may delegate, or null if no default is available
public void setPluginClassLoader(FarragoPluginClassLoader pluginClassLoader)
FarragoSessionFactory
setPluginClassLoader
in interface FarragoSessionFactory
pluginClassLoader
- classloader to usepublic FarragoPluginClassLoader getPluginClassLoader()
getPluginClassLoader
in interface FarragoSessionFactory
public FarragoSessionModelExtension newModelExtension(FarragoPluginClassLoader pcl, FemJar femJar)
FarragoSessionFactory
newModelExtension
in interface FarragoSessionFactory
pcl
- FarragoPluginClassLoader to use to load the
pluginfemJar
- catalog descriptor for jar from which plugin is loadedpublic FennelCmdExecutor newFennelCmdExecutor()
FarragoSessionFactory
newFennelCmdExecutor
in interface FarragoSessionFactory
public FarragoRepos newRepos(FarragoAllocationOwner owner, boolean userRepos)
FarragoSessionFactory
newRepos
in interface FarragoSessionFactory
owner
- the object which should own the new reposuserRepos
- true for user repos; false for system repos
public FennelTxnContext newFennelTxnContext(FarragoRepos repos, FennelDbHandle fennelDbHandle)
FarragoSessionFactory
newFennelTxnContext
in interface FarragoSessionFactory
repos
- repos for transaction metadata accessfennelDbHandle
- handle for database to access
public FarragoSessionTxnMgr newTxnMgr()
newTxnMgr
in interface FarragoSessionFactory
public void applyFennelExtensionParameters(Properties map)
FarragoSessionFactory
applyFennelExtensionParameters
in interface FarragoSessionFactory
map
- a non-null, modifiable Map where configuration parameters canpublic void specializedInitialization(FarragoAllocationOwner owner)
FarragoSessionFactory
specializedInitialization
in interface FarragoSessionFactory
owner
- the object that should own any allocated objectspublic void specializedShutdown()
FarragoSessionFactory
specializedShutdown
in interface FarragoSessionFactory
public void cleanupSessions()
FarragoSessionFactory
cleanupSessions
in interface FarragoSessionFactory
public void defineResourceBundles(List<ResourceBundle> bundleList)
FarragoSessionFactory
defineResourceBundles
in interface FarragoSessionFactory
bundleList
- receives instances of ResourceBundle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |