|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.jdbc.DelegatingStatement
public class DelegatingStatement
Wrapper around an existing statement. Subclasses can override the
methods whose behavior they mean to change. The equals and
hashCode methods pass through to the base underlying data
store statement.
| Field Summary |
|---|
| Fields inherited from interface java.sql.Statement |
|---|
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
| Constructor Summary | |
|---|---|
DelegatingStatement(java.sql.Statement stmnt,
java.sql.Connection conn)
|
|
| Method Summary | |
|---|---|
void |
addBatch(java.lang.String str)
|
protected void |
appendInfo(java.lang.StringBuffer buf)
|
void |
cancel()
|
void |
clearBatch()
|
void |
clearWarnings()
|
void |
close()
|
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 |
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()
|
protected java.sql.ResultSet |
wrapResult(java.sql.ResultSet rs,
boolean wrap)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingStatement(java.sql.Statement stmnt,
java.sql.Connection conn)
| Method Detail |
|---|
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.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.Statementjava.sql.SQLException
public boolean execute(java.lang.String str)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public void close()
throws java.sql.SQLException
close in interface java.sql.Statementclose in interface Closeablejava.sql.SQLException
public int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface java.sql.Statementjava.sql.SQLException
public void setMaxFieldSize(int i)
throws java.sql.SQLException
setMaxFieldSize in interface java.sql.Statementjava.sql.SQLException
public int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface java.sql.Statementjava.sql.SQLException
public void setMaxRows(int i)
throws java.sql.SQLException
setMaxRows in interface java.sql.Statementjava.sql.SQLException
public void setEscapeProcessing(boolean bool)
throws java.sql.SQLException
setEscapeProcessing in interface java.sql.Statementjava.sql.SQLException
public int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface java.sql.Statementjava.sql.SQLException
public void setQueryTimeout(int i)
throws java.sql.SQLException
setQueryTimeout in interface java.sql.Statementjava.sql.SQLException
public void cancel()
throws java.sql.SQLException
cancel in interface java.sql.Statementjava.sql.SQLException
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.Statementjava.sql.SQLException
public void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Statementjava.sql.SQLException
public void setCursorName(java.lang.String str)
throws java.sql.SQLException
setCursorName in interface java.sql.Statementjava.sql.SQLException
public java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet in interface java.sql.Statementjava.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.Statementjava.sql.SQLException
public boolean getMoreResults()
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLException
public void setFetchDirection(int i)
throws java.sql.SQLException
setFetchDirection in interface java.sql.Statementjava.sql.SQLException
public int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.Statementjava.sql.SQLException
public void setFetchSize(int i)
throws java.sql.SQLException
setFetchSize in interface java.sql.Statementjava.sql.SQLException
public int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.Statementjava.sql.SQLException
public int getResultSetConcurrency()
throws java.sql.SQLException
getResultSetConcurrency in interface java.sql.Statementjava.sql.SQLException
public int getResultSetType()
throws java.sql.SQLException
getResultSetType in interface java.sql.Statementjava.sql.SQLException
public void addBatch(java.lang.String str)
throws java.sql.SQLException
addBatch in interface java.sql.Statementjava.sql.SQLException
public void clearBatch()
throws java.sql.SQLException
clearBatch in interface java.sql.Statementjava.sql.SQLException
public int[] executeBatch()
throws java.sql.SQLException
executeBatch in interface java.sql.Statementjava.sql.SQLException
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface java.sql.Statementjava.sql.SQLException
public boolean getMoreResults(int i)
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLException
public java.sql.ResultSet getGeneratedKeys()
throws java.sql.SQLException
getGeneratedKeys in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String s,
int i)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String s,
int[] ia)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String s,
java.lang.String[] sa)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String s,
int i)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String s,
int[] ia)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String s,
java.lang.String[] sa)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public int getResultSetHoldability()
throws java.sql.SQLException
getResultSetHoldability in interface java.sql.Statementjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||