class AvaticaJdbc41Factory extends Object implements AvaticaFactory
AvaticaFactory for JDBC 4.1 (corresponds to JDK
1.7).| Modifier and Type | Class and Description |
|---|---|
private static class |
AvaticaJdbc41Factory.AvaticaJdbc41Connection
Implementation of Connection for JDBC 4.1.
|
private static class |
AvaticaJdbc41Factory.AvaticaJdbc41DatabaseMetaData
Implementation of DatabaseMetaData for JDBC 4.1.
|
private static class |
AvaticaJdbc41Factory.AvaticaJdbc41PreparedStatement
Implementation of PreparedStatement for JDBC 4.1.
|
private static class |
AvaticaJdbc41Factory.AvaticaJdbc41Statement
Implementation of Statement for JDBC 4.1.
|
| Modifier | Constructor and Description |
|---|---|
|
AvaticaJdbc41Factory()
Creates a JDBC factory.
|
protected |
AvaticaJdbc41Factory(int major,
int minor)
Creates a JDBC factory with given major/minor version number.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getJdbcMajorVersion() |
int |
getJdbcMinorVersion() |
AvaticaConnection |
newConnection(UnregisteredDriver driver,
AvaticaFactory factory,
String url,
Properties info) |
AvaticaDatabaseMetaData |
newDatabaseMetaData(AvaticaConnection connection)
Creates meta data for the database.
|
AvaticaPreparedStatement |
newPreparedStatement(AvaticaConnection connection,
Meta.StatementHandle h,
Meta.Signature signature,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
AvaticaResultSet |
newResultSet(AvaticaStatement statement,
QueryState state,
Meta.Signature signature,
TimeZone timeZone,
Meta.Frame firstFrame)
Creates a result set.
|
AvaticaResultSetMetaData |
newResultSetMetaData(AvaticaStatement statement,
Meta.Signature signature)
Creates meta data for a result set.
|
AvaticaStatement |
newStatement(AvaticaConnection connection,
Meta.StatementHandle h,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
public AvaticaJdbc41Factory()
protected AvaticaJdbc41Factory(int major,
int minor)
public int getJdbcMajorVersion()
getJdbcMajorVersion in interface AvaticaFactorypublic int getJdbcMinorVersion()
getJdbcMinorVersion in interface AvaticaFactorypublic AvaticaConnection newConnection(UnregisteredDriver driver, AvaticaFactory factory, String url, Properties info)
newConnection in interface AvaticaFactorypublic AvaticaDatabaseMetaData newDatabaseMetaData(AvaticaConnection connection)
AvaticaFactorynewDatabaseMetaData in interface AvaticaFactorypublic AvaticaStatement newStatement(AvaticaConnection connection, Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
newStatement in interface AvaticaFactorypublic AvaticaPreparedStatement newPreparedStatement(AvaticaConnection connection, Meta.StatementHandle h, Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
newPreparedStatement in interface AvaticaFactorySQLExceptionpublic AvaticaResultSet newResultSet(AvaticaStatement statement, QueryState state, Meta.Signature signature, TimeZone timeZone, Meta.Frame firstFrame)
AvaticaFactoryAvaticaResultSet.execute() on it.newResultSet in interface AvaticaFactorystatement - Statementstate - The state used to create this result setsignature - Prepared statementtimeZone - Time zonefirstFrame - Frame containing the first (or perhaps only) rows in the
result, or null if an execute/fetch is requiredpublic AvaticaResultSetMetaData newResultSetMetaData(AvaticaStatement statement, Meta.Signature signature)
AvaticaFactorynewResultSetMetaData in interface AvaticaFactorystatement - Statementsignature - Prepared statementCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.