public class ApptrieveConnection
extends java.lang.Object
implements java.sql.Connection
Modifier and Type | Method and Description |
---|---|
void |
abort(java.util.concurrent.Executor executor) |
void |
clearWarnings()
Clears warnings for this connection
|
void |
close()
Closes the database connection.
|
void |
commit()
The Host Integrator JDBC Driver does not support commit.
|
java.sql.Array |
createArrayOf(java.lang.String typeName,
java.lang.Object[] elements) |
java.sql.Blob |
createBlob() |
java.sql.Clob |
createClob() |
java.sql.NClob |
createNClob() |
java.sql.SQLXML |
createSQLXML() |
java.sql.Statement |
createStatement()
Creates an ApptrieveStatement object for this connection.
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
This method is not supported by the Host Integrator driver.
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
This method is not supported by the Host Integrator driver.
|
java.sql.Struct |
createStruct(java.lang.String typeName,
java.lang.Object[] attributes) |
protected void |
finalize()
Performs final cleanup for this object
|
boolean |
getAutoCommit()
Determines the auto-commit state of the connection.
|
java.lang.String |
getCatalog()
The Host Integrator Driver does not support catalogs.
|
java.util.Properties |
getClientInfo() |
java.lang.String |
getClientInfo(java.lang.String name) |
int |
getHoldability()
This method is not supported by the Host Integrator driver.
|
java.sql.DatabaseMetaData |
getMetaData()
Gets the database metadata object for this connection
|
int |
getNetworkTimeout() |
java.lang.String |
getSchema() |
int |
getTransactionIsolation()
Retrieves the transaction isolation level for the connection.
|
java.util.Map |
getTypeMap()
This method is not supported by the Host Integrator driver.
|
java.sql.SQLWarning |
getWarnings()
The Host Integrator Driver does not support Warnings.
|
boolean |
isClosed()
Lets others know the connection status.
|
boolean |
isReadOnly()
This method is not supported by the Host Integrator driver.
|
boolean |
isValid(int timeout) |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
java.lang.String |
nativeSQL(java.lang.String sql)
Converts an SQL query into DBMS native format.
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
Creates a stored procedure call.
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
This method is not supported by the Host Integrator driver.
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
This method is not supported by the Host Integrator driver.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
Returns an SQL pre-compiled statement.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGeneratedKeys)
This method is not supported by the Host Integrator driver.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int[] columnIndexes)
This method is not supported by the Host Integrator driver.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
This method is not supported by the Host Integrator driver.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
This method is not supported by the Host Integrator driver.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
java.lang.String[] columnNames)
This method is not supported by the Host Integrator driver.
|
void |
releaseSavepoint(java.sql.Savepoint savepoint)
This method is not supported by the Host Integrator driver.
|
void |
rollback()
The Host Integrator JDBC Driver does not support transaction rollback.
|
void |
rollback(java.sql.Savepoint savepoint)
The Host Integrator JDBC Driver does not support transaction rollback.
|
void |
setAutoCommit(boolean autoCommit)
The Host Integrator JDBC Driver does not support commit.
|
void |
setCatalog(java.lang.String newcatalog)
The Host Integrator JDBC Driver does not support catalogs.
|
void |
setClientInfo(java.util.Properties properties) |
void |
setClientInfo(java.lang.String name,
java.lang.String value) |
void |
setHoldability(int holdability)
This method is not supported by the Host Integrator driver.
|
void |
setNetworkTimeout(java.util.concurrent.Executor executor,
int milliseconds) |
void |
setReadOnly(boolean readOnly)
The Host Integrator JDBC Driver does not support readOnly parameter.
|
java.sql.Savepoint |
setSavepoint()
This method is not supported by the Host Integrator driver.
|
java.sql.Savepoint |
setSavepoint(java.lang.String name)
This method is not supported by the Host Integrator driver.
|
void |
setSchema(java.lang.String schema) |
void |
setTransactionIsolation(int level)
This has no meaning to Host Integrator Driver, which is always TRANSACTION_NONE.
|
void |
setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
This method is not supported by the Host Integrator driver.
|
<T> T |
unwrap(java.lang.Class<T> iface) |
public void clearWarnings()
clearWarnings
in interface java.sql.Connection
Connection.clearWarnings()
public void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
close
in interface java.sql.Connection
java.sql.SQLException
- thrown in the event of any errors.Connection.close()
public void commit() throws java.sql.SQLException
commit
in interface java.sql.Connection
java.sql.SQLException
Connection.commit()
public java.sql.Statement createStatement() throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
Connection.createStatement()
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
- - always thrown.Connection.createStatement(int, int)
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
- - always thrown.Connection.createStatement(int, int, int)
public boolean getAutoCommit() throws java.sql.SQLException
getAutoCommit
in interface java.sql.Connection
java.sql.SQLException
Connection.getAutoCommit()
public java.lang.String getCatalog() throws java.sql.SQLException
getCatalog
in interface java.sql.Connection
java.sql.SQLException
Connection.getCatalog()
public int getHoldability() throws java.sql.SQLException
getHoldability
in interface java.sql.Connection
java.sql.SQLException
- - always thrown.Connection.getHoldability()
public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.Connection
java.sql.SQLException
Connection.getMetaData()
public int getTransactionIsolation() throws java.sql.SQLException
getTransactionIsolation
in interface java.sql.Connection
java.sql.SQLException
Connection.getTransactionIsolation()
public java.util.Map getTypeMap() throws java.sql.SQLException
getTypeMap
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.getTypeMap()
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.Connection
java.sql.SQLException
- - always thrown.Connection.getWarnings()
public boolean isClosed() throws java.sql.SQLException
isClosed
in interface java.sql.Connection
java.sql.SQLException
Connection.isClosed()
public boolean isReadOnly() throws java.sql.SQLException
isReadOnly
in interface java.sql.Connection
java.sql.SQLException
- - always thrown.Connection.isReadOnly()
public java.lang.String nativeSQL(java.lang.String sql) throws java.sql.SQLException
nativeSQL
in interface java.sql.Connection
sql
- java.lang.String - the query which just returned to the callerjava.sql.SQLException
Connection.nativeSQL(java.lang.String)
public java.sql.CallableStatement prepareCall(java.lang.String sql) throws java.sql.SQLException
The call escape for this method is:
{call procedureName(?, ?, ?, ?, ?, ?)}
Where procedureName is a procedure defined in an Host Integrator table. The
call parameters are defined as follows, in order that they appear in the call escape:
prepareCall
in interface java.sql.Connection
sql
- java.lang.String - the sql to use in creating a stored procedure calljava.sql.SQLException
Connection.prepareCall(java.lang.String)
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
- - always thrown.Connection.prepareCall(String, int, int)
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
- - always thrown.Connection.prepareCall(String, int, int, int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
sql
- java.lang.String - the query to use in creating the pre-compiled statementjava.sql.SQLException
- gets thrown any time this is calledConnection.prepareStatement(java.lang.String)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.prepareStatement(String, int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.prepareStatement(String, int[])
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.prepareStatement(String, int, int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.prepareStatement(String, int, int, int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.prepareStatement(String, String[])
public void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql.SQLException
releaseSavepoint
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.releaseSavepoint(Savepoint)
public void rollback() throws java.sql.SQLException
rollback
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.rollback()
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
rollback
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.rollback(Savepoint)
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException
setAutoCommit
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.setAutoCommit(boolean)
public void setCatalog(java.lang.String newcatalog) throws java.sql.SQLException
setCatalog
in interface java.sql.Connection
newcatalog
- java.lang.String - the new catalog to setjava.sql.SQLException
Connection.setCatalog(java.lang.String)
public void setHoldability(int holdability) throws java.sql.SQLException
setHoldability
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.setHoldability(int)
public void setReadOnly(boolean readOnly) throws java.sql.SQLException
setReadOnly
in interface java.sql.Connection
java.sql.SQLException
- - always thrown.Connection.setReadOnly(boolean)
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.setSavepoint()
public java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.setSavepoint(String)
public void setTransactionIsolation(int level) throws java.sql.SQLException
setTransactionIsolation
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.setTransactionIsolation(int)
public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
setTypeMap
in interface java.sql.Connection
java.sql.SQLException
- - always thrownConnection.setTypeMap(Map)
public java.sql.Clob createClob() throws java.sql.SQLException
createClob
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Blob createBlob() throws java.sql.SQLException
createBlob
in interface java.sql.Connection
java.sql.SQLException
public java.sql.NClob createNClob() throws java.sql.SQLException
createNClob
in interface java.sql.Connection
java.sql.SQLException
public java.sql.SQLXML createSQLXML() throws java.sql.SQLException
createSQLXML
in interface java.sql.Connection
java.sql.SQLException
public boolean isValid(int timeout) throws java.sql.SQLException
isValid
in interface java.sql.Connection
java.sql.SQLException
public void setClientInfo(java.lang.String name, java.lang.String value) throws java.sql.SQLClientInfoException
setClientInfo
in interface java.sql.Connection
java.sql.SQLClientInfoException
public void setClientInfo(java.util.Properties properties) throws java.sql.SQLClientInfoException
setClientInfo
in interface java.sql.Connection
java.sql.SQLClientInfoException
public java.lang.String getClientInfo(java.lang.String name) throws java.sql.SQLException
getClientInfo
in interface java.sql.Connection
java.sql.SQLException
public java.util.Properties getClientInfo() throws java.sql.SQLException
getClientInfo
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Array createArrayOf(java.lang.String typeName, java.lang.Object[] elements) throws java.sql.SQLException
createArrayOf
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Struct createStruct(java.lang.String typeName, java.lang.Object[] attributes) throws java.sql.SQLException
createStruct
in interface java.sql.Connection
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public int getNetworkTimeout() throws java.sql.SQLException
getNetworkTimeout
in interface java.sql.Connection
java.sql.SQLException
public void setNetworkTimeout(java.util.concurrent.Executor executor, int milliseconds) throws java.sql.SQLException
setNetworkTimeout
in interface java.sql.Connection
java.sql.SQLException
public void abort(java.util.concurrent.Executor executor) throws java.sql.SQLException
abort
in interface java.sql.Connection
java.sql.SQLException
public java.lang.String getSchema() throws java.sql.SQLException
getSchema
in interface java.sql.Connection
java.sql.SQLException
public void setSchema(java.lang.String schema) throws java.sql.SQLException
setSchema
in interface java.sql.Connection
java.sql.SQLException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable