public class ApptrieveStatement
extends java.lang.Object
implements java.sql.Statement
Modifier and Type | Method and Description |
---|---|
void |
addBatch(java.lang.String sql)
The Host Integrator Driver does not support batch operations.
|
void |
cancel()
The Host Integrator Driver does not support canceling of a statement.
|
void |
clearBatch()
The Host Integrator Driver does not support batch operations.
|
void |
clearWarnings()
Clears all warnings for this statement
|
void |
close()
Immediately releases all resources for this Statement.
|
void |
closeOnCompletion() |
boolean |
execute(java.lang.String sql)
Executes an SQL statement.
|
boolean |
execute(java.lang.String sql,
int autoGeneratedKeys)
This method is not supported by the Host Integrator driver.
|
boolean |
execute(java.lang.String sql,
int[] columnIndexes)
This method is not supported by the Host Integrator driver.
|
boolean |
execute(java.lang.String sql,
java.lang.String[] columnNames)
This method is not supported by the Host Integrator driver.
|
int[] |
executeBatch()
The Host Integrator Driver does not support batch operations.
|
java.sql.ResultSet |
executeQuery(java.lang.String sql)
Executes a SQL SELECT query statement and return a ResultSet
|
int |
executeUpdate(java.lang.String sql)
Executes an SQL UPDATE statement
|
int |
executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
This method is not supported by the Host Integrator driver.
|
int |
executeUpdate(java.lang.String sql,
int[] columnIndexes)
This method is not supported by the Host Integrator driver.
|
int |
executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
This method is not supported by the Host Integrator driver.
|
java.sql.Connection |
getConnection()
Gets the Connection object that produced
this Statement object.
|
int |
getConnectionTimeout()
Gets the current connectionTimeout value
The connectionTimeout limit is the number of seconds the driver will
wait for a connection to complete.
|
int |
getFetchDirection()
Gets the fetch direction for
this Statement object.
|
int |
getFetchSize()
Gets the fetch size for
this Statement object.
|
java.sql.ResultSet |
getGeneratedKeys() |
int |
getMaxFieldSize()
Gets the maximum number of bytes that a ResultSet
column may contain
|
int |
getMaxRows()
Gets the maximum number of rows that a ResultSet
object can contain
|
boolean |
getMoreResults()
Fetches the next part of data from Host Integrator server.
|
boolean |
getMoreResults(int current)
Fetches the next part of data from Host Integrator server.
|
int |
getQueryTimeout()
Gets the current queryTimeout value
The queryTimeout limit is the number of seconds the driver will
wait for a Statement object to execute.
|
java.sql.ResultSet |
getResultSet()
Obtains the current result set from a Statement object.
|
int |
getResultSetConcurrency()
Obtains the concurrency mode for ResultSet
objects generated from queries that this Statement object
executes.
|
int |
getResultSetHoldability()
This method is not supported by the Host Integrator driver.
|
int |
getResultSetType()
Obtains the type of ResultSet
objects generated from queries that this Statement object
executes.
|
int |
getUpdateCount()
Gets the number of rows affected by the most recently
executed SQL statement.
|
java.sql.SQLWarning |
getWarnings()
Host Integrator JDBC driver does not support warnings.
|
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setConnectionTimeout(int seconds)
Sets the current connectionTimeout value
The connectionTimeout limit is the number of seconds the driver will
wait for a connection attempt to execute.
|
void |
setCursorName(java.lang.String name)
Host Integrator JDBC driver does not support cursors.
|
void |
setEscapeProcessing(boolean enable)
Host Integrator JDBC driver does not support escape processing.
|
void |
setFetchDirection(int direction)
Sets the fetch direction for
this Statement object.
|
void |
setFetchSize(int rows)
Sets the fetch size for
this Statement object.
|
void |
setMaxFieldSize(int max)
Sets the maximum length for a column in a ResultSet
|
void |
setMaxRows(int max)
Sets the maximum number of rows in a ResultSet
|
void |
setPoolable(boolean poolable) |
void |
setQueryTimeout(int seconds)
Sets the current queryTimeout value
The queryTimeout limit is the number of seconds the driver will
wait for a Statement to execute.
|
<T> T |
unwrap(java.lang.Class<T> iface) |
public void addBatch(java.lang.String sql) throws java.sql.SQLException
addBatch
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.addBatch(String)
public void cancel() throws java.sql.SQLException
cancel
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.cancel()
public void clearBatch() throws java.sql.SQLException
clearBatch
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.clearBatch()
public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.Statement
java.sql.SQLException
Statement.clearWarnings()
public void close() throws java.sql.SQLException
Note: A Statement is automatically closed when it is garbage collected. When a Statement is closed, its current ResultSet, if one exists, is also closed.
close
in interface java.lang.AutoCloseable
close
in interface java.sql.Statement
java.sql.SQLException
- if a database-access error occurs.Statement.close()
public boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
sql
- java.lang.String - the SQL to be executedjava.sql.SQLException
- raised for any errors encounteredStatement.execute(String)
public boolean execute(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.execute(String, int)
public boolean execute(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.execute(String, int[])
public boolean execute(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.execute(String, String[])
public int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.executeBatch()
public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
sql
- java.lang.String - the SQL query to be executedjava.sql.SQLException
- raised if an error occursStatement.executeQuery(String)
public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
sql
- java.lang.String - the SQL update statement to be executedjava.sql.SQLException
- raised if an error occursStatement.executeUpdate(String)
public int executeUpdate(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.executeUpdate(String, int)
public int executeUpdate(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.executeUpdate(String, int[])
public int executeUpdate(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.executeUpdate(String, String[])
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface java.sql.Statement
java.sql.SQLException
Statement.getConnection()
public int getFetchDirection() throws java.sql.SQLException
getFetchDirection
in interface java.sql.Statement
java.sql.SQLException
Statement.getFetchDirection()
public int getFetchSize() throws java.sql.SQLException
getFetchSize
in interface java.sql.Statement
java.sql.SQLException
Statement.getFetchSize()
public java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLException
getGeneratedKeys
in interface java.sql.Statement
java.sql.SQLException
public int getMaxFieldSize() throws java.sql.SQLException
getMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
Statement.getMaxFieldSize()
public int getMaxRows() throws java.sql.SQLException
getMaxRows
in interface java.sql.Statement
java.sql.SQLException
Statement.getMaxRows()
public boolean getMoreResults() throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
public boolean getMoreResults(int current) throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
public int getQueryTimeout() throws java.sql.SQLException
getQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
- if a database-access error occurs.public int getConnectionTimeout()
Note: java.sql.Connection.createStatement
returns
java.sql.Statement
.
You must cast it to
com.wrq.apptrieve.jdbc.ApptrieveStatement
to use this method.
public java.sql.ResultSet getResultSet() throws java.sql.SQLException
getResultSet
in interface java.sql.Statement
java.sql.SQLException
Statement.getResultSet()
public int getResultSetConcurrency() throws java.sql.SQLException
getResultSetConcurrency
in interface java.sql.Statement
java.sql.SQLException
Statement.getResultSet()
public int getResultSetHoldability() throws java.sql.SQLException
getResultSetHoldability
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.getResultSetHoldability()
public int getResultSetType() throws java.sql.SQLException
getResultSetType
in interface java.sql.Statement
java.sql.SQLException
Statement.getResultSet()
public int getUpdateCount() throws java.sql.SQLException
getUpdateCount
in interface java.sql.Statement
java.sql.SQLException
Statement.getUpdateCount()
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.getWarnings()
public void setCursorName(java.lang.String name) throws java.sql.SQLException
setCursorName
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.setCursorName(String)
public void setEscapeProcessing(boolean enable) throws java.sql.SQLException
setEscapeProcessing
in interface java.sql.Statement
java.sql.SQLException
- - always thrown.Statement.setEscapeProcessing(boolean)
public void setFetchDirection(int direction) throws java.sql.SQLException
setFetchDirection
in interface java.sql.Statement
java.sql.SQLException
Statement.getFetchDirection()
public void setFetchSize(int rows) throws java.sql.SQLException
setFetchSize
in interface java.sql.Statement
rows
- int - the maximum number of rows to fetchjava.sql.SQLException
Statement.getFetchSize()
public void setMaxFieldSize(int max) throws java.sql.SQLException
setMaxFieldSize
in interface java.sql.Statement
max
- int - the maximum size for a column in a ResultSetjava.sql.SQLException
Statement.setMaxFieldSize(int)
public void setMaxRows(int max) throws java.sql.SQLException
setMaxRows
in interface java.sql.Statement
max
- int - the maximum number of rows in a ResultSetjava.sql.SQLException
Statement.setMaxRows(int)
public void setQueryTimeout(int seconds) throws java.sql.SQLException
setQueryTimeout
in interface java.sql.Statement
seconds
- int - the new query timeout limit in seconds; zero means unlimitedjava.sql.SQLException
- if a database-access error occurs.public void setConnectionTimeout(int seconds)
Note: java.sql.Connection.createStatement
returns
java.sql.Statement
.
You must cast it to
com.wrq.apptrieve.jdbc.ApptrieveStatement
to use this method.
seconds
- int - the new query timeout limit in seconds;public boolean isClosed() throws java.sql.SQLException
isClosed
in interface java.sql.Statement
java.sql.SQLException
public void setPoolable(boolean poolable) throws java.sql.SQLException
setPoolable
in interface java.sql.Statement
java.sql.SQLException
public boolean isPoolable() throws java.sql.SQLException
isPoolable
in interface java.sql.Statement
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 boolean isCloseOnCompletion() throws java.sql.SQLException
isCloseOnCompletion
in interface java.sql.Statement
java.sql.SQLException
public void closeOnCompletion() throws java.sql.SQLException
closeOnCompletion
in interface java.sql.Statement
java.sql.SQLException