| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static SQLException | |
| private static ClientJDBCObjectFactory | |
| private static ClientAutoloadedDriver | |
| private transient int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | acceptsURL(String
the URL of the database url)Implements java. |
| private String | Returns: databaseName + attributes (e.g. mydb;create=true)- Short database name database, Properties - Set of properties to append as attributes augmentedProperties)Append attributes to the database name except for user/password which are sent as part of the protocol, and SSL which is used locally in the client. |
| private void | |
| public Connection | connect(String
the URL of the database to which to connect url, Properties a list of arbitrary string tag/value pairs as
connection arguments. Normally at least a "user" and
"password" property should be included. properties)Implements java. |
| private static ClientJDBCObjectFactory | |
| private static ClientJDBCObjectFactory | createJDBC40FactoryImpl()
Returns an instance of the ClientJDBCObjectFactoryImpl40 class If a ClassNotFoundException occurs then it returns an instance of ClientJDBCObjectFactoryImpl If a future version of JDBC comes then a similar method would be added say createJDBCXXFactoryImpl in which if the class is not found then it would return the lower version thus having a sort of cascading effect until it gets a valid instance |
| private static ClientJDBCObjectFactory | createJDBC42FactoryImpl()
Returns an instance of the ClientJDBCObjectFactoryImpl42 class If a ClassNotFoundException occurs then it returns an instance of the most refined ClientJDBCObjectFactoryImpl possible If a future version of JDBC comes then a similar method would be added say createJDBCXXFactoryImpl in which if the class is not found then it would return the lower version thus having a sort of cascading effect until it gets a valid instance |
| public static ClientJDBCObjectFactory | Returns: the client-side object factoryThis method returns an Implementation of ClientJDBCObjectFactory depending on VM under use Currently it returns either ClientJDBCObjectFactoryImpl (or) ClientJDBCObjectFactoryImpl42 |
| public int | getMajorVersion()
Implements java. |
| public int | getMinorVersion()
Implements java. |
| public Logger | getParentLogger()
Implements java. |
| public DriverPropertyInfo[] | getPropertyInfo(String
the URL of the database to which to connect url, Properties a proposed list of tag/value pairs that will be sent on
connect open properties)Implements java. |
| public boolean | jdbcCompliant()
Implements java. |
| protected static void | |
| private static String | |
| private static int | |
| private static int | |
| private static String | |
| private static Properties |
| DERBY_REMOTE_PROTOCOL | back to summary |
|---|---|
| private static final int DERBY_REMOTE_PROTOCOL | |
| exceptionsOnLoadDriver__ | back to summary |
|---|---|
| private static SQLException exceptionsOnLoadDriver__ | |
| factoryObject | back to summary |
|---|---|
| private static ClientJDBCObjectFactory factoryObject | |
| registeredDriver__ | back to summary |
|---|---|
| private static ClientAutoloadedDriver registeredDriver__ | |
| traceFileSuffixIndex_ | back to summary |
|---|---|
| private transient int traceFileSuffixIndex_ | |
| ClientAutoloadedDriver | back to summary |
|---|---|
| public ClientAutoloadedDriver() | |
| acceptsURL | back to summary |
|---|---|
| public boolean acceptsURL(String url) throws SQLException Implements java. Doc from java. Retrieves whether the driver thinks that it can open a connection
to the given URL. Typically drivers will return
| |
| appendDatabaseAttributes | back to summary |
|---|---|
| private String appendDatabaseAttributes(String database, Properties augmentedProperties) Append attributes to the database name except for user/password which are sent as part of the protocol, and SSL which is used locally in the client. Other attributes will be sent to the server with the database name Assumes augmentedProperties is not null
| |
| checkURLNotNull | back to summary |
|---|---|
| private void checkURLNotNull(String url) throws SQLException | |
| connect | back to summary |
|---|---|
| public Connection connect(String url, Properties properties) throws SQLException Implements java. Doc from java. Attempts to make a database connection to the given URL. The driver should return "null" if it realizes it is the wrong kind of driver to connect to the given URL. This will be common, as when the JDBC driver manager is asked to connect to a given URL it passes the URL to each loaded driver in turn. The driver should throw an The Note If a property is specified as part of the
| |
| createDefaultFactoryImpl | back to summary |
|---|---|
| private static ClientJDBCObjectFactory createDefaultFactoryImpl() Returns an instance of the ClientJDBCObjectFactoryImpl class | |
| createJDBC40FactoryImpl | back to summary |
|---|---|
| private static ClientJDBCObjectFactory createJDBC40FactoryImpl() Returns an instance of the ClientJDBCObjectFactoryImpl40 class If a ClassNotFoundException occurs then it returns an instance of ClientJDBCObjectFactoryImpl If a future version of JDBC comes then a similar method would be added say createJDBCXXFactoryImpl in which if the class is not found then it would return the lower version thus having a sort of cascading effect until it gets a valid instance | |
| createJDBC42FactoryImpl | back to summary |
|---|---|
| private static ClientJDBCObjectFactory createJDBC42FactoryImpl() Returns an instance of the ClientJDBCObjectFactoryImpl42 class If a ClassNotFoundException occurs then it returns an instance of the most refined ClientJDBCObjectFactoryImpl possible If a future version of JDBC comes then a similar method would be added say createJDBCXXFactoryImpl in which if the class is not found then it would return the lower version thus having a sort of cascading effect until it gets a valid instance | |
| getFactory | back to summary |
|---|---|
| public static ClientJDBCObjectFactory getFactory() This method returns an Implementation of ClientJDBCObjectFactory depending on VM under use Currently it returns either ClientJDBCObjectFactoryImpl (or) ClientJDBCObjectFactoryImpl42
| |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() Implements java. Doc from java. Retrieves the driver's major version number. Initially this should be 1.
| |
| getMinorVersion | back to summary |
|---|---|
| public int getMinorVersion() Implements java. Doc from java. Gets the driver's minor version number. Initially this should be 0.
| |
| getParentLogger | back to summary |
|---|---|
| public Logger getParentLogger() throws SQLFeatureNotSupportedException Implements java. Doc from java. Return the parent Logger of all the Loggers used by this driver. This should be the Logger farthest from the root Logger that is still an ancestor of all of the Loggers used by this driver. Configuring this Logger will affect all of the log messages generated by the driver. In the worst case, this may be the root Logger.
| |
| getPropertyInfo | back to summary |
|---|---|
| public DriverPropertyInfo[] getPropertyInfo(String url, Properties properties) throws SQLException Implements java. Doc from java. Gets information about the possible properties for this driver.
The
| |
| jdbcCompliant | back to summary |
|---|---|
| public boolean jdbcCompliant() Implements java. Doc from java. Reports whether this driver is a genuine JDBC
Compliant driver.
A driver may only report JDBC compliance requires full support for the JDBC API and full support for SQL 92 Entry Level. It is expected that JDBC compliant drivers will be available for all the major commercial databases. This method is not intended to encourage the development of non-JDBC compliant drivers, but is a recognition of the fact that some vendors are interested in using the JDBC API and framework for lightweight databases that do not support full database functionality, or for special databases such as document information retrieval where a SQL implementation may not be feasible.
| |
| registerMe | back to summary |
|---|---|
| protected static void registerMe(ClientAutoloadedDriver me) | |
| tokenizeDatabase | back to summary |
|---|---|
| private static String tokenizeDatabase(StringTokenizer urlTokenizer, String url) throws SqlException | |
| tokenizeOptionalPortNumber | back to summary |
|---|---|
| private static int tokenizeOptionalPortNumber(StringTokenizer urlTokenizer, String url) throws SqlException | |
| tokenizeProtocol | back to summary |
|---|---|
| private static int tokenizeProtocol(String url, StringTokenizer urlTokenizer) throws SqlException | |
| tokenizeServerName | back to summary |
|---|---|
| private static String tokenizeServerName(StringTokenizer urlTokenizer, String url) throws SqlException | |
| tokenizeURLProperties | back to summary |
|---|---|
| private static Properties tokenizeURLProperties(String url, Properties properties) throws SqlException | |