net.sf.farrago.test
Class FarragoAutoCalcRulesTest.TestDbSessionFactory

java.lang.Object
  extended by net.sf.farrago.db.FarragoDbSessionFactory
      extended by 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.


Field Summary
private  CalcRexImplementorTable calcRexImplementor
           
private  OJRexImplementorTable ojRexImplementor
           
 
Constructor Summary
FarragoAutoCalcRulesTest.TestDbSessionFactory(OJRexImplementorTable ojRexImplementor, CalcRexImplementorTable calcRexImplementor)
           
 
Method Summary
 FarragoSession newSession(String url, Properties info)
          Creates a new session.
 FarragoSessionPersonality newSessionPersonality(FarragoSession session, FarragoSessionPersonality defaultPersonality)
          Creates a new session personality.
 
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
 

Field Detail

ojRexImplementor

private final OJRexImplementorTable ojRexImplementor

calcRexImplementor

private final CalcRexImplementorTable calcRexImplementor
Constructor Detail

FarragoAutoCalcRulesTest.TestDbSessionFactory

FarragoAutoCalcRulesTest.TestDbSessionFactory(OJRexImplementorTable ojRexImplementor,
                                              CalcRexImplementorTable calcRexImplementor)
Method Detail

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 retained
defaultPersonality - a default personality to which the new personality may delegate, or null if no default is available
Returns:
personality