BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.jdbc.oci
Class CallableStatement

java.lang.Object
  |
  +--weblogic.jdbc.oci.Statement
        |
        +--weblogic.jdbc.oci.PreparedStatement
              |
              +--weblogic.jdbc.oci.CallableStatement

public final class CallableStatement
extends weblogic.jdbc.oci.PreparedStatement
implements java.sql.CallableStatement, weblogic.jdbc.common.OracleCallableStatement

This class contains WebLogic extensions to JDBC to support the use of cursors as parameters in CallableStatements. Only those methods are documented here.

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.

Field Summary
protected  boolean lastvalnull
           
protected  boolean nullvalid
           
 
Fields inherited from class weblogic.jdbc.oci.Statement
binded, closed, connection, current_queryresult, cursorparams, doExtendedSQL, fetchsize, jdk_codeset, maxfieldsize, maxrows, ociconn, ocicursor, updatecnt, warnings
 
Method Summary
protected static java.lang.String checkJdbcSql(java.lang.String sql)
           
 boolean execute(java.lang.String parameterName, int b)
           
 boolean execute(java.lang.String parameterName, int[] b)
           
 boolean execute(java.lang.String parameterName, java.lang.String[] b)
           
 java.sql.Array getArray(int i)
           
 java.sql.Array getArray(java.lang.String parameterName)
           
 java.math.BigDecimal getBigDecimal(int parameterIndex)
           
 java.math.BigDecimal getBigDecimal(int parameterIndex, int scale)
           
 java.math.BigDecimal getBigDecimal(java.lang.String parameterName)
           
 java.sql.Blob getBlob(int parameterIndex)
           
 java.sql.Blob getBlob(java.lang.String parameterName)
           
 boolean getBoolean(int parameterIndex)
           
 boolean getBoolean(java.lang.String parameterName)
           
 byte getByte(int parameterIndex)
           
 byte getByte(java.lang.String parameterName)
           
 byte[] getBytes(int parameterIndex)
           
 byte[] getBytes(java.lang.String parameterName)
           
 java.sql.Clob getClob(int parameterIndex)
           
 java.sql.Clob getClob(java.lang.String parameterName)
           
 java.sql.Date getDate(int parameterIndex)
           
 java.sql.Date getDate(int parameterIndex, java.util.Calendar cal)
           
 java.sql.Date getDate(java.lang.String parameterName)
           
 java.sql.Date getDate(java.lang.String parameterName, java.util.Calendar b)
           
 double getDouble(int parameterIndex)
           
 double getDouble(java.lang.String parameterName)
           
 float getFloat(int parameterIndex)
           
 float getFloat(java.lang.String parameterName)
           
 java.sql.ResultSet getGeneratedKeys()
           
 int getInt(int parameterIndex)
           
 int getInt(java.lang.String parameterName)
           
 long getLong(int parameterIndex)
           
 long getLong(java.lang.String parameterName)
           
 boolean getMoreResults(int a)
           
 java.lang.Object getObject(int parameterIndex)
           
 java.lang.Object getObject(int i, java.util.Map map)
           
 java.lang.Object getObject(java.lang.String parameterName)
           
 java.lang.Object getObject(java.lang.String parameterName, java.util.Map b)
           
 java.sql.ParameterMetaData getParameterMetaData()
           
 java.sql.Ref getRef(int i)
           
 java.sql.Ref getRef(java.lang.String parameterName)
           
 java.sql.ResultSet getResultSet(int parameterIndex)
          Used to get a ResultSet back from a Stored Procedure which has had a Cursor bound to an OUT Parameter
 int getResultSetHoldability()
           
 short getShort(int parameterIndex)
           
 short getShort(java.lang.String parameterName)
           
 java.lang.String getString(int parameterIndex)
           
 java.lang.String getString(java.lang.String parameterName)
           
 java.sql.Time getTime(int parameterIndex)
           
 java.sql.Time getTime(int parameterIndex, java.util.Calendar cal)
           
 java.sql.Time getTime(java.lang.String parameterName)
           
 java.sql.Time getTime(java.lang.String parameterName, java.util.Calendar b)
           
 java.sql.Timestamp getTimestamp(int parameterIndex)
           
 java.sql.Timestamp getTimestamp(int parameterIndex, java.util.Calendar cal)
           
 java.sql.Timestamp getTimestamp(java.lang.String parameterName)
           
 java.sql.Timestamp getTimestamp(java.lang.String parameterName, java.util.Calendar b)
           
 java.net.URL getURL(int a)
           
 java.net.URL getURL(java.lang.String parameterName)
           
 void registerOutParameter(int parameterIndex, int sqlType)
           
 void registerOutParameter(int parameterIndex, int sqlType, int scale)
           
 void registerOutParameter(int parameterIndex, int sqlType, java.lang.String typeName)
           
 void registerOutParameter(java.lang.String parameterName, int b)
           
 void registerOutParameter(java.lang.String parameterName, int b, int c)
           
 void registerOutParameter(java.lang.String parameterName, int b, java.lang.String c)
           
 void setAsciiStream(java.lang.String parameterName, java.io.InputStream b, int c)
           
 void setBigDecimal(java.lang.String parameterName, java.math.BigDecimal b)
           
 void setBinaryStream(java.lang.String parameterName, java.io.InputStream b, int c)
           
 void setBoolean(java.lang.String parameterName, boolean b)
           
 void setByte(java.lang.String parameterName, byte b)
           
 void setBytes(java.lang.String parameterName, byte[] b)
           
 void setCharacterStream(java.lang.String parameterName, java.io.Reader b, int c)
           
 void setDate(java.lang.String parameterName, java.sql.Date b)
           
 void setDate(java.lang.String parameterName, java.sql.Date b, java.util.Calendar c)
           
 void setDouble(java.lang.String parameterName, double b)
           
 void setFloat(java.lang.String parameterName, float b)
           
 void setInt(java.lang.String parameterName, int b)
           
 void setLong(java.lang.String parameterName, long b)
           
 void setNull(java.lang.String parameterName, int b)
           
 void setNull(java.lang.String parameterName, int b, java.lang.String c)
           
 void setObject(java.lang.String parameterName, java.lang.Object b)
           
 void setObject(java.lang.String parameterName, java.lang.Object b, int c)
           
 void setObject(java.lang.String parameterName, java.lang.Object b, int c, int d)
           
 void setShort(java.lang.String parameterName, short b)
           
 void setString(java.lang.String parameterName, java.lang.String b)
           
 void setTime(java.lang.String parameterName, java.sql.Time b)
           
 void setTime(java.lang.String parameterName, java.sql.Time b, java.util.Calendar c)
           
 void setTimestamp(java.lang.String parameterName, java.sql.Timestamp c)
           
 void setTimestamp(java.lang.String parameterName, java.sql.Timestamp b, java.util.Calendar c)
           
 void setURL(int a, java.net.URL b)
           
 void setURL(java.lang.String parameterName, java.net.URL b)
           
 boolean wasNull()
           
 
Methods inherited from class weblogic.jdbc.oci.Statement
addBatch, addWarning, cancel, checkIfArgNull, checkIfClosed, clearWarnings, close_cursor, close, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, fetchSize, fetchSize, finalize, getConnection, getFetchDirection, getFetchSize, getMaxFieldSize, getMaxRows, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetType, getUpdateCount, getWarnings, parse, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setNull, setQueryTimeout
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastvalnull

protected boolean lastvalnull

nullvalid

protected boolean nullvalid
Method Detail

wasNull

public boolean wasNull()
                throws java.sql.SQLException
Specified by:
wasNull in interface java.sql.CallableStatement


getString

public java.lang.String getString(int parameterIndex)
                           throws java.sql.SQLException
Specified by:
getString in interface java.sql.CallableStatement


getBoolean

public boolean getBoolean(int parameterIndex)
                   throws java.sql.SQLException
Specified by:
getBoolean in interface java.sql.CallableStatement


getByte

public byte getByte(int parameterIndex)
             throws java.sql.SQLException
Specified by:
getByte in interface java.sql.CallableStatement


getShort

public short getShort(int parameterIndex)
               throws java.sql.SQLException
Specified by:
getShort in interface java.sql.CallableStatement


getInt

public int getInt(int parameterIndex)
           throws java.sql.SQLException
Specified by:
getInt in interface java.sql.CallableStatement


getLong

public long getLong(int parameterIndex)
             throws java.sql.SQLException
Specified by:
getLong in interface java.sql.CallableStatement


getFloat

public float getFloat(int parameterIndex)
               throws java.sql.SQLException
Specified by:
getFloat in interface java.sql.CallableStatement


getDouble

public double getDouble(int parameterIndex)
                 throws java.sql.SQLException
Specified by:
getDouble in interface java.sql.CallableStatement


getDate

public java.sql.Date getDate(int parameterIndex)
                      throws java.sql.SQLException
Specified by:
getDate in interface java.sql.CallableStatement


getTime

public java.sql.Time getTime(int parameterIndex)
                      throws java.sql.SQLException
Specified by:
getTime in interface java.sql.CallableStatement


getTimestamp

public java.sql.Timestamp getTimestamp(int parameterIndex)
                                throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.CallableStatement


getBigDecimal

public java.math.BigDecimal getBigDecimal(int parameterIndex,
                                          int scale)
                                   throws java.sql.SQLException
Specified by:
getBigDecimal in interface java.sql.CallableStatement


getBytes

public byte[] getBytes(int parameterIndex)
                throws java.sql.SQLException
Specified by:
getBytes in interface java.sql.CallableStatement


getObject

public java.lang.Object getObject(int parameterIndex)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.CallableStatement


checkJdbcSql

protected static java.lang.String checkJdbcSql(java.lang.String sql)
                                        throws java.sql.SQLException


getResultSet

public java.sql.ResultSet getResultSet(int parameterIndex)
                                throws java.sql.SQLException
Used to get a ResultSet back from a Stored Procedure which has had a Cursor bound to an OUT Parameter
Specified by:
getResultSet in interface weblogic.jdbc.common.OracleCallableStatement


registerOutParameter

public void registerOutParameter(int parameterIndex,
                                 int sqlType)
                          throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement


registerOutParameter

public void registerOutParameter(int parameterIndex,
                                 int sqlType,
                                 int scale)
                          throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement


getBlob

public java.sql.Blob getBlob(int parameterIndex)
                      throws java.sql.SQLException
Specified by:
getBlob in interface java.sql.CallableStatement


getClob

public java.sql.Clob getClob(int parameterIndex)
                      throws java.sql.SQLException
Specified by:
getClob in interface java.sql.CallableStatement


getBigDecimal

public java.math.BigDecimal getBigDecimal(int parameterIndex)
                                   throws java.sql.SQLException
Specified by:
getBigDecimal in interface java.sql.CallableStatement


getObject

public java.lang.Object getObject(int i,
                                  java.util.Map map)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.CallableStatement


getRef

public java.sql.Ref getRef(int i)
                    throws java.sql.SQLException
Specified by:
getRef in interface java.sql.CallableStatement


getArray

public java.sql.Array getArray(int i)
                        throws java.sql.SQLException
Specified by:
getArray in interface java.sql.CallableStatement


getDate

public java.sql.Date getDate(int parameterIndex,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Specified by:
getDate in interface java.sql.CallableStatement


getTime

public java.sql.Time getTime(int parameterIndex,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Specified by:
getTime in interface java.sql.CallableStatement


getTimestamp

public java.sql.Timestamp getTimestamp(int parameterIndex,
                                       java.util.Calendar cal)
                                throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.CallableStatement


registerOutParameter

public void registerOutParameter(int parameterIndex,
                                 int sqlType,
                                 java.lang.String typeName)
                          throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement


execute

public boolean execute(java.lang.String parameterName,
                       int b)
                throws java.sql.SQLException

Overrides:
execute in class Statement

execute

public boolean execute(java.lang.String parameterName,
                       int[] b)
                throws java.sql.SQLException

Overrides:
execute in class Statement

execute

public boolean execute(java.lang.String parameterName,
                       java.lang.String[] b)
                throws java.sql.SQLException

Overrides:
execute in class Statement

getBoolean

public boolean getBoolean(java.lang.String parameterName)
                   throws java.sql.SQLException
Specified by:
getBoolean in interface java.sql.CallableStatement


getMoreResults

public boolean getMoreResults(int a)
                       throws java.sql.SQLException

Overrides:
getMoreResults in class Statement

getByte

public byte getByte(java.lang.String parameterName)
             throws java.sql.SQLException
Specified by:
getByte in interface java.sql.CallableStatement


getBytes

public byte[] getBytes(java.lang.String parameterName)
                throws java.sql.SQLException
Specified by:
getBytes in interface java.sql.CallableStatement


getDouble

public double getDouble(java.lang.String parameterName)
                 throws java.sql.SQLException
Specified by:
getDouble in interface java.sql.CallableStatement


getFloat

public float getFloat(java.lang.String parameterName)
               throws java.sql.SQLException
Specified by:
getFloat in interface java.sql.CallableStatement


getInt

public int getInt(java.lang.String parameterName)
           throws java.sql.SQLException
Specified by:
getInt in interface java.sql.CallableStatement


getResultSetHoldability

public int getResultSetHoldability()
                            throws java.sql.SQLException

Overrides:
getResultSetHoldability in class Statement

getObject

public java.lang.Object getObject(java.lang.String parameterName)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.CallableStatement


getObject

public java.lang.Object getObject(java.lang.String parameterName,
                                  java.util.Map b)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.CallableStatement


getString

public java.lang.String getString(java.lang.String parameterName)
                           throws java.sql.SQLException
Specified by:
getString in interface java.sql.CallableStatement


getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String parameterName)
                                   throws java.sql.SQLException
Specified by:
getBigDecimal in interface java.sql.CallableStatement


getURL

public java.net.URL getURL(int a)
                    throws java.sql.SQLException
Specified by:
getURL in interface java.sql.CallableStatement


getURL

public java.net.URL getURL(java.lang.String parameterName)
                    throws java.sql.SQLException
Specified by:
getURL in interface java.sql.CallableStatement


getArray

public java.sql.Array getArray(java.lang.String parameterName)
                        throws java.sql.SQLException
Specified by:
getArray in interface java.sql.CallableStatement


getBlob

public java.sql.Blob getBlob(java.lang.String parameterName)
                      throws java.sql.SQLException
Specified by:
getBlob in interface java.sql.CallableStatement


getClob

public java.sql.Clob getClob(java.lang.String parameterName)
                      throws java.sql.SQLException
Specified by:
getClob in interface java.sql.CallableStatement


getDate

public java.sql.Date getDate(java.lang.String parameterName)
                      throws java.sql.SQLException
Specified by:
getDate in interface java.sql.CallableStatement


getDate

public java.sql.Date getDate(java.lang.String parameterName,
                             java.util.Calendar b)
                      throws java.sql.SQLException
Specified by:
getDate in interface java.sql.CallableStatement


getParameterMetaData

public java.sql.ParameterMetaData getParameterMetaData()
                                                throws java.sql.SQLException

Overrides:
getParameterMetaData in class weblogic.jdbc.oci.PreparedStatement

getRef

public java.sql.Ref getRef(java.lang.String parameterName)
                    throws java.sql.SQLException
Specified by:
getRef in interface java.sql.CallableStatement


getGeneratedKeys

public java.sql.ResultSet getGeneratedKeys()
                                    throws java.sql.SQLException

Overrides:
getGeneratedKeys in class Statement

getTime

public java.sql.Time getTime(java.lang.String parameterName)
                      throws java.sql.SQLException
Specified by:
getTime in interface java.sql.CallableStatement


getTime

public java.sql.Time getTime(java.lang.String parameterName,
                             java.util.Calendar b)
                      throws java.sql.SQLException
Specified by:
getTime in interface java.sql.CallableStatement


getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String parameterName)
                                throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.CallableStatement


getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String parameterName,
                                       java.util.Calendar b)
                                throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.CallableStatement


getLong

public long getLong(java.lang.String parameterName)
             throws java.sql.SQLException
Specified by:
getLong in interface java.sql.CallableStatement


getShort

public short getShort(java.lang.String parameterName)
               throws java.sql.SQLException
Specified by:
getShort in interface java.sql.CallableStatement


registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int b)
                          throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement


registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int b,
                                 int c)
                          throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement


registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int b,
                                 java.lang.String c)
                          throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement


setAsciiStream

public void setAsciiStream(java.lang.String parameterName,
                           java.io.InputStream b,
                           int c)
                    throws java.sql.SQLException
Specified by:
setAsciiStream in interface java.sql.CallableStatement


setBigDecimal

public void setBigDecimal(java.lang.String parameterName,
                          java.math.BigDecimal b)
                   throws java.sql.SQLException
Specified by:
setBigDecimal in interface java.sql.CallableStatement


setBinaryStream

public void setBinaryStream(java.lang.String parameterName,
                            java.io.InputStream b,
                            int c)
                     throws java.sql.SQLException
Specified by:
setBinaryStream in interface java.sql.CallableStatement


setBoolean

public void setBoolean(java.lang.String parameterName,
                       boolean b)
                throws java.sql.SQLException
Specified by:
setBoolean in interface java.sql.CallableStatement


setByte

public void setByte(java.lang.String parameterName,
                    byte b)
             throws java.sql.SQLException
Specified by:
setByte in interface java.sql.CallableStatement


setBytes

public void setBytes(java.lang.String parameterName,
                     byte[] b)
              throws java.sql.SQLException
Specified by:
setBytes in interface java.sql.CallableStatement


setCharacterStream

public void setCharacterStream(java.lang.String parameterName,
                               java.io.Reader b,
                               int c)
                        throws java.sql.SQLException
Specified by:
setCharacterStream in interface java.sql.CallableStatement


setDate

public void setDate(java.lang.String parameterName,
                    java.sql.Date b)
             throws java.sql.SQLException
Specified by:
setDate in interface java.sql.CallableStatement


setDate

public void setDate(java.lang.String parameterName,
                    java.sql.Date b,
                    java.util.Calendar c)
             throws java.sql.SQLException
Specified by:
setDate in interface java.sql.CallableStatement


setDouble

public void setDouble(java.lang.String parameterName,
                      double b)
               throws java.sql.SQLException
Specified by:
setDouble in interface java.sql.CallableStatement


setFloat

public void setFloat(java.lang.String parameterName,
                     float b)
              throws java.sql.SQLException
Specified by:
setFloat in interface java.sql.CallableStatement


setInt

public void setInt(java.lang.String parameterName,
                   int b)
            throws java.sql.SQLException
Specified by:
setInt in interface java.sql.CallableStatement


setLong

public void setLong(java.lang.String parameterName,
                    long b)
             throws java.sql.SQLException
Specified by:
setLong in interface java.sql.CallableStatement


setNull

public void setNull(java.lang.String parameterName,
                    int b)
             throws java.sql.SQLException
Specified by:
setNull in interface java.sql.CallableStatement


setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object b)
               throws java.sql.SQLException
Specified by:
setObject in interface java.sql.CallableStatement


setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object b,
                      int c)
               throws java.sql.SQLException
Specified by:
setObject in interface java.sql.CallableStatement


setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object b,
                      int c,
                      int d)
               throws java.sql.SQLException
Specified by:
setObject in interface java.sql.CallableStatement


setShort

public void setShort(java.lang.String parameterName,
                     short b)
              throws java.sql.SQLException
Specified by:
setShort in interface java.sql.CallableStatement


setString

public void setString(java.lang.String parameterName,
                      java.lang.String b)
               throws java.sql.SQLException
Specified by:
setString in interface java.sql.CallableStatement


setTime

public void setTime(java.lang.String parameterName,
                    java.sql.Time b)
             throws java.sql.SQLException
Specified by:
setTime in interface java.sql.CallableStatement


setTime

public void setTime(java.lang.String parameterName,
                    java.sql.Time b,
                    java.util.Calendar c)
             throws java.sql.SQLException
Specified by:
setTime in interface java.sql.CallableStatement


setTimestamp

public void setTimestamp(java.lang.String parameterName,
                         java.sql.Timestamp c)
                  throws java.sql.SQLException
Specified by:
setTimestamp in interface java.sql.CallableStatement


setTimestamp

public void setTimestamp(java.lang.String parameterName,
                         java.sql.Timestamp b,
                         java.util.Calendar c)
                  throws java.sql.SQLException
Specified by:
setTimestamp in interface java.sql.CallableStatement


setURL

public void setURL(int a,
                   java.net.URL b)
            throws java.sql.SQLException

Overrides:
setURL in class weblogic.jdbc.oci.PreparedStatement

setURL

public void setURL(java.lang.String parameterName,
                   java.net.URL b)
            throws java.sql.SQLException
Specified by:
setURL in interface java.sql.CallableStatement


setNull

public void setNull(java.lang.String parameterName,
                    int b,
                    java.lang.String c)
             throws java.sql.SQLException
Specified by:
setNull in interface java.sql.CallableStatement


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b