public abstract 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() |
protected abstract void |
enforceAbstract()
Marker to enforce that subclasses of this class are abstract.
|
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() |
boolean |
isWrapperFor(java.lang.Class iface) |
static DelegatingStatement |
newInstance(java.sql.Statement stmnt,
java.sql.Connection conn) |
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 |
setQueryTimeout(int i) |
java.lang.String |
toString() |
java.lang.Object |
unwrap(java.lang.Class iface) |
protected java.sql.ResultSet |
wrapResult(java.sql.ResultSet rs,
boolean wrap) |
public DelegatingStatement(java.sql.Statement stmnt, java.sql.Connection conn)
public static DelegatingStatement newInstance(java.sql.Statement stmnt, java.sql.Connection conn)
protected abstract void enforceAbstract()
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.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected void appendInfo(java.lang.StringBuffer buf)
public java.sql.ResultSet executeQuery(java.lang.String str) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
java.sql.SQLException
protected java.sql.ResultSet executeQuery(java.lang.String sql, boolean wrap) throws java.sql.SQLException
DelegatingResultSet
, which is the default.java.sql.SQLException
public int executeUpdate(java.lang.String str) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String str) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public void close() throws java.sql.SQLException
public int getMaxFieldSize() throws java.sql.SQLException
getMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
public void setMaxFieldSize(int i) throws java.sql.SQLException
setMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
public int getMaxRows() throws java.sql.SQLException
getMaxRows
in interface java.sql.Statement
java.sql.SQLException
public void setMaxRows(int i) throws java.sql.SQLException
setMaxRows
in interface java.sql.Statement
java.sql.SQLException
public void setEscapeProcessing(boolean bool) throws java.sql.SQLException
setEscapeProcessing
in interface java.sql.Statement
java.sql.SQLException
public int getQueryTimeout() throws java.sql.SQLException
getQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
public void setQueryTimeout(int i) throws java.sql.SQLException
setQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
public void cancel() throws java.sql.SQLException
cancel
in interface java.sql.Statement
java.sql.SQLException
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.Statement
java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.Statement
java.sql.SQLException
public void setCursorName(java.lang.String str) throws java.sql.SQLException
setCursorName
in interface java.sql.Statement
java.sql.SQLException
public java.sql.ResultSet getResultSet() throws java.sql.SQLException
getResultSet
in interface java.sql.Statement
java.sql.SQLException
protected java.sql.ResultSet getResultSet(boolean wrap) throws java.sql.SQLException
DelegatingResultSet
, which is the default.java.sql.SQLException
public int getUpdateCount() throws java.sql.SQLException
getUpdateCount
in interface java.sql.Statement
java.sql.SQLException
public boolean getMoreResults() throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
public void setFetchDirection(int i) throws java.sql.SQLException
setFetchDirection
in interface java.sql.Statement
java.sql.SQLException
public int getFetchDirection() throws java.sql.SQLException
getFetchDirection
in interface java.sql.Statement
java.sql.SQLException
public void setFetchSize(int i) throws java.sql.SQLException
setFetchSize
in interface java.sql.Statement
java.sql.SQLException
public int getFetchSize() throws java.sql.SQLException
getFetchSize
in interface java.sql.Statement
java.sql.SQLException
public int getResultSetConcurrency() throws java.sql.SQLException
getResultSetConcurrency
in interface java.sql.Statement
java.sql.SQLException
public int getResultSetType() throws java.sql.SQLException
getResultSetType
in interface java.sql.Statement
java.sql.SQLException
public void addBatch(java.lang.String str) throws java.sql.SQLException
addBatch
in interface java.sql.Statement
java.sql.SQLException
public void clearBatch() throws java.sql.SQLException
clearBatch
in interface java.sql.Statement
java.sql.SQLException
public int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface java.sql.Statement
java.sql.SQLException
public boolean getMoreResults(int i) throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
public java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLException
getGeneratedKeys
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String s, int i) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String s, int[] ia) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String s, java.lang.String[] sa) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String s, int i) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String s, int[] ia) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String s, java.lang.String[] sa) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public int getResultSetHoldability() throws java.sql.SQLException
getResultSetHoldability
in interface java.sql.Statement
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class iface)
isWrapperFor
in interface java.sql.Wrapper
public java.lang.Object unwrap(java.lang.Class iface)
unwrap
in interface java.sql.Wrapper