public interface AvaticaFactory
There is an implementation for each supported JDBC version.
int getJdbcMajorVersion()
int getJdbcMinorVersion()
AvaticaConnection newConnection(UnregisteredDriver driver, AvaticaFactory factory, String url, Properties info) throws SQLException
SQLException
AvaticaStatement newStatement(AvaticaConnection connection, Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLException
AvaticaPreparedStatement newPreparedStatement(AvaticaConnection connection, Meta.StatementHandle h, Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLException
AvaticaResultSet newResultSet(AvaticaStatement statement, QueryState state, Meta.Signature signature, TimeZone timeZone, Meta.Frame firstFrame) throws SQLException
AvaticaResultSet.execute()
on it.statement
- 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 requiredSQLException
AvaticaSpecificDatabaseMetaData newDatabaseMetaData(AvaticaConnection connection)
ResultSetMetaData newResultSetMetaData(AvaticaStatement statement, Meta.Signature signature) throws SQLException
statement
- Statementsignature
- Prepared statementSQLException
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.