public class AvaticaJdbc40Factory extends Object
AvaticaFactory
for JDBC 4.0 (corresponds to JDK 1.6).| 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,
Meta.Signature signature,
TimeZone timeZone,
Iterable<Object> iterable)
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 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, Meta.Signature signature, TimeZone timeZone, Iterable<Object> iterable)
AvaticaFactoryAvaticaResultSet.execute() on it.
If signature implements
MetaImpl.WithIterable we do not need
to execute; we can use pre-canned data. This mechanism is used for
metadata requests such as getTables.
newResultSet in interface AvaticaFactorystatement - Statementsignature - Prepared statementtimeZone - Time zoneiterable - Iterable over rows in result, or null if an execute/fetch
is requiredpublic AvaticaResultSetMetaData newResultSetMetaData(AvaticaStatement statement, Meta.Signature signature)
AvaticaFactorynewResultSetMetaData in interface AvaticaFactorystatement - Statementsignature - Prepared statementCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.