com.p6spy.engine.spy

Class P6CallableStatement

public class P6CallableStatement extends P6PreparedStatement implements CallableStatement

Description: JDBC Driver Extension implementing CallableStatement. $Author: bradleydot $ $Revision: 1.5 $ $Date: 2003/08/04 20:18:23 $ $Id: P6CallableStatement.java,v 1.5 2003/08/04 20:18:23 bradleydot Exp $ $Source: /cvsroot/p6spy/p6spy/com/p6spy/engine/spy/P6CallableStatement.java,v $ $Log: P6CallableStatement.java,v $ Revision 1.5 2003/08/04 20:18:23 bradleydot Added calls to growvalues in registerOutParameters if they are outside the current array size. Revision 1.4 2003/06/03 19:20:24 cheechq removed unused imports Revision 1.3 2003/01/03 20:33:42 aarvesen Added getJDBC() method to return the underlying jdbc object. Revision 1.2 2002/12/06 22:40:13 aarvesen Extend P6Base. New factory registration in the constructor. Revision 1.1 2002/05/24 07:31:13 jeffgoke version 1 rewrite Revision 1.4 2002/04/18 06:54:39 jeffgoke added batch statement logging support Revision 1.3 2002/04/15 05:13:32 jeffgoke Simon Sadedin added timing support. Fixed bug where batch execute was not getting logged. Added result set timing. Updated the log format to include categories, and updated options to control the categories. Updated documentation. Revision 1.2 2002/04/11 04:18:03 jeffgoke fixed bug where callable & prepared were not passing their ancestors the correct constructor information Revision 1.1 2002/04/10 04:24:26 jeffgoke added support for callable statements and fixed numerous bugs that allowed the real class to be returned Revision 1.1.1.1 2002/04/07 04:52:25 jeffgoke no message Revision 1.2 2001-08-05 09:16:04-05 andy final version on the website Revision 1.1 2001-08-02 07:52:43-05 andy <> Revision 1.0 2001-08-02 06:37:42-05 andy Initial revision
Field Summary
protected StringcallableQuery
protected CallableStatementcallStmtPassthru
Constructor Summary
P6CallableStatement(P6Factory factory, CallableStatement statement, P6Connection conn, String query)
Method Summary
ArraygetArray(int p0)
ArraygetArray(String p0)
BigDecimalgetBigDecimal(int p0)
BigDecimalgetBigDecimal(int p0, int p1)
BigDecimalgetBigDecimal(String p0)
BlobgetBlob(int p0)
BlobgetBlob(String p0)
booleangetBoolean(int p0)
booleangetBoolean(String p0)
bytegetByte(int p0)
bytegetByte(String p0)
byte[]getBytes(int p0)
byte[]getBytes(String p0)
ClobgetClob(int p0)
ClobgetClob(String p0)
DategetDate(int p0)
DategetDate(int p0, Calendar calendar)
DategetDate(String p0)
DategetDate(String p0, Calendar p1)
doublegetDouble(int p0)
doublegetDouble(String p0)
floatgetFloat(int p0)
floatgetFloat(String p0)
intgetInt(int p0)
intgetInt(String p0)
StatementgetJDBC()
Returns the underlying JDBC object (in this case, a java.sql.CallableStatement).
longgetLong(int p0)
longgetLong(String p0)
ObjectgetObject(int p0)
ObjectgetObject(int p0, Map p1)
ObjectgetObject(String p0)
ObjectgetObject(String p0, Map p1)
RefgetRef(int p0)
RefgetRef(String p0)
shortgetShort(int p0)
shortgetShort(String p0)
StringgetString(int p0)
StringgetString(String p0)
TimegetTime(int p0)
TimegetTime(int p0, Calendar p1)
TimegetTime(String p0)
TimegetTime(String p0, Calendar p1)
TimestampgetTimestamp(int p0)
TimestampgetTimestamp(int p0, Calendar p1)
TimestampgetTimestamp(String p0)
TimestampgetTimestamp(String p0, Calendar p1)
URLgetURL(int p0)
URLgetURL(String p0)
voidregisterOutParameter(int p0, int p1)
voidregisterOutParameter(int p0, int p1, int p2)
voidregisterOutParameter(int p0, int p1, String p2)
voidregisterOutParameter(String p0, int p1)
voidregisterOutParameter(String p0, int p1, int p2)
voidregisterOutParameter(String p0, int p1, String p2)
voidsetAsciiStream(String p0, InputStream p1, int p2)
voidsetBigDecimal(String p0, BigDecimal p1)
voidsetBinaryStream(String p0, InputStream p1, int p2)
voidsetBoolean(String p0, boolean p1)
voidsetByte(String p0, byte p1)
voidsetBytes(String p0, byte[] p1)
voidsetCharacterStream(String p0, Reader p1, int p2)
voidsetDate(String p0, Date p1)
voidsetDate(String p0, Date p1, Calendar p2)
voidsetDouble(String p0, double p1)
voidsetFloat(String p0, float p1)
voidsetInt(String p0, int p1)
voidsetLong(String p0, long p1)
voidsetNull(String p0, int p1)
voidsetNull(String p0, int p1, String p2)
voidsetObject(String p0, Object p1, int p2, int p3)
voidsetObject(String p0, Object p1, int p2)
voidsetObject(String p0, Object p1)
voidsetShort(String p0, short p1)
voidsetString(String p0, String p1)
voidsetTime(String p0, Time p1)
voidsetTime(String p0, Time p1, Calendar p2)
voidsetTimestamp(String p0, Timestamp p1)
voidsetTimestamp(String p0, Timestamp p1, Calendar p2)
voidsetURL(String p0, URL p1)
booleanwasNull()

Field Detail

callableQuery

protected String callableQuery

callStmtPassthru

protected CallableStatement callStmtPassthru

Constructor Detail

P6CallableStatement

public P6CallableStatement(P6Factory factory, CallableStatement statement, P6Connection conn, String query)

Method Detail

getArray

public Array getArray(int p0)

getArray

public Array getArray(String p0)

getBigDecimal

public BigDecimal getBigDecimal(int p0)

getBigDecimal

public BigDecimal getBigDecimal(int p0, int p1)

getBigDecimal

public BigDecimal getBigDecimal(String p0)

getBlob

public Blob getBlob(int p0)

getBlob

public Blob getBlob(String p0)

getBoolean

public boolean getBoolean(int p0)

getBoolean

public boolean getBoolean(String p0)

getByte

public byte getByte(int p0)

getByte

public byte getByte(String p0)

getBytes

public byte[] getBytes(int p0)

getBytes

public byte[] getBytes(String p0)

getClob

public Clob getClob(int p0)

getClob

public Clob getClob(String p0)

getDate

public Date getDate(int p0)

getDate

public Date getDate(int p0, Calendar calendar)

getDate

public Date getDate(String p0)

getDate

public Date getDate(String p0, Calendar p1)

getDouble

public double getDouble(int p0)

getDouble

public double getDouble(String p0)

getFloat

public float getFloat(int p0)

getFloat

public float getFloat(String p0)

getInt

public int getInt(int p0)

getInt

public int getInt(String p0)

getJDBC

public Statement getJDBC()
Returns the underlying JDBC object (in this case, a java.sql.CallableStatement).

The returned object is a java.sql.Statement due to inheritance reasons, so you'll need to cast appropriately.

Returns: the wrapped JDBC object

getLong

public long getLong(int p0)

getLong

public long getLong(String p0)

getObject

public Object getObject(int p0)

getObject

public Object getObject(int p0, Map p1)

getObject

public Object getObject(String p0)

getObject

public Object getObject(String p0, Map p1)

getRef

public Ref getRef(int p0)

getRef

public Ref getRef(String p0)

getShort

public short getShort(int p0)

getShort

public short getShort(String p0)

getString

public String getString(int p0)

getString

public String getString(String p0)

getTime

public Time getTime(int p0)

getTime

public Time getTime(int p0, Calendar p1)

getTime

public Time getTime(String p0)

getTime

public Time getTime(String p0, Calendar p1)

getTimestamp

public Timestamp getTimestamp(int p0)

getTimestamp

public Timestamp getTimestamp(int p0, Calendar p1)

getTimestamp

public Timestamp getTimestamp(String p0)

getTimestamp

public Timestamp getTimestamp(String p0, Calendar p1)

getURL

public URL getURL(int p0)

getURL

public URL getURL(String p0)

registerOutParameter

public void registerOutParameter(int p0, int p1)

registerOutParameter

public void registerOutParameter(int p0, int p1, int p2)

registerOutParameter

public void registerOutParameter(int p0, int p1, String p2)

registerOutParameter

public void registerOutParameter(String p0, int p1)

registerOutParameter

public void registerOutParameter(String p0, int p1, int p2)

registerOutParameter

public void registerOutParameter(String p0, int p1, String p2)

setAsciiStream

public void setAsciiStream(String p0, InputStream p1, int p2)

setBigDecimal

public void setBigDecimal(String p0, BigDecimal p1)

setBinaryStream

public void setBinaryStream(String p0, InputStream p1, int p2)

setBoolean

public void setBoolean(String p0, boolean p1)

setByte

public void setByte(String p0, byte p1)

setBytes

public void setBytes(String p0, byte[] p1)

setCharacterStream

public void setCharacterStream(String p0, Reader p1, int p2)

setDate

public void setDate(String p0, Date p1)

setDate

public void setDate(String p0, Date p1, Calendar p2)

setDouble

public void setDouble(String p0, double p1)

setFloat

public void setFloat(String p0, float p1)

setInt

public void setInt(String p0, int p1)

setLong

public void setLong(String p0, long p1)

setNull

public void setNull(String p0, int p1)

setNull

public void setNull(String p0, int p1, String p2)

setObject

public void setObject(String p0, Object p1, int p2, int p3)

setObject

public void setObject(String p0, Object p1, int p2)

setObject

public void setObject(String p0, Object p1)

setShort

public void setShort(String p0, short p1)

setString

public void setString(String p0, String p1)

setTime

public void setTime(String p0, Time p1)

setTime

public void setTime(String p0, Time p1, Calendar p2)

setTimestamp

public void setTimestamp(String p0, Timestamp p1)

setTimestamp

public void setTimestamp(String p0, Timestamp p1, Calendar p2)

setURL

public void setURL(String p0, URL p1)

wasNull

public boolean wasNull()