net.sf.farrago.jdbc.engine
Class FarragoUnregisteredJdbcEngineDriver

java.lang.Object
  extended by net.sf.farrago.jdbc.FarragoAbstractJdbcDriver
      extended by net.sf.farrago.jdbc.engine.FarragoUnregisteredJdbcEngineDriver
All Implemented Interfaces:
Driver, FarragoJdbcServerDriver
Direct Known Subclasses:
FarragoJdbcEngineDriver, LucidDbLocalDriver

public abstract class FarragoUnregisteredJdbcEngineDriver
extends FarragoAbstractJdbcDriver
implements FarragoJdbcServerDriver

FarragoJdbcEngineDriver implements the Farrago engine/server side of the Driver interface. It does not register itself; for that, use FarragoJdbcEngineDriver.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/jdbc/engine/FarragoUnregisteredJdbcEngineDriver.java#7 $
Author:
John V. Sichi

Field Summary
private static Logger tracer
           
 
Constructor Summary
FarragoUnregisteredJdbcEngineDriver()
           
 
Method Summary
 Connection connect(String url, Properties info)
           
 String getUrlPrefix()
           
 FarragoSessionFactory newSessionFactory()
          Creates a new FarragoSessionFactory which will govern the behavior of connections established through this driver.
(package private) static SQLException newSqlException(String message)
          Creates a new SQLException from the message.
(package private) static SQLException newSqlException(Throwable ex)
          Converter from any Throwable to SQLException.
 
Methods inherited from class net.sf.farrago.jdbc.FarragoAbstractJdbcDriver
acceptsURL, acceptsUrlWithHostPort, applyDefaultConnectionProps, getBaseUrl, getClientUrl, getDefaultConnectionProps, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant, parseConnectionParams, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.farrago.jdbc.engine.FarragoJdbcServerDriver
getBaseUrl
 
Methods inherited from interface java.sql.Driver
acceptsURL, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant
 

Field Detail

tracer

private static final Logger tracer
Constructor Detail

FarragoUnregisteredJdbcEngineDriver

public FarragoUnregisteredJdbcEngineDriver()
Method Detail

getUrlPrefix

public String getUrlPrefix()
Specified by:
getUrlPrefix in class FarragoAbstractJdbcDriver
Returns:
the prefix for JDBC URL's understood by this driver

connect

public Connection connect(String url,
                          Properties info)
                   throws SQLException
Specified by:
connect in interface Driver
Throws:
SQLException

newSessionFactory

public FarragoSessionFactory newSessionFactory()
Description copied from interface: FarragoJdbcServerDriver
Creates a new FarragoSessionFactory which will govern the behavior of connections established through this driver.

Specified by:
newSessionFactory in interface FarragoJdbcServerDriver
Returns:
new factory

newSqlException

static SQLException newSqlException(Throwable ex)
Converter from any Throwable to SQLException.

Parameters:
ex - Throwable to be converted
Returns:
ex as a SQLException

newSqlException

static SQLException newSqlException(String message)
Creates a new SQLException from the message.

Parameters:
message - detail message, the reason for this exception
Returns:
message as a SQLException