net.sf.farrago.test
Class FarragoAutoCalcRulesTest.TestDbSessionFactory
java.lang.Object
net.sf.farrago.db.FarragoDbSessionFactory
net.sf.farrago.test.FarragoAutoCalcRulesTest.TestDbSessionFactory
- All Implemented Interfaces:
- FarragoSessionFactory, FarragoSessionPersonalityFactory
- Enclosing class:
- FarragoAutoCalcRulesTest
private static class FarragoAutoCalcRulesTest.TestDbSessionFactory
- extends FarragoDbSessionFactory
TestDbSessionFactory extends FarragoDefaultSessionFactory and returns a
custom TestDbSession instance.
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 |
ojRexImplementor
private final OJRexImplementorTable ojRexImplementor
calcRexImplementor
private final CalcRexImplementorTable calcRexImplementor
FarragoAutoCalcRulesTest.TestDbSessionFactory
FarragoAutoCalcRulesTest.TestDbSessionFactory(OJRexImplementorTable ojRexImplementor,
CalcRexImplementorTable calcRexImplementor)
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