org.apache.openjpa.lib.jdbc
public abstract class DelegatingCallableStatement extends Object implements CallableStatement, Closeable
CallableStatement that delegates to an internal statement.CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
DelegatingCallableStatement(CallableStatement stmnt,
Connection conn) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCharacterStream, 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, setSQLXMLsetAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXMLisClosed, isPoolable, setPoolablepublic DelegatingCallableStatement(CallableStatement stmnt, Connection conn)
public static DelegatingCallableStatement newInstance(CallableStatement stmnt, Connection conn)
public CallableStatement getDelegate()
public CallableStatement getInnermostDelegate()
protected void appendInfo(StringBuffer buf)
public ResultSet executeQuery(String str) throws SQLException
executeQuery in interface StatementSQLExceptionprotected ResultSet executeQuery(String sql, boolean wrap) throws SQLException
DelegatingResultSet, which is the default.SQLExceptionpublic int executeUpdate(String str) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic boolean execute(String str) throws SQLException
execute in interface StatementSQLExceptionpublic void close()
throws SQLException
close in interface Statementclose in interface CloseableSQLExceptionpublic int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptionpublic void setMaxFieldSize(int i)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptionpublic int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptionpublic void setMaxRows(int i)
throws SQLException
setMaxRows in interface StatementSQLExceptionpublic void setEscapeProcessing(boolean bool)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptionpublic void setQueryTimeout(int i)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic void cancel()
throws SQLException
cancel in interface StatementSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface StatementSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLExceptionpublic void setCursorName(String str) throws SQLException
setCursorName in interface StatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptionprotected ResultSet getResultSet(boolean wrap) throws SQLException
DelegatingResultSet, which is the default.SQLExceptionpublic int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionpublic boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic void setFetchDirection(int i)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptionpublic void setFetchSize(int i)
throws SQLException
setFetchSize in interface StatementSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLExceptionpublic int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLExceptionpublic int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLExceptionpublic void addBatch(String str) throws SQLException
addBatch in interface StatementSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface StatementSQLExceptionpublic ResultSet executeQuery() throws SQLException
executeQuery in interface PreparedStatementSQLExceptionprotected ResultSet executeQuery(boolean wrap) throws SQLException
DelegatingResultSet, which is the default.SQLExceptionpublic int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementSQLExceptionpublic void setNull(int i1,
int i2)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setBoolean(int i,
boolean b)
throws SQLException
setBoolean in interface PreparedStatementSQLExceptionpublic void setByte(int i,
byte b)
throws SQLException
setByte in interface PreparedStatementSQLExceptionpublic void setShort(int i,
short s)
throws SQLException
setShort in interface PreparedStatementSQLExceptionpublic void setInt(int i1,
int i2)
throws SQLException
setInt in interface PreparedStatementSQLExceptionpublic void setLong(int i,
long l)
throws SQLException
setLong in interface PreparedStatementSQLExceptionpublic void setFloat(int i,
float f)
throws SQLException
setFloat in interface PreparedStatementSQLExceptionpublic void setDouble(int i,
double d)
throws SQLException
setDouble in interface PreparedStatementSQLExceptionpublic void setBigDecimal(int i,
BigDecimal bd)
throws SQLException
setBigDecimal in interface PreparedStatementSQLExceptionpublic void setString(int i,
String s)
throws SQLException
setString in interface PreparedStatementSQLExceptionpublic void setBytes(int i,
byte[] b)
throws SQLException
setBytes in interface PreparedStatementSQLExceptionpublic void setDate(int i,
Date d)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setTime(int i,
Time t)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTimestamp(int i,
Timestamp t)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int i1,
InputStream is,
int i2)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setUnicodeStream(int i1,
InputStream is,
int i2)
throws SQLException
setUnicodeStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int i1,
InputStream is,
int i2)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void clearParameters()
throws SQLException
clearParameters in interface PreparedStatementSQLExceptionpublic void setObject(int i1,
Object o,
int i2,
int i3)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int i1,
Object o,
int i2)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int i,
Object o)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic boolean execute()
throws SQLException
execute in interface PreparedStatementSQLExceptionpublic void addBatch()
throws SQLException
addBatch in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int i1,
Reader r,
int i2)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setRef(int i,
Ref r)
throws SQLException
setRef in interface PreparedStatementSQLExceptionpublic void setBlob(int i,
Blob b)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setClob(int i,
Clob c)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setArray(int i,
Array a)
throws SQLException
setArray in interface PreparedStatementSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface PreparedStatementSQLExceptionpublic void setDate(int i,
Date d,
Calendar c)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setTime(int i,
Time t,
Calendar c)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTimestamp(int i,
Timestamp t,
Calendar c)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setNull(int i1,
int i2,
String s)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic boolean getMoreResults(int i)
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementSQLExceptionpublic int executeUpdate(String s, int i) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String s, int[] ia) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String s, String[] sa) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic boolean execute(String s, int i) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String s, int[] ia) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String s, String[] sa) throws SQLException
execute in interface StatementSQLExceptionpublic int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptionpublic void setURL(int i,
URL url)
throws SQLException
setURL in interface PreparedStatementSQLExceptionpublic ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData in interface PreparedStatementSQLExceptionpublic void registerOutParameter(int i1,
int i2)
throws SQLException
registerOutParameter in interface CallableStatementSQLExceptionpublic void registerOutParameter(int i1,
int i2,
int i3)
throws SQLException
registerOutParameter in interface CallableStatementSQLExceptionpublic boolean wasNull()
throws SQLException
wasNull in interface CallableStatementSQLExceptionpublic String getString(int i) throws SQLException
getString in interface CallableStatementSQLExceptionpublic boolean getBoolean(int i)
throws SQLException
getBoolean in interface CallableStatementSQLExceptionpublic byte getByte(int i)
throws SQLException
getByte in interface CallableStatementSQLExceptionpublic short getShort(int i)
throws SQLException
getShort in interface CallableStatementSQLExceptionpublic int getInt(int i)
throws SQLException
getInt in interface CallableStatementSQLExceptionpublic long getLong(int i)
throws SQLException
getLong in interface CallableStatementSQLExceptionpublic float getFloat(int i)
throws SQLException
getFloat in interface CallableStatementSQLExceptionpublic double getDouble(int i)
throws SQLException
getDouble in interface CallableStatementSQLExceptionpublic BigDecimal getBigDecimal(int a, int b) throws SQLException
getBigDecimal(int parameterIndex) or
getBigDecimal(String parameterName)getBigDecimal in interface CallableStatementSQLExceptionpublic byte[] getBytes(int i)
throws SQLException
getBytes in interface CallableStatementSQLExceptionpublic Date getDate(int i) throws SQLException
getDate in interface CallableStatementSQLExceptionpublic Time getTime(int i) throws SQLException
getTime in interface CallableStatementSQLExceptionpublic Timestamp getTimestamp(int i) throws SQLException
getTimestamp in interface CallableStatementSQLExceptionpublic Object getObject(int i) throws SQLException
getObject in interface CallableStatementSQLExceptionpublic BigDecimal getBigDecimal(int i) throws SQLException
getBigDecimal in interface CallableStatementSQLExceptionpublic Object getObject(int i, Map<String,Class<?>> m) throws SQLException
getObject in interface CallableStatementSQLExceptionpublic Ref getRef(int i) throws SQLException
getRef in interface CallableStatementSQLExceptionpublic Blob getBlob(int i) throws SQLException
getBlob in interface CallableStatementSQLExceptionpublic Clob getClob(int i) throws SQLException
getClob in interface CallableStatementSQLExceptionpublic Array getArray(int i) throws SQLException
getArray in interface CallableStatementSQLExceptionpublic Date getDate(int i, Calendar c) throws SQLException
getDate in interface CallableStatementSQLExceptionpublic Time getTime(int i, Calendar c) throws SQLException
getTime in interface CallableStatementSQLExceptionpublic Timestamp getTimestamp(int i, Calendar c) throws SQLException
getTimestamp in interface CallableStatementSQLExceptionpublic void registerOutParameter(int i1,
int i2,
String s)
throws SQLException
registerOutParameter in interface CallableStatementSQLExceptionpublic void registerOutParameter(String s, int i) throws SQLException
registerOutParameter in interface CallableStatementSQLExceptionpublic void registerOutParameter(String s, int i1, int i2) throws SQLException
registerOutParameter in interface CallableStatementSQLExceptionpublic void registerOutParameter(String s1, int i, String s2) throws SQLException
registerOutParameter in interface CallableStatementSQLExceptionpublic URL getURL(int i) throws SQLException
getURL in interface CallableStatementSQLExceptionpublic void setURL(String a, URL b) throws SQLException
setURL in interface CallableStatementSQLExceptionpublic URL getURL(String a) throws SQLException
getURL in interface CallableStatementSQLExceptionpublic void setNull(String a, int b) throws SQLException
setNull in interface CallableStatementSQLExceptionpublic void setBoolean(String a, boolean b) throws SQLException
setBoolean in interface CallableStatementSQLExceptionpublic void setByte(String a, byte b) throws SQLException
setByte in interface CallableStatementSQLExceptionpublic void setShort(String a, short b) throws SQLException
setShort in interface CallableStatementSQLExceptionpublic void setInt(String a, int b) throws SQLException
setInt in interface CallableStatementSQLExceptionpublic void setLong(String a, long b) throws SQLException
setLong in interface CallableStatementSQLExceptionpublic void setFloat(String a, float b) throws SQLException
setFloat in interface CallableStatementSQLExceptionpublic void setDouble(String a, double b) throws SQLException
setDouble in interface CallableStatementSQLExceptionpublic void setBigDecimal(String a, BigDecimal b) throws SQLException
setBigDecimal in interface CallableStatementSQLExceptionpublic void setString(String a, String b) throws SQLException
setString in interface CallableStatementSQLExceptionpublic void setBytes(String a, byte[] b) throws SQLException
setBytes in interface CallableStatementSQLExceptionpublic void setDate(String a, Date b) throws SQLException
setDate in interface CallableStatementSQLExceptionpublic void setTime(String a, Time b) throws SQLException
setTime in interface CallableStatementSQLExceptionpublic void setTimestamp(String a, Timestamp b) throws SQLException
setTimestamp in interface CallableStatementSQLExceptionpublic void setAsciiStream(String a, InputStream b, int c) throws SQLException
setAsciiStream in interface CallableStatementSQLExceptionpublic void setBinaryStream(String a, InputStream b, int c) throws SQLException
setBinaryStream in interface CallableStatementSQLExceptionpublic void setObject(String a, Object b, int c, int d) throws SQLException
setObject in interface CallableStatementSQLExceptionpublic void setObject(String a, Object b, int c) throws SQLException
setObject in interface CallableStatementSQLExceptionpublic void setObject(String a, Object b) throws SQLException
setObject in interface CallableStatementSQLExceptionpublic void setCharacterStream(String a, Reader b, int c) throws SQLException
setCharacterStream in interface CallableStatementSQLExceptionpublic void setDate(String a, Date b, Calendar c) throws SQLException
setDate in interface CallableStatementSQLExceptionpublic void setTime(String a, Time b, Calendar c) throws SQLException
setTime in interface CallableStatementSQLExceptionpublic void setTimestamp(String a, Timestamp b, Calendar c) throws SQLException
setTimestamp in interface CallableStatementSQLExceptionpublic void setNull(String a, int b, String c) throws SQLException
setNull in interface CallableStatementSQLExceptionpublic String getString(String a) throws SQLException
getString in interface CallableStatementSQLExceptionpublic boolean getBoolean(String a) throws SQLException
getBoolean in interface CallableStatementSQLExceptionpublic byte getByte(String a) throws SQLException
getByte in interface CallableStatementSQLExceptionpublic short getShort(String a) throws SQLException
getShort in interface CallableStatementSQLExceptionpublic int getInt(String a) throws SQLException
getInt in interface CallableStatementSQLExceptionpublic long getLong(String a) throws SQLException
getLong in interface CallableStatementSQLExceptionpublic float getFloat(String a) throws SQLException
getFloat in interface CallableStatementSQLExceptionpublic double getDouble(String a) throws SQLException
getDouble in interface CallableStatementSQLExceptionpublic byte[] getBytes(String a) throws SQLException
getBytes in interface CallableStatementSQLExceptionpublic Date getDate(String a) throws SQLException
getDate in interface CallableStatementSQLExceptionpublic Time getTime(String a) throws SQLException
getTime in interface CallableStatementSQLExceptionpublic Timestamp getTimestamp(String a) throws SQLException
getTimestamp in interface CallableStatementSQLExceptionpublic Object getObject(String a) throws SQLException
getObject in interface CallableStatementSQLExceptionpublic BigDecimal getBigDecimal(String a) throws SQLException
getBigDecimal in interface CallableStatementSQLExceptionpublic Object getObject(String a, Map<String,Class<?>> b) throws SQLException
getObject in interface CallableStatementSQLExceptionpublic Ref getRef(String a) throws SQLException
getRef in interface CallableStatementSQLExceptionpublic Blob getBlob(String a) throws SQLException
getBlob in interface CallableStatementSQLExceptionpublic Clob getClob(String a) throws SQLException
getClob in interface CallableStatementSQLExceptionpublic Array getArray(String a) throws SQLException
getArray in interface CallableStatementSQLExceptionpublic Date getDate(String a, Calendar b) throws SQLException
getDate in interface CallableStatementSQLExceptionpublic Time getTime(String a, Calendar b) throws SQLException
getTime in interface CallableStatementSQLExceptionpublic Timestamp getTimestamp(String a, Calendar b) throws SQLException
getTimestamp in interface CallableStatementSQLExceptionpublic boolean isWrapperFor(Class iface)
isWrapperFor in interface WrapperCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.