net.sf.farrago.jdbc.engine
Class FarragoUnregisteredJdbcEngineDriver
java.lang.Object
net.sf.farrago.jdbc.FarragoAbstractJdbcDriver
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
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 |
tracer
private static final Logger tracer
FarragoUnregisteredJdbcEngineDriver
public FarragoUnregisteredJdbcEngineDriver()
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