org.apache.openjpa.lib.jdbc
protected abstract class LoggingConnectionDecorator.LoggingConnection.LoggingCallableStatement extends DelegatingCallableStatement
LoggingConnectionDecorator.LoggingConnection.LoggingPreparedStatement
but can not be extended
due to the existing delegation hierarchy.Constructor and Description |
---|
LoggingConnectionDecorator.LoggingConnection.LoggingCallableStatement(java.sql.CallableStatement stmt,
java.lang.String sql) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
protected void |
appendInfo(java.lang.StringBuffer buf) |
void |
cancel() |
protected void |
clearLogParameters(boolean batch) |
void |
clearParameters() |
boolean |
execute() |
boolean |
execute(java.lang.String sql) |
int[] |
executeBatch() |
protected java.sql.ResultSet |
executeQuery(boolean wrap)
Execute the query, with the option of not wrapping it in a
DelegatingResultSet , which is the default. |
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() |
int |
executeUpdate(java.lang.String sql) |
java.sql.ResultSetMetaData |
getMetaData() |
void |
setArray(int i,
java.sql.Array a) |
void |
setAsciiStream(int i1,
java.io.InputStream is,
int i2) |
void |
setBigDecimal(int i,
java.math.BigDecimal bd) |
void |
setBinaryStream(int i1,
java.io.InputStream is,
int i2) |
void |
setBlob(int i,
java.sql.Blob b) |
void |
setBoolean(int i,
boolean b) |
void |
setByte(int i,
byte b) |
void |
setBytes(int i,
byte[] b) |
void |
setCharacterStream(int i1,
java.io.Reader r,
int i2) |
void |
setClob(int i,
java.sql.Clob c) |
void |
setDate(int i,
java.sql.Date d) |
void |
setDate(int i,
java.sql.Date d,
java.util.Calendar c) |
void |
setDouble(int i,
double d) |
void |
setFloat(int i,
float f) |
void |
setInt(int i1,
int i2) |
void |
setLong(int i,
long l) |
void |
setNull(int i1,
int i2) |
void |
setNull(int i1,
int i2,
java.lang.String s) |
void |
setObject(int i,
java.lang.Object o) |
void |
setObject(int i1,
java.lang.Object o,
int i2) |
void |
setObject(int i1,
java.lang.Object o,
int i2,
int i3) |
void |
setRef(int i,
java.sql.Ref r) |
void |
setShort(int i,
short s) |
void |
setString(int i,
java.lang.String s) |
void |
setTime(int i,
java.sql.Time t) |
void |
setTime(int i,
java.sql.Time t,
java.util.Calendar c) |
void |
setTimestamp(int i,
java.sql.Timestamp t) |
void |
setTimestamp(int i,
java.sql.Timestamp t,
java.util.Calendar c) |
void |
setUnicodeStream(int i1,
java.io.InputStream is,
int i2)
Deprecated.
|
protected java.sql.ResultSet |
wrapResult(java.sql.ResultSet rs,
boolean wrap) |
addBatch, clearBatch, clearWarnings, close, equals, execute, execute, execute, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getClob, getClob, getConnection, getDate, getDate, getDate, getDate, getDelegate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getGeneratedKeys, getInnermostDelegate, getInt, getInt, getLong, getLong, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getObject, getObject, getObject, getObject, getParameterMetaData, getQueryTimeout, getRef, getRef, getResultSet, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getShort, getShort, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getUpdateCount, getURL, getURL, getWarnings, hashCode, isWrapperFor, newInstance, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, setAsciiStream, setBigDecimal, setBinaryStream, setBoolean, setByte, setBytes, setCharacterStream, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setURL, setURL, toString, unwrap, wasNull, wrapResult
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCharacterStream, getCharacterStream, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML
setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML
public LoggingConnectionDecorator.LoggingConnection.LoggingCallableStatement(java.sql.CallableStatement stmt, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
protected java.sql.ResultSet wrapResult(java.sql.ResultSet rs, boolean wrap)
protected java.sql.ResultSet executeQuery(java.lang.String sql, boolean wrap) throws java.sql.SQLException
DelegatingCallableStatement
DelegatingResultSet
, which is the default.executeQuery
in class DelegatingCallableStatement
java.sql.SQLException
public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
executeUpdate
in class DelegatingCallableStatement
java.sql.SQLException
public boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
execute
in class DelegatingCallableStatement
java.sql.SQLException
protected java.sql.ResultSet executeQuery(boolean wrap) throws java.sql.SQLException
DelegatingCallableStatement
DelegatingResultSet
, which is the default.executeQuery
in class DelegatingCallableStatement
java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
executeUpdate
in class DelegatingCallableStatement
java.sql.SQLException
public int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
executeBatch
in class DelegatingCallableStatement
java.sql.SQLException
public boolean execute() throws java.sql.SQLException
execute
in interface java.sql.PreparedStatement
execute
in class DelegatingCallableStatement
java.sql.SQLException
public void cancel() throws java.sql.SQLException
cancel
in interface java.sql.Statement
cancel
in class DelegatingCallableStatement
java.sql.SQLException
public void setNull(int i1, int i2) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
setNull
in class DelegatingCallableStatement
java.sql.SQLException
public void setBoolean(int i, boolean b) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
setBoolean
in class DelegatingCallableStatement
java.sql.SQLException
public void setByte(int i, byte b) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
setByte
in class DelegatingCallableStatement
java.sql.SQLException
public void setShort(int i, short s) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
setShort
in class DelegatingCallableStatement
java.sql.SQLException
public void setInt(int i1, int i2) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
setInt
in class DelegatingCallableStatement
java.sql.SQLException
public void setLong(int i, long l) throws java.sql.SQLException
setLong
in interface java.sql.PreparedStatement
setLong
in class DelegatingCallableStatement
java.sql.SQLException
public void setFloat(int i, float f) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
setFloat
in class DelegatingCallableStatement
java.sql.SQLException
public void setDouble(int i, double d) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
setDouble
in class DelegatingCallableStatement
java.sql.SQLException
public void setBigDecimal(int i, java.math.BigDecimal bd) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
setBigDecimal
in class DelegatingCallableStatement
java.sql.SQLException
public void setString(int i, java.lang.String s) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
setString
in class DelegatingCallableStatement
java.sql.SQLException
public void setBytes(int i, byte[] b) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
setBytes
in class DelegatingCallableStatement
java.sql.SQLException
public void setDate(int i, java.sql.Date d) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
setDate
in class DelegatingCallableStatement
java.sql.SQLException
public void setTime(int i, java.sql.Time t) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
setTime
in class DelegatingCallableStatement
java.sql.SQLException
public void setTimestamp(int i, java.sql.Timestamp t) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
setTimestamp
in class DelegatingCallableStatement
java.sql.SQLException
public void setAsciiStream(int i1, java.io.InputStream is, int i2) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
setAsciiStream
in class DelegatingCallableStatement
java.sql.SQLException
@Deprecated public void setUnicodeStream(int i1, java.io.InputStream is, int i2) throws java.sql.SQLException
setUnicodeStream
in interface java.sql.PreparedStatement
setUnicodeStream
in class DelegatingCallableStatement
java.sql.SQLException
public void setBinaryStream(int i1, java.io.InputStream is, int i2) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
setBinaryStream
in class DelegatingCallableStatement
java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
clearParameters
in interface java.sql.PreparedStatement
clearParameters
in class DelegatingCallableStatement
java.sql.SQLException
public void setObject(int i1, java.lang.Object o, int i2, int i3) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
setObject
in class DelegatingCallableStatement
java.sql.SQLException
public void setObject(int i1, java.lang.Object o, int i2) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
setObject
in class DelegatingCallableStatement
java.sql.SQLException
public void setObject(int i, java.lang.Object o) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
setObject
in class DelegatingCallableStatement
java.sql.SQLException
public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
addBatch
in class DelegatingCallableStatement
java.sql.SQLException
public void setCharacterStream(int i1, java.io.Reader r, int i2) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
setCharacterStream
in class DelegatingCallableStatement
java.sql.SQLException
public void setRef(int i, java.sql.Ref r) throws java.sql.SQLException
setRef
in interface java.sql.PreparedStatement
setRef
in class DelegatingCallableStatement
java.sql.SQLException
public void setBlob(int i, java.sql.Blob b) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
setBlob
in class DelegatingCallableStatement
java.sql.SQLException
public void setClob(int i, java.sql.Clob c) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
setClob
in class DelegatingCallableStatement
java.sql.SQLException
public void setArray(int i, java.sql.Array a) throws java.sql.SQLException
setArray
in interface java.sql.PreparedStatement
setArray
in class DelegatingCallableStatement
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
getMetaData
in class DelegatingCallableStatement
java.sql.SQLException
public void setDate(int i, java.sql.Date d, java.util.Calendar c) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
setDate
in class DelegatingCallableStatement
java.sql.SQLException
public void setTime(int i, java.sql.Time t, java.util.Calendar c) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
setTime
in class DelegatingCallableStatement
java.sql.SQLException
public void setTimestamp(int i, java.sql.Timestamp t, java.util.Calendar c) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
setTimestamp
in class DelegatingCallableStatement
java.sql.SQLException
public void setNull(int i1, int i2, java.lang.String s) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
setNull
in class DelegatingCallableStatement
java.sql.SQLException
protected void appendInfo(java.lang.StringBuffer buf)
appendInfo
in class DelegatingCallableStatement
protected void clearLogParameters(boolean batch)