|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.jdbc.FarragoAbstractJdbcDriver
public abstract class FarragoAbstractJdbcDriver
FarragoAbstractJdbcDriver is an abstract base for the client and engine sides of the Farrago JDBC driver.
| Constructor Summary | |
|---|---|
FarragoAbstractJdbcDriver()
|
|
| Method Summary | |
|---|---|
boolean |
acceptsURL(String url)
|
boolean |
acceptsUrlWithHostPort()
Indicates whether driver accepts URLs with host:port specification. |
Properties |
applyDefaultConnectionProps(Properties info)
Returns new Properties object with all input properties and default connection properties. |
private Properties |
copyProperties(Properties src,
Properties dest)
Returns destination Properties object after copying source properties into it. |
String |
getBaseUrl()
|
String |
getClientUrl()
|
Properties |
getDefaultConnectionProps()
Returns default connection properties. |
int |
getMajorVersion()
|
int |
getMinorVersion()
|
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info)
|
abstract String |
getUrlPrefix()
|
boolean |
jdbcCompliant()
|
String |
parseConnectionParams(String connectionURI,
Properties info)
Parses params from connection string into Properties object,
returning the stripped URI. |
void |
register()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.Driver |
|---|
connect |
| Constructor Detail |
|---|
public FarragoAbstractJdbcDriver()
| Method Detail |
|---|
public boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic abstract String getUrlPrefix()
public String getBaseUrl()
public String getClientUrl()
public int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driver
public DriverPropertyInfo[] getPropertyInfo(String url,
Properties info)
throws SQLException
getPropertyInfo in interface DriverSQLException
public boolean acceptsURL(String url)
throws SQLException
acceptsURL in interface DriverSQLExceptionpublic boolean acceptsUrlWithHostPort()
false by default. Subclassing drivers should
override and return true to enable FarragoTestCase to create URLs with
host:port specifications.
public void register()
public Properties applyDefaultConnectionProps(Properties info)
info - input properties, copied but unchanged
nullgetDefaultConnectionProps()public Properties getDefaultConnectionProps()
nullapplyDefaultConnectionProps(java.util.Properties)
private Properties copyProperties(Properties src,
Properties dest)
null. Note:
Properties object is treated like a Hashtable and all key-value pairs are
copied, regardless of whether the keys or values are Strings. Chained
Properties objects are OK, but there is no API for accessing non-String
values from chained Properties object. So only String values can be
copied from chained Properties.
src - source properties, must not be nulldest - destination properties, may be null
public String parseConnectionParams(String connectionURI,
Properties info)
throws SQLException
Properties object,
returning the stripped URI.
connectionURI - connection string with optional paramsinfo - Properties object; pass null to just get the
stripped URI
info if not null.
SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||