net.sf.farrago.jdbc.engine
Class FarragoJdbcRoutineDriver
java.lang.Object
net.sf.farrago.jdbc.FarragoAbstractJdbcDriver
net.sf.farrago.jdbc.engine.FarragoJdbcRoutineDriver
- All Implemented Interfaces:
- Driver
public class FarragoJdbcRoutineDriver
- extends FarragoAbstractJdbcDriver
- implements Driver
FarragoJdbcRoutineDriver implements the JDBC driver used for default
connections from user-defined routines.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/jdbc/engine/FarragoJdbcRoutineDriver.java#10 $
- Author:
- John V. Sichi
Methods inherited from class net.sf.farrago.jdbc.FarragoAbstractJdbcDriver |
acceptsURL, acceptsUrlWithHostPort, applyDefaultConnectionProps, 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 |
FarragoJdbcRoutineDriver
public FarragoJdbcRoutineDriver()
- Creates a new FarragoJdbcRoutineDriver object.
getBaseUrl
public String getBaseUrl()
- Overrides:
getBaseUrl
in class FarragoAbstractJdbcDriver
- Returns:
- the base JDBC URL for this driver; subclassing drivers can
override this to customize the URL scheme
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
getSessionForConnection
public static FarragoSession getSessionForConnection(Connection conn)
throws SQLException
- Converts a connection returned via URL "jdbc:default:connection" to a
FarragoSession. This can be used by user-defined routines to gain
internal access to Farrago. Use with caution.
- Parameters:
conn
- connection
- Returns:
- session
- Throws:
SQLException