|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.jdbc.DelegatingPreparedStatement
public class DelegatingPreparedStatement
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 | |
|---|---|
DelegatingPreparedStatement(PreparedStatement stmnt,
Connection conn)
|
|
| Method Summary | |
|---|---|
void |
addBatch()
|
void |
addBatch(String str)
|
protected void |
appendInfo(StringBuffer buf)
|
void |
cancel()
|
void |
clearBatch()
|
void |
clearParameters()
|
void |
clearWarnings()
|
void |
close()
|
boolean |
equals(Object other)
|
boolean |
execute()
|
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()
|
protected ResultSet |
executeQuery(boolean wrap)
Execute the query, with the option of not wrapping it in a DelegatingResultSet, which is the default. |
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()
|
int |
executeUpdate(String str)
|
int |
executeUpdate(String s,
int i)
|
int |
executeUpdate(String s,
int[] ia)
|
int |
executeUpdate(String s,
String[] sa)
|
Connection |
getConnection()
|
PreparedStatement |
getDelegate()
Return the wrapped statement. |
int |
getFetchDirection()
|
int |
getFetchSize()
|
ResultSet |
getGeneratedKeys()
|
PreparedStatement |
getInnermostDelegate()
Return the base underlying data store statement. |
int |
getMaxFieldSize()
|
int |
getMaxRows()
|
ResultSetMetaData |
getMetaData()
|
boolean |
getMoreResults()
|
boolean |
getMoreResults(int i)
|
ParameterMetaData |
getParameterMetaData()
|
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()
|
void |
setArray(int i,
Array a)
|
void |
setAsciiStream(int i1,
InputStream is,
int i2)
|
void |
setBigDecimal(int i,
BigDecimal bd)
|
void |
setBinaryStream(int i1,
InputStream is,
int i2)
|
void |
setBlob(int i,
Blob b)
|
void |
setBoolean(int i,
boolean b)
|
void |
setByte(int i,
byte b)
|
void |
setBytes(int i,
byte[] b)
|
void |
setCharacterStream(int i1,
Reader r,
int i2)
|
void |
setClob(int i,
Clob c)
|
void |
setCursorName(String str)
|
void |
setDate(int i,
Date d)
|
void |
setDate(int i,
Date d,
Calendar c)
|
void |
setDouble(int i,
double d)
|
void |
setEscapeProcessing(boolean bool)
|
void |
setFetchDirection(int i)
|
void |
setFetchSize(int i)
|
void |
setFloat(int i,
float f)
|
void |
setInt(int i1,
int i2)
|
void |
setLong(int i,
long l)
|
void |
setMaxFieldSize(int i)
|
void |
setMaxRows(int i)
|
void |
setNull(int i1,
int i2)
|
void |
setNull(int i1,
int i2,
String s)
|
void |
setObject(int i,
Object o)
|
void |
setObject(int i1,
Object o,
int i2)
|
void |
setObject(int i1,
Object o,
int i2,
int i3)
|
void |
setQueryTimeout(int i)
|
void |
setRef(int i,
Ref r)
|
void |
setShort(int i,
short s)
|
void |
setString(int i,
String s)
|
void |
setTime(int i,
Time t)
|
void |
setTime(int i,
Time t,
Calendar c)
|
void |
setTimestamp(int i,
Timestamp t)
|
void |
setTimestamp(int i,
Timestamp t,
Calendar c)
|
void |
setUnicodeStream(int i1,
InputStream is,
int i2)
|
void |
setURL(int i,
URL url)
|
String |
toString()
|
protected ResultSet |
wrapResult(ResultSet rs,
boolean wrap)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingPreparedStatement(PreparedStatement stmnt,
Connection conn)
| Method Detail |
|---|
protected ResultSet wrapResult(ResultSet rs,
boolean wrap)
public PreparedStatement getDelegate()
public PreparedStatement getInnermostDelegate()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Objectprotected void appendInfo(StringBuffer buf)
public ResultSet executeQuery(String str)
throws SQLException
executeQuery in interface StatementSQLException
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 StatementSQLException
public boolean execute(String str)
throws SQLException
execute in interface StatementSQLException
public void close()
throws SQLException
close in interface Statementclose in interface CloseableSQLException
public int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLException
public void setMaxFieldSize(int i)
throws SQLException
setMaxFieldSize in interface StatementSQLException
public int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLException
public void setMaxRows(int i)
throws SQLException
setMaxRows in interface StatementSQLException
public void setEscapeProcessing(boolean bool)
throws SQLException
setEscapeProcessing in interface StatementSQLException
public int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLException
public void setQueryTimeout(int i)
throws SQLException
setQueryTimeout in interface StatementSQLException
public void cancel()
throws SQLException
cancel in interface StatementSQLException
public SQLWarning getWarnings()
throws SQLException
getWarnings in interface StatementSQLException
public void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLException
public void setCursorName(String str)
throws SQLException
setCursorName in interface StatementSQLException
public ResultSet getResultSet()
throws SQLException
getResultSet in interface StatementSQLException
protected ResultSet getResultSet(boolean wrap)
throws SQLException
DelegatingResultSet, which is the default.
SQLException
public int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLException
public boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLException
public void setFetchDirection(int i)
throws SQLException
setFetchDirection in interface StatementSQLException
public int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLException
public void setFetchSize(int i)
throws SQLException
setFetchSize in interface StatementSQLException
public int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLException
public int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLException
public int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLException
public void addBatch(String str)
throws SQLException
addBatch in interface StatementSQLException
public void clearBatch()
throws SQLException
clearBatch in interface StatementSQLException
public int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLException
public Connection getConnection()
throws SQLException
getConnection in interface StatementSQLException
public ResultSet executeQuery()
throws SQLException
executeQuery in interface PreparedStatementSQLException
protected ResultSet executeQuery(boolean wrap)
throws SQLException
DelegatingResultSet, which is the default.
SQLException
public int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementSQLException
public void setNull(int i1,
int i2)
throws SQLException
setNull in interface PreparedStatementSQLException
public void setBoolean(int i,
boolean b)
throws SQLException
setBoolean in interface PreparedStatementSQLException
public void setByte(int i,
byte b)
throws SQLException
setByte in interface PreparedStatementSQLException
public void setShort(int i,
short s)
throws SQLException
setShort in interface PreparedStatementSQLException
public void setInt(int i1,
int i2)
throws SQLException
setInt in interface PreparedStatementSQLException
public void setLong(int i,
long l)
throws SQLException
setLong in interface PreparedStatementSQLException
public void setFloat(int i,
float f)
throws SQLException
setFloat in interface PreparedStatementSQLException
public void setDouble(int i,
double d)
throws SQLException
setDouble in interface PreparedStatementSQLException
public void setBigDecimal(int i,
BigDecimal bd)
throws SQLException
setBigDecimal in interface PreparedStatementSQLException
public void setString(int i,
String s)
throws SQLException
setString in interface PreparedStatementSQLException
public void setBytes(int i,
byte[] b)
throws SQLException
setBytes in interface PreparedStatementSQLException
public void setDate(int i,
Date d)
throws SQLException
setDate in interface PreparedStatementSQLException
public void setTime(int i,
Time t)
throws SQLException
setTime in interface PreparedStatementSQLException
public void setTimestamp(int i,
Timestamp t)
throws SQLException
setTimestamp in interface PreparedStatementSQLException
public void setAsciiStream(int i1,
InputStream is,
int i2)
throws SQLException
setAsciiStream in interface PreparedStatementSQLException
public void setUnicodeStream(int i1,
InputStream is,
int i2)
throws SQLException
setUnicodeStream in interface PreparedStatementSQLException
public void setBinaryStream(int i1,
InputStream is,
int i2)
throws SQLException
setBinaryStream in interface PreparedStatementSQLException
public void clearParameters()
throws SQLException
clearParameters in interface PreparedStatementSQLException
public void setObject(int i1,
Object o,
int i2,
int i3)
throws SQLException
setObject in interface PreparedStatementSQLException
public void setObject(int i1,
Object o,
int i2)
throws SQLException
setObject in interface PreparedStatementSQLException
public void setObject(int i,
Object o)
throws SQLException
setObject in interface PreparedStatementSQLException
public boolean execute()
throws SQLException
execute in interface PreparedStatementSQLException
public void addBatch()
throws SQLException
addBatch in interface PreparedStatementSQLException
public void setCharacterStream(int i1,
Reader r,
int i2)
throws SQLException
setCharacterStream in interface PreparedStatementSQLException
public void setRef(int i,
Ref r)
throws SQLException
setRef in interface PreparedStatementSQLException
public void setBlob(int i,
Blob b)
throws SQLException
setBlob in interface PreparedStatementSQLException
public void setClob(int i,
Clob c)
throws SQLException
setClob in interface PreparedStatementSQLException
public void setArray(int i,
Array a)
throws SQLException
setArray in interface PreparedStatementSQLException
public ResultSetMetaData getMetaData()
throws SQLException
getMetaData in interface PreparedStatementSQLException
public void setDate(int i,
Date d,
Calendar c)
throws SQLException
setDate in interface PreparedStatementSQLException
public void setTime(int i,
Time t,
Calendar c)
throws SQLException
setTime in interface PreparedStatementSQLException
public void setTimestamp(int i,
Timestamp t,
Calendar c)
throws SQLException
setTimestamp in interface PreparedStatementSQLException
public void setNull(int i1,
int i2,
String s)
throws SQLException
setNull in interface PreparedStatementSQLException
public boolean getMoreResults(int i)
throws SQLException
getMoreResults in interface StatementSQLException
public ResultSet getGeneratedKeys()
throws SQLException
getGeneratedKeys in interface StatementSQLException
public int executeUpdate(String s,
int i)
throws SQLException
executeUpdate in interface StatementSQLException
public int executeUpdate(String s,
int[] ia)
throws SQLException
executeUpdate in interface StatementSQLException
public int executeUpdate(String s,
String[] sa)
throws SQLException
executeUpdate in interface StatementSQLException
public boolean execute(String s,
int i)
throws SQLException
execute in interface StatementSQLException
public boolean execute(String s,
int[] ia)
throws SQLException
execute in interface StatementSQLException
public boolean execute(String s,
String[] sa)
throws SQLException
execute in interface StatementSQLException
public int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLException
public void setURL(int i,
URL url)
throws SQLException
setURL in interface PreparedStatementSQLException
public ParameterMetaData getParameterMetaData()
throws SQLException
getParameterMetaData in interface PreparedStatementSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||