net.sf.farrago.defimpl
Class FarragoDefaultSessionFactory
java.lang.Object
net.sf.farrago.db.FarragoDbSessionFactory
net.sf.farrago.defimpl.FarragoDefaultSessionFactory
- All Implemented Interfaces:
- FarragoSessionFactory, FarragoSessionPersonalityFactory
- Direct Known Subclasses:
- LucidDbSessionFactory
public class FarragoDefaultSessionFactory
- extends FarragoDbSessionFactory
FarragoDefaultSessionFactory provides a default implementation for the FarragoSessionFactory
interface.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/defimpl/FarragoDefaultSessionFactory.java#10 $
- Author:
- John V. Sichi
Methods inherited from class net.sf.farrago.db.FarragoDbSessionFactory |
applyFennelExtensionParameters, cleanupSessions, defineResourceBundles, getPluginClassLoader, newFennelCmdExecutor, newFennelTxnContext, newModelExtension, newReentrantSession, newRepos, newTxnMgr, releaseReentrantSession, setPluginClassLoader, specializedInitialization, specializedShutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FarragoDefaultSessionFactory
public FarragoDefaultSessionFactory()
newSession
public FarragoSession newSession(String url,
Properties info)
- Description copied from interface:
FarragoSessionFactory
- Creates a new session.
- Specified by:
newSession
in interface FarragoSessionFactory
- Overrides:
newSession
in class FarragoDbSessionFactory
- Parameters:
url
- (same as for JDBC connect)info
- (same as for JDBC connect)
- Returns:
- new session
newSessionPersonality
public FarragoSessionPersonality newSessionPersonality(FarragoSession session,
FarragoSessionPersonality defaultPersonality)
- Description copied from interface:
FarragoSessionPersonalityFactory
- Creates a new session personality.
- Specified by:
newSessionPersonality
in interface FarragoSessionPersonalityFactory
- Overrides:
newSessionPersonality
in class FarragoDbSessionFactory
- Parameters:
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
- Returns:
- personality