public interface AvaticaFactory
There is an implementation for each supported JDBC version.
| 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.
|
ResultSetMetaData |
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) |
int getJdbcMajorVersion()
int getJdbcMinorVersion()
AvaticaConnection newConnection(UnregisteredDriver driver, AvaticaFactory factory, String url, Properties info) throws SQLException
SQLExceptionAvaticaStatement newStatement(AvaticaConnection connection, @Nullable Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLExceptionAvaticaPreparedStatement newPreparedStatement(AvaticaConnection connection, @Nullable Meta.StatementHandle h, Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLExceptionAvaticaResultSet newResultSet(AvaticaStatement statement, Meta.Signature signature, TimeZone timeZone, Iterable<Object> iterable) throws SQLException
AvaticaResultSet.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.
statement - Statementsignature - Prepared statementtimeZone - Time zoneiterable - Iterable over rows in result, or null if an execute/fetch
is requiredSQLExceptionAvaticaDatabaseMetaData newDatabaseMetaData(AvaticaConnection connection)
ResultSetMetaData newResultSetMetaData(AvaticaStatement statement, Meta.Signature signature) throws SQLException
statement - Statementsignature - Prepared statementSQLExceptionCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.