public class DelegatingStatement extends java.lang.Object implements java.sql.Statement, Closeable
equals and
hashCode methods pass through to the base underlying data
store statement.| Constructor and Description |
|---|
DelegatingStatement(java.sql.Statement stmnt,
java.sql.Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(java.lang.String str) |
protected void |
appendInfo(java.lang.StringBuffer buf) |
void |
cancel() |
void |
clearBatch() |
void |
clearWarnings() |
void |
close() |
void |
closeOnCompletion() |
boolean |
equals(java.lang.Object other) |
boolean |
execute(java.lang.String str) |
boolean |
execute(java.lang.String s,
int i) |
boolean |
execute(java.lang.String s,
int[] ia) |
boolean |
execute(java.lang.String s,
java.lang.String[] sa) |
int[] |
executeBatch() |
java.sql.ResultSet |
executeQuery(java.lang.String str) |
protected java.sql.ResultSet |
executeQuery(java.lang.String sql,
boolean wrap)
Execute the query, with the option of not wrapping it in a
DelegatingResultSet, which is the default. |
int |
executeUpdate(java.lang.String str) |
int |
executeUpdate(java.lang.String s,
int i) |
int |
executeUpdate(java.lang.String s,
int[] ia) |
int |
executeUpdate(java.lang.String s,
java.lang.String[] sa) |
java.sql.Connection |
getConnection() |
java.sql.Statement |
getDelegate()
Return the wrapped statement.
|
int |
getFetchDirection() |
int |
getFetchSize() |
java.sql.ResultSet |
getGeneratedKeys() |
java.sql.Statement |
getInnermostDelegate()
Return the base underlying data store statement.
|
int |
getMaxFieldSize() |
int |
getMaxRows() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int i) |
int |
getQueryTimeout() |
java.sql.ResultSet |
getResultSet() |
protected java.sql.ResultSet |
getResultSet(boolean wrap)
Get the last result set, with the option of not wrapping it in a
DelegatingResultSet, which is the default. |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
int |
getUpdateCount() |
java.sql.SQLWarning |
getWarnings() |
int |
hashCode() |
void |
initialize(java.sql.Statement stmnt,
java.sql.Connection conn) |
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setCursorName(java.lang.String str) |
void |
setEscapeProcessing(boolean bool) |
void |
setFetchDirection(int i) |
void |
setFetchSize(int i) |
void |
setMaxFieldSize(int i) |
void |
setMaxRows(int i) |
void |
setPoolable(boolean b) |
void |
setQueryTimeout(int i) |
java.lang.String |
toString() |
<T> T |
unwrap(java.lang.Class<T> iface) |
protected java.sql.ResultSet |
wrapResult(java.sql.ResultSet rs,
boolean wrap) |
public DelegatingStatement(java.sql.Statement stmnt,
java.sql.Connection conn)
public void initialize(java.sql.Statement stmnt,
java.sql.Connection conn)
protected java.sql.ResultSet wrapResult(java.sql.ResultSet rs,
boolean wrap)
public java.sql.Statement getDelegate()
public java.sql.Statement getInnermostDelegate()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectprotected void appendInfo(java.lang.StringBuffer buf)
public java.sql.ResultSet executeQuery(java.lang.String str)
throws java.sql.SQLException
executeQuery in interface java.sql.Statementjava.sql.SQLExceptionprotected java.sql.ResultSet executeQuery(java.lang.String sql,
boolean wrap)
throws java.sql.SQLException
DelegatingResultSet, which is the default.java.sql.SQLExceptionpublic int executeUpdate(java.lang.String str)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String str)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
public int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface java.sql.Statementjava.sql.SQLExceptionpublic void setMaxFieldSize(int i)
throws java.sql.SQLException
setMaxFieldSize in interface java.sql.Statementjava.sql.SQLExceptionpublic int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface java.sql.Statementjava.sql.SQLExceptionpublic void setMaxRows(int i)
throws java.sql.SQLException
setMaxRows in interface java.sql.Statementjava.sql.SQLExceptionpublic void setEscapeProcessing(boolean bool)
throws java.sql.SQLException
setEscapeProcessing in interface java.sql.Statementjava.sql.SQLExceptionpublic int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface java.sql.Statementjava.sql.SQLExceptionpublic void setQueryTimeout(int i)
throws java.sql.SQLException
setQueryTimeout in interface java.sql.Statementjava.sql.SQLExceptionpublic void cancel()
throws java.sql.SQLException
cancel in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.Statementjava.sql.SQLExceptionpublic void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Statementjava.sql.SQLExceptionpublic void setCursorName(java.lang.String str)
throws java.sql.SQLException
setCursorName in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet in interface java.sql.Statementjava.sql.SQLExceptionprotected java.sql.ResultSet getResultSet(boolean wrap)
throws java.sql.SQLException
DelegatingResultSet, which is the default.java.sql.SQLExceptionpublic int getUpdateCount()
throws java.sql.SQLException
getUpdateCount in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean getMoreResults()
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLExceptionpublic void setFetchDirection(int i)
throws java.sql.SQLException
setFetchDirection in interface java.sql.Statementjava.sql.SQLExceptionpublic int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.Statementjava.sql.SQLExceptionpublic void setFetchSize(int i)
throws java.sql.SQLException
setFetchSize in interface java.sql.Statementjava.sql.SQLExceptionpublic int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetConcurrency()
throws java.sql.SQLException
getResultSetConcurrency in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetType()
throws java.sql.SQLException
getResultSetType in interface java.sql.Statementjava.sql.SQLExceptionpublic void addBatch(java.lang.String str)
throws java.sql.SQLException
addBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic void clearBatch()
throws java.sql.SQLException
clearBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic int[] executeBatch()
throws java.sql.SQLException
executeBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean getMoreResults(int i)
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.ResultSet getGeneratedKeys()
throws java.sql.SQLException
getGeneratedKeys in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String s,
int i)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String s,
int[] ia)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String s,
java.lang.String[] sa)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String s,
int i)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String s,
int[] ia)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String s,
java.lang.String[] sa)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetHoldability()
throws java.sql.SQLException
getResultSetHoldability in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.Statementjava.sql.SQLExceptionpublic void setPoolable(boolean b)
throws java.sql.SQLException
setPoolable in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isPoolable()
throws java.sql.SQLException
isPoolable in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isCloseOnCompletion()
throws java.sql.SQLException
isCloseOnCompletion in interface java.sql.Statementjava.sql.SQLExceptionpublic void closeOnCompletion()
throws java.sql.SQLException
closeOnCompletion in interface java.sql.Statementjava.sql.SQLExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.