| java.lang.Object org.apache.derby.jdbc.InternalDriver
All known Subclasses: org.apache.derby.jdbc.Driver169, org.apache.derby.jdbc.Driver20,
InternalDriver | abstract public class InternalDriver implements ModuleControl(Code) | | Abstract factory class and api for JDBC objects.
author: djd |
Field Summary | |
protected boolean | active |
Method Summary | |
public boolean | acceptsURL(String url) | final public static InternalDriver | activeDriver() | public void | boot(boolean create, Properties properties) | public Connection | connect(String url, Properties info) | public static boolean | embeddedDriverAcceptsURL(String url) | protected FormatableProperties | getAttributes(String url, Properties info) Convert all the attributes in the url into properties and
combine them with the set provided. | public AuthenticationService | getAuthenticationService() | final public ContextService | getContextServiceFactory() | public static String | getDatabaseName(String url, Properties info) Get the database name from the url. | public int | getMajorVersion() | public int | getMinorVersion() | abstract protected EmbedConnection | getNewEmbedConnection(String url, Properties info) | abstract public Connection | getNewNestedConnection(EmbedConnection conn) Get a new nested connection.
Parameters: conn - The EmbedConnection. | public boolean | isActive() Return true if this driver is active. | public boolean | jdbcCompliant() | abstract public java.sql.CallableStatement | newEmbedCallableStatement(EmbedConnection conn, String stmt, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public DatabaseMetaData | newEmbedDatabaseMetaData(EmbedConnection conn, String dbname) Return a new java.sql.DatabaseMetaData instance for this implementation. | abstract public java.sql.PreparedStatement | newEmbedPreparedStatement(EmbedConnection conn, String stmt, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, int[] columnIndexes, String[] columnNames) | abstract public EmbedResultSet | newEmbedResultSet(EmbedConnection conn, ResultSet results, boolean forMetaData, EmbedStatement statement, boolean isAtomic) Return a new java.sql.ResultSet instance for this implementation. | public EmbedResultSetMetaData | newEmbedResultSetMetaData(ResultColumnDescriptor[] columnInfo) | public java.sql.Statement | newEmbedStatement(EmbedConnection conn, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public void | stop() |
active | protected boolean active(Code) | | |
InternalDriver | public InternalDriver()(Code) | | |
embeddedDriverAcceptsURL | public static boolean embeddedDriverAcceptsURL(String url)(Code) | | |
getAttributes | protected FormatableProperties getAttributes(String url, Properties info) throws SQLException(Code) | | Convert all the attributes in the url into properties and
combine them with the set provided.
If the caller passed in a set of attributes (info != null)
then we set that up as the default of the returned property
set as the user's set. This means we can easily break the link
with the user's set, ensuring that we don't hang onto the users object.
It also means that we don't add our attributes into the user's
own property object.
exception: SQLException - thrown if URL form bad |
getDatabaseName | public static String getDatabaseName(String url, Properties info)(Code) | | Get the database name from the url.
Copes with three forms
jdbc:derby:dbname
jdbc:derby:dbname;...
jdbc:derby:;subname=dbname
Parameters: url - The url being used for the connection Parameters: info - The properties set being used for the connection, must includethe properties derived from the attributes in the url a String containing the database name or an empty string ("") ifno database name is present in the URL. |
getMajorVersion | public int getMajorVersion()(Code) | | |
getMinorVersion | public int getMinorVersion()(Code) | | |
getNewNestedConnection | abstract public Connection getNewNestedConnection(EmbedConnection conn)(Code) | | Get a new nested connection.
Parameters: conn - The EmbedConnection. A nested connection object. |
isActive | public boolean isActive()(Code) | | Return true if this driver is active. Package private method.
|
jdbcCompliant | public boolean jdbcCompliant()(Code) | | |
newEmbedResultSet | abstract public EmbedResultSet newEmbedResultSet(EmbedConnection conn, ResultSet results, boolean forMetaData, EmbedStatement statement, boolean isAtomic) throws SQLException(Code) | | Return a new java.sql.ResultSet instance for this implementation.
Parameters: conn - Owning connection Parameters: results - Top level of language result set tree Parameters: forMetaData - Is this for meta-data Parameters: statement - The statement that is creating the SQL ResultSet Parameters: isAtomic - a new java.sql.ResultSet throws: SQLException - |
newEmbedResultSetMetaData | public EmbedResultSetMetaData newEmbedResultSetMetaData(ResultColumnDescriptor[] columnInfo)(Code) | | Returns a new java.sql.ResultSetMetaData for this implementation
Parameters: columnInfo - a ResultColumnDescriptor that stores information about the columns in a ResultSet |
|
|