net.sf.farrago.defimpl
Class FarragoDefaultSessionFactory

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

Constructor Summary
FarragoDefaultSessionFactory()
           
 
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
 

Constructor Detail

FarragoDefaultSessionFactory

public FarragoDefaultSessionFactory()
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