|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.jdbc.DelegatingStatement
public abstract 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 | |
---|---|
(package private) static Constructor<DelegatingStatement> |
concreteImpl
|
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(Statement stmnt,
Connection conn)
|
Method Summary | |
---|---|
void |
addBatch(String str)
|
protected void |
appendInfo(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(Object other)
|
boolean |
execute(String str)
|
boolean |
execute(String s,
int i)
|
boolean |
execute(String s,
int[] ia)
|
boolean |
execute(String s,
String[] sa)
|
int[] |
executeBatch()
|
ResultSet |
executeQuery(String str)
|
protected ResultSet |
executeQuery(String sql,
boolean wrap)
Execute the query, with the option of not wrapping it in a DelegatingResultSet , which is the default. |
int |
executeUpdate(String str)
|
int |
executeUpdate(String s,
int i)
|
int |
executeUpdate(String s,
int[] ia)
|
int |
executeUpdate(String s,
String[] sa)
|
Connection |
getConnection()
|
Statement |
getDelegate()
Return the wrapped statement. |
int |
getFetchDirection()
|
int |
getFetchSize()
|
ResultSet |
getGeneratedKeys()
|
Statement |
getInnermostDelegate()
Return the base underlying data store statement. |
int |
getMaxFieldSize()
|
int |
getMaxRows()
|
boolean |
getMoreResults()
|
boolean |
getMoreResults(int i)
|
int |
getQueryTimeout()
|
ResultSet |
getResultSet()
|
protected 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()
|
SQLWarning |
getWarnings()
|
int |
hashCode()
|
boolean |
isWrapperFor(Class iface)
|
static DelegatingStatement |
newInstance(Statement stmnt,
Connection conn)
|
void |
setCursorName(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)
|
String |
toString()
|
Object |
unwrap(Class iface)
|
protected ResultSet |
wrapResult(ResultSet rs,
boolean wrap)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.Statement |
---|
isClosed, isPoolable, setPoolable |
Field Detail |
---|
static final Constructor<DelegatingStatement> concreteImpl
Constructor Detail |
---|
public DelegatingStatement(Statement stmnt, Connection conn)
Method Detail |
---|
public static DelegatingStatement newInstance(Statement stmnt, Connection conn)
protected abstract void enforceAbstract()
protected ResultSet wrapResult(ResultSet rs, boolean wrap)
public Statement getDelegate()
public Statement getInnermostDelegate()
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
protected void appendInfo(StringBuffer buf)
public ResultSet executeQuery(String str) throws SQLException
executeQuery
in interface Statement
SQLException
protected ResultSet executeQuery(String sql, boolean wrap) throws SQLException
DelegatingResultSet
, which is the default.
SQLException
public int executeUpdate(String str) throws SQLException
executeUpdate
in interface Statement
SQLException
public boolean execute(String str) throws SQLException
execute
in interface Statement
SQLException
public void close() throws SQLException
close
in interface Statement
close
in interface Closeable
SQLException
public int getMaxFieldSize() throws SQLException
getMaxFieldSize
in interface Statement
SQLException
public void setMaxFieldSize(int i) throws SQLException
setMaxFieldSize
in interface Statement
SQLException
public int getMaxRows() throws SQLException
getMaxRows
in interface Statement
SQLException
public void setMaxRows(int i) throws SQLException
setMaxRows
in interface Statement
SQLException
public void setEscapeProcessing(boolean bool) throws SQLException
setEscapeProcessing
in interface Statement
SQLException
public int getQueryTimeout() throws SQLException
getQueryTimeout
in interface Statement
SQLException
public void setQueryTimeout(int i) throws SQLException
setQueryTimeout
in interface Statement
SQLException
public void cancel() throws SQLException
cancel
in interface Statement
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface Statement
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface Statement
SQLException
public void setCursorName(String str) throws SQLException
setCursorName
in interface Statement
SQLException
public ResultSet getResultSet() throws SQLException
getResultSet
in interface Statement
SQLException
protected ResultSet getResultSet(boolean wrap) throws SQLException
DelegatingResultSet
, which is the default.
SQLException
public int getUpdateCount() throws SQLException
getUpdateCount
in interface Statement
SQLException
public boolean getMoreResults() throws SQLException
getMoreResults
in interface Statement
SQLException
public void setFetchDirection(int i) throws SQLException
setFetchDirection
in interface Statement
SQLException
public int getFetchDirection() throws SQLException
getFetchDirection
in interface Statement
SQLException
public void setFetchSize(int i) throws SQLException
setFetchSize
in interface Statement
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface Statement
SQLException
public int getResultSetConcurrency() throws SQLException
getResultSetConcurrency
in interface Statement
SQLException
public int getResultSetType() throws SQLException
getResultSetType
in interface Statement
SQLException
public void addBatch(String str) throws SQLException
addBatch
in interface Statement
SQLException
public void clearBatch() throws SQLException
clearBatch
in interface Statement
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
SQLException
public Connection getConnection() throws SQLException
getConnection
in interface Statement
SQLException
public boolean getMoreResults(int i) throws SQLException
getMoreResults
in interface Statement
SQLException
public ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys
in interface Statement
SQLException
public int executeUpdate(String s, int i) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String s, int[] ia) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String s, String[] sa) throws SQLException
executeUpdate
in interface Statement
SQLException
public boolean execute(String s, int i) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String s, int[] ia) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String s, String[] sa) throws SQLException
execute
in interface Statement
SQLException
public int getResultSetHoldability() throws SQLException
getResultSetHoldability
in interface Statement
SQLException
public boolean isWrapperFor(Class iface)
isWrapperFor
in interface Wrapper
public Object unwrap(Class iface)
unwrap
in interface Wrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |