public class StatementProxy
extends java.lang.Object
implements java.sql.Statement
| Modifier and Type | Field and Description |
|---|---|
private ConnectionProxy |
_connection |
private JtdsStatement |
_statement |
| Constructor and Description |
|---|
StatementProxy(ConnectionProxy connection,
JtdsStatement statement) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(java.lang.String sql)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
cancel()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
clearBatch()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
clearWarnings()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
close()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
closeOnCompletion() |
boolean |
execute(java.lang.String sql)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
boolean |
execute(java.lang.String sql,
int autoGeneratedKeys)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
boolean |
execute(java.lang.String sql,
int[] columnIndexes)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
boolean |
execute(java.lang.String sql,
java.lang.String[] columnNames)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int[] |
executeBatch()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
java.sql.ResultSet |
executeQuery(java.lang.String sql)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
executeUpdate(java.lang.String sql)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
executeUpdate(java.lang.String sql,
int[] columnIndexes)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
java.sql.Connection |
getConnection()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getFetchDirection()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getFetchSize()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
java.sql.ResultSet |
getGeneratedKeys()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getMaxFieldSize()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getMaxRows()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
boolean |
getMoreResults()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
boolean |
getMoreResults(int current)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getQueryTimeout()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
java.sql.ResultSet |
getResultSet()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getResultSetConcurrency()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getResultSetHoldability()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getResultSetType()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
int |
getUpdateCount()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
java.sql.SQLWarning |
getWarnings()
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(java.lang.Class arg0) |
protected void |
processSQLException(java.sql.SQLException sqlException)
Processes SQLExceptions.
|
void |
setCursorName(java.lang.String name)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
setEscapeProcessing(boolean enable)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
setFetchDirection(int direction)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
setFetchSize(int rows)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
setMaxFieldSize(int max)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
setMaxRows(int max)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
void |
setPoolable(boolean poolable) |
void |
setQueryTimeout(int seconds)
Delgates calls to the statement; SQLExceptions thrown from the statement
will cause an event to be fired on the connection pool listeners.
|
java.lang.Object |
unwrap(java.lang.Class arg0) |
protected void |
validateConnection()
Validates the connection state.
|
private ConnectionProxy _connection
private JtdsStatement _statement
StatementProxy(ConnectionProxy connection, JtdsStatement statement)
public java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
executeQuery in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseableclose in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void setMaxFieldSize(int max)
throws java.sql.SQLException
setMaxFieldSize in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void setMaxRows(int max)
throws java.sql.SQLException
setMaxRows in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void setEscapeProcessing(boolean enable)
throws java.sql.SQLException
setEscapeProcessing in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void setQueryTimeout(int seconds)
throws java.sql.SQLException
setQueryTimeout in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void cancel()
throws java.sql.SQLException
cancel in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void setCursorName(java.lang.String name)
throws java.sql.SQLException
setCursorName in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic boolean execute(java.lang.String sql)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getUpdateCount()
throws java.sql.SQLException
getUpdateCount in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic boolean getMoreResults()
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void setFetchDirection(int direction)
throws java.sql.SQLException
setFetchDirection in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void setFetchSize(int rows)
throws java.sql.SQLException
setFetchSize in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getResultSetConcurrency()
throws java.sql.SQLException
getResultSetConcurrency in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getResultSetType()
throws java.sql.SQLException
getResultSetType in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void addBatch(java.lang.String sql)
throws java.sql.SQLException
addBatch in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic void clearBatch()
throws java.sql.SQLException
clearBatch in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int[] executeBatch()
throws java.sql.SQLException
executeBatch in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic boolean getMoreResults(int current)
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic java.sql.ResultSet getGeneratedKeys()
throws java.sql.SQLException
getGeneratedKeys in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int executeUpdate(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic boolean execute(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic boolean execute(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic boolean execute(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException - if an error occurspublic int getResultSetHoldability()
throws java.sql.SQLException
getResultSetHoldability in interface java.sql.Statementjava.sql.SQLException - if an error occursprotected void validateConnection()
throws java.sql.SQLException
java.sql.SQLExceptionprotected void processSQLException(java.sql.SQLException sqlException)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isPoolable()
throws java.sql.SQLException
isPoolable in interface java.sql.Statementjava.sql.SQLExceptionpublic void setPoolable(boolean poolable)
throws java.sql.SQLException
setPoolable in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class arg0)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic java.lang.Object unwrap(java.lang.Class arg0)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionpublic void closeOnCompletion()
throws java.sql.SQLException
closeOnCompletion in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isCloseOnCompletion()
throws java.sql.SQLException
isCloseOnCompletion in interface java.sql.Statementjava.sql.SQLExceptionGenerated on June 8 2013