Oracle10g JDBC

oracle.jdbc.driver
Class OracleCallableStatement

java.lang.Object
  extended byoracle.jdbc.driver.OracleStatement
      extended byoracle.jdbc.driver.OraclePreparedStatement
          extended byoracle.jdbc.driver.OracleCallableStatement
All Implemented Interfaces:
java.sql.CallableStatement, OracleCallableStatement, oracle.jdbc.internal.OracleCallableStatement, oracle.jdbc.internal.OraclePreparedStatement, OraclePreparedStatement, OracleStatement, oracle.jdbc.internal.OracleStatement, java.sql.PreparedStatement, oracle.jdbc.driver.ScrollRsetStatement, java.sql.Statement

public abstract class OracleCallableStatement
extends OraclePreparedStatement
implements oracle.jdbc.internal.OracleCallableStatement

Oracle callable statement.


Field Summary
static java.lang.String BUILD_DATE
           
static boolean PRIVATE_TRACE
           
static boolean TRACE
           
 
Fields inherited from class oracle.jdbc.driver.OraclePreparedStatement
TypeBinder_BYTELEN
 
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
 
Fields inherited from interface oracle.jdbc.OraclePreparedStatement
FORM_CHAR, FORM_NCHAR
 
Fields inherited from interface oracle.jdbc.OracleStatement
EXPLICIT, IMPLICIT, NEW
 
Fields inherited from interface oracle.jdbc.internal.OracleStatement
ACTIVE, CACHED, CLOSED, DEFAULT_RSET_TYPE, NON_CACHED
 
Method Summary
 void addBatch()
          Add a set of parameters to the batch.
 void clearParameters()
          In general, parameter values remain in force for repeated use of a Statement.
 boolean execute()
          Execute the statement.
 int executeUpdate()
          Execute the update statement.
 java.lang.Object getAnyDataEmbeddedObject(int parameterIndex)
          Retrieves data of an embedded object within AnyData
 java.sql.Array getArray(int parameterIndex)
           
 ARRAY getARRAY(int parameterIndex)
          Retrieves data into an oracle.sql.ARRAY object.
 java.sql.Array getArray(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC ARRAY parameter as an Array object in the Java programming language.
 java.io.InputStream getAsciiStream(int parameterIndex)
          Retrieves data into an java.io.InputStream object.
 BFILE getBFILE(int parameterIndex)
          Retrieves data into an oracle.sql.BFILE object.
 java.math.BigDecimal getBigDecimal(int parameterIndex)
           
 java.math.BigDecimal getBigDecimal(int parameterIndex, int scale)
           
 java.math.BigDecimal getBigDecimal(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.
 java.io.InputStream getBinaryStream(int parameterIndex)
          Retrieves data into an java.io.InputStream object.
 java.sql.Blob getBlob(int parameterIndex)
           
 BLOB getBLOB(int parameterIndex)
          Retrieves data into an oracle.sql.BLOB object.
 java.sql.Blob getBlob(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC BLOB parameter as a Blob object in the Java programming language.
 boolean getBoolean(int parameterIndex)
           
 boolean getBoolean(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC BIT parameter as a boolean in the Java programming language.
 byte getByte(int parameterIndex)
           
 byte getByte(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC TINYINT parameter as a byte in the Java programming language.
 byte[] getBytes(int parameterIndex)
           
 byte[] getBytes(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.
 CHAR getCHAR(int parameterIndex)
          Retrieves data into an oracle.sql.CHAR object.
 java.io.Reader getCharacterStream(int parameterIndex)
          Retrieves data into an java.io.Reader object.
 java.sql.Clob getClob(int parameterIndex)
           
 CLOB getCLOB(int parameterIndex)
          Retrieves data into an oracle.sql.CLOB object.
 java.sql.Clob getClob(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC CLOB parameter as a Clob object in the Java programming language.
 java.sql.ResultSet getCursor(int parameterIndex)
          Retrieves data into an java.sql.ResultSet object.
 java.lang.Object getCustomDatum(int parameterIndex, CustomDatumFactory factory)
           
 java.sql.Date getDate(int parameterIndex)
           
 DATE getDATE(int parameterIndex)
          Retrieves data into an oracle.sql.DATE object.
 java.sql.Date getDate(int parameterIndex, java.util.Calendar cal)
           
 java.sql.Date getDate(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC DATE parameter as a java.sql.Date object.
 java.sql.Date getDate(java.lang.String parameterName, java.util.Calendar cal)
          JDBC 3.0 Retrieves the value of a JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date.
 double getDouble(int parameterIndex)
           
 double getDouble(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC DOUBLE parameter as a double in the Java programming language.
 float getFloat(int parameterIndex)
           
 float getFloat(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC FLOAT parameter as a float in the Java programming language.
 int getInt(int parameterIndex)
           
 int getInt(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC INTEGER parameter as an int in the Java programming language.
 INTERVALDS getINTERVALDS(int parameterIndex)
          Retrieves data into an oracle.sql.INTERVALDS object.
 INTERVALYM getINTERVALYM(int parameterIndex)
          Retrieves data into an oracle.sql.INTERVALYM object.
 long getLong(int parameterIndex)
           
 long getLong(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC BIGINT parameter as a long in the Java programming language.
 NUMBER getNUMBER(int parameterIndex)
          Retrieves data into an oracle.sql.NUMBER object.
 java.lang.Object getObject(int parameterIndex)
           
 java.lang.Object getObject(int parameterIndex, java.util.Map map)
           
 java.lang.Object getObject(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a parameter as an Object in the Java programming language.
 java.lang.Object getObject(java.lang.String parameterName, java.util.Map map)
          JDBC 3.0 Returns an object representing the value of OUT parameter i and uses map for the custom mapping of the parameter value.
 OPAQUE getOPAQUE(int parameterIndex)
          Retrieves data into an oracle.sql.OPAQUE object.
 Datum getOracleObject(int parameterIndex)
          Retrieves data into an oracle.sql.Datum object.
 Datum[] getOraclePlsqlIndexTable(int parameterIndex)
          Oracle OCI driver specific.
 java.lang.Object getORAData(int parameterIndex, ORADataFactory factory)
           
 java.lang.Object getPlsqlIndexTable(int paramIndex)
          Oracle OCI driver specific.
 java.lang.Object getPlsqlIndexTable(int paramIndex, java.lang.Class primitiveType)
          Oracle OCI driver specific.
 RAW getRAW(int parameterIndex)
          Retrieves data into an oracle.sql.RAW object.
 java.sql.Ref getRef(int parameterIndex)
           
 REF getREF(int parameterIndex)
          Retrieves data into an oracle.sql.REF object.
 java.sql.Ref getRef(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC REF(<structured-type>) parameter as a Ref object in the Java programming language.
 ROWID getROWID(int parameterIndex)
          Retrieves data into an oracle.sql.ROWID object.
 short getShort(int parameterIndex)
           
 short getShort(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language.
 java.lang.String getString(int parameterIndex)
           
 java.lang.String getString(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language.
 STRUCT getSTRUCT(int parameterIndex)
          Retrieves data into an oracle.sql.STRUCT object.
 java.sql.Time getTime(int parameterIndex)
           
 java.sql.Time getTime(int parameterIndex, java.util.Calendar cal)
           
 java.sql.Time getTime(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC TIME parameter as a java.sql.Time object.
 java.sql.Time getTime(java.lang.String parameterName, java.util.Calendar cal)
          JDBC 3.0 Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time.
 java.sql.Timestamp getTimestamp(int parameterIndex)
           
 TIMESTAMP getTIMESTAMP(int parameterIndex)
          Retrieves data into an oracle.sql.TIMESTAMP object.
 java.sql.Timestamp getTimestamp(int parameterIndex, java.util.Calendar cal)
           
 java.sql.Timestamp getTimestamp(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object.
 java.sql.Timestamp getTimestamp(java.lang.String parameterName, java.util.Calendar cal)
          JDBC 3.0 Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.
 TIMESTAMPLTZ getTIMESTAMPLTZ(int parameterIndex)
          Retrieves data into an oracle.sql.TIMESTAMPLTZ object.
 TIMESTAMPTZ getTIMESTAMPTZ(int parameterIndex)
          Retrieves data into an oracle.sql.TIMESTAMPTZ object.
 java.io.InputStream getUnicodeStream(int parameterIndex)
          Retrieves data into an java.io.InputStream object.
 java.net.URL getURL(int parameterIndex)
          JDBC 3.0 Retrieves the value of the designated JDBC DATALINK parameter as a java.net.URL object.
 java.net.URL getURL(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC DATALINK parameter as a java.net.URL object.
 void registerIndexTableOutParameter(int paramIndex, int maxLen, int elemSqlType, int elemMaxLen)
          Oracle OCI driver specific.
 void registerOutParameter(int paramIndex, int sqlType)
           
 void registerOutParameter(int paramIndex, int sqlType, int scale)
           
 void registerOutParameter(int paramIndex, int sqlType, int scale, int maxLength)
          Special Oracle version of registerOutParameter for registering CHAR, VARCHAR, LONG, RAW and LONG RAW columns.
 void registerOutParameter(int paramIndex, int sqlType, java.lang.String sqlName)
          Special Oracle version of registerOutParameter for registering Object columns.
 void registerOutParameter(java.lang.String parameterName, int sqlType)
          JDBC 3.0 Registers the OUT parameter named parameterName to the JDBC type sqlType.
 void registerOutParameter(java.lang.String parameterName, int sqlType, int scale)
          JDBC 3.0 Registers the parameter named parameterName to be of JDBC type sqlType.
 void registerOutParameter(java.lang.String parameterName, int sqlType, int scale, int maxLength)
          Special Oracle version of registerOutParameter for registering CHAR, VARCHAR, LONG, RAW and LONG RAW columns.
 void registerOutParameter(java.lang.String parameterName, int sqlType, java.lang.String typeName)
          JDBC 3.0 Registers the designated output parameter.
 void registerOutParameterBytes(int paramIndex, int sqlType, int scale, int maxLength)
          Special Oracle version of registerOutParameter for registering CHAR, VARCHAR, LONG, RAW and LONG RAW columns.
 void registerOutParameterChars(int paramIndex, int sqlType, int scale, int maxLength)
          Special Oracle version of registerOutParameter for registering CHAR, VARCHAR, LONG, RAW and LONG RAW columns.
 int sendBatch()
          Send the sets of parameters batched (for Oracle-style batching only).
 void setArray(int paramIndex, java.sql.Array x)
          JDBC 2.0.
 void setARRAY(int paramIndex, ARRAY x)
          Binds the designated parameter to a oracle.sql.ARRAY.
 void setAsciiStream(int paramIndex, java.io.InputStream x, int y)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setAsciiStream(java.lang.String parameterName, java.io.InputStream x, int length)
          JDBC 3.0 Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setBfile(int paramIndex, BFILE x)
          Binds the designated parameter to a oracle.sql.BFILE value.
 void setBFILE(int paramIndex, BFILE x)
          Binds the designated parameter to a oracle.sql.BFILE value.
 void setBigDecimal(int paramIndex, java.math.BigDecimal x)
          Sets the designated parameter to a java.math.BigDecimal value.
 void setBigDecimal(java.lang.String parameterName, java.math.BigDecimal x)
          JDBC 3.0 Sets the designated parameter to the given java.math.BigDecimal value.
 void setBinaryDouble(int paramIndex, BINARY_DOUBLE x)
          Sets the designated parameter to an oracle.sql.BINARY_DOUBLE value.
 void setBinaryDouble(int paramIndex, double x)
          Sets the designated parameter to a Java Double value.
 void setBinaryDouble(java.lang.String parameterName, BINARY_DOUBLE x)
          Sets the designated parameter to the given oracle.sql.BINARY_FLOAT value.
 void setBinaryDouble(java.lang.String parameterName, double x)
          Sets the designated parameter to the given Java double value.
 void setBinaryFloat(int paramIndex, BINARY_FLOAT x)
          Sets the designated parameter to an oracle.sql.BINARY_FLOAT value.
 void setBinaryFloat(int paramIndex, float x)
          Sets the designated parameter to a Java Float value.
 void setBinaryFloat(java.lang.String parameterName, BINARY_FLOAT x)
          Sets the designated parameter to the given oracle.sql.BINARY_FLOAT value.
 void setBinaryFloat(java.lang.String parameterName, float x)
          Sets the designated parameter to the given Java float value.
 void setBinaryStream(int paramIndex, java.io.InputStream x, int y)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setBinaryStream(java.lang.String parameterName, java.io.InputStream x, int length)
          JDBC 3.0 Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setBlob(int paramIndex, java.sql.Blob x)
          JDBC 2.0.
 void setBLOB(int paramIndex, BLOB x)
          Binds the designated parameter to a oracle.sql.BLOB value.
 void setBoolean(int paramIndex, boolean x)
          Sets the designated parameter to a Java boolean value.
 void setBoolean(java.lang.String parameterName, boolean x)
          JDBC 3.0 Sets the designated parameter to the given Java boolean value.
 void setByte(int paramIndex, byte x)
          Sets the designated parameter to a Java byte value.
 void setByte(java.lang.String parameterName, byte x)
          JDBC 3.0 Sets the designated parameter to the given Java byte value.
 void setBytes(int paramIndex, byte[] x)
          Sets the designated parameter to a Java array of bytes.
 void setBytes(java.lang.String parameterName, byte[] x)
          JDBC 3.0 Sets the designated parameter to the given Java array of bytes.
 void setCHAR(int paramIndex, CHAR x)
          Binds the designated parameter to a oracle.sql.CHAR value.
 void setCharacterStream(int paramIndex, java.io.Reader x, int y)
          JDBC 2.0 Sets the designated parameter to the given Reader object, which is the given number of characters long.
 void setCharacterStream(java.lang.String parameterName, java.io.Reader reader, int length)
          JDBC 3.0 Sets the designated parameter to the given Reader object, which is the given number of characters long.
 void setClob(int paramIndex, java.sql.Clob x)
          JDBC 2.0.
 void setCLOB(int paramIndex, CLOB x)
          Binds the designated parameter to a oracle.sql.CLOB value.
 void setCursor(int paramIndex, java.sql.ResultSet x)
          Binds the designated parameter to a java.sql.ResultSet.
 void setCustomDatum(int paramIndex, CustomDatum x)
          Binds the designated parameter to a oracle.sql.CustomDatum value.
 void setDate(int paramIndex, java.sql.Date x)
          Sets the designated parameter to a java.sql.Date value.
 void setDATE(int paramIndex, DATE x)
          Binds the designated parameter to a oracle.sql.DATE value.
 void setDate(int paramIndex, java.sql.Date x, java.util.Calendar y)
          JDBC 2.0 Sets the designated parameter to a java.sql.Date value, using the given Calendar object.
 void setDate(java.lang.String parameterName, java.sql.Date x)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Date value.
 void setDate(java.lang.String parameterName, java.sql.Date x, java.util.Calendar cal)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Date value, using the given Calendar object.
 void setDouble(int paramIndex, double x)
          Sets the designated parameter to a Java double value.
 void setDouble(java.lang.String parameterName, double x)
          JDBC 3.0 Sets the designated parameter to the given Java double value.
 void setExecuteBatch(int nrows)
          Set the batch value (for Oracle-style batching only).
 void setFixedCHAR(int paramIndex, java.lang.String x)
          Sets the disignated parameter to a String and executes a non-padded comparison with a SQL CHAR.
 void setFloat(int paramIndex, float x)
          Sets the designated parameter to a Java float value.
 void setFloat(java.lang.String parameterName, float x)
          JDBC 3.0 Sets the designated parameter to the given Java float value.
 void setInt(int paramIndex, int x)
          Sets the designated parameter to a Java int value.
 void setInt(java.lang.String parameterName, int x)
          JDBC 3.0 Sets the designated parameter to the given Java int value.
 void setInternalBytes(int paramIndex, byte[] x, int y)
           
 void setINTERVALDS(int paramIndex, INTERVALDS x)
          Binds the designated parameter to an oracle.sql.INTERVALDS value.
 void setINTERVALYM(int paramIndex, INTERVALYM x)
          Binds the designated parameter to an oracle.sql.INTERVALYM value.
 void setLong(int paramIndex, long x)
          Sets the designated parameter to a Java long value.
 void setLong(java.lang.String parameterName, long x)
          JDBC 3.0 Sets the designated parameter to the given Java long value.
 void setNull(int paramIndex, int x)
          Sets the designated parameter to SQL NULL.
 void setNull(int paramIndex, int x, java.lang.String y)
          Implements JDBC 2.0 setNull for object types.
 void setNull(java.lang.String parameterName, int sqlType)
          JDBC 3.0 Sets the designated parameter to SQL NULL.
 void setNull(java.lang.String parameterName, int sqlType, java.lang.String typeName)
          JDBC 3.0 Sets the designated parameter to SQL NULL.
 void setNUMBER(int paramIndex, NUMBER x)
          Binds the designated parameter to a oracle.sql.NUMBER value.
 void setObject(int paramIndex, java.lang.Object x)
          Sets the value of the designated parameter with the given object.
 void setObject(int paramIndex, java.lang.Object x, int y)
          Sets the value of the designated parameter with the given object.
 void setObject(int paramIndex, java.lang.Object x, int y, int z)
          Sets the value of a parameter using an object.
 void setObject(java.lang.String parameterName, java.lang.Object x)
          JDBC 3.0 Sets the value of the designated parameter with the given object.
 void setObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType)
          JDBC 3.0 Sets the value of the designated parameter with the given object.
 void setObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType, int scale)
          JDBC 3.0 Sets the value of the designated parameter with the given object.
 void setOPAQUE(int paramIndex, OPAQUE x)
          Binds the designated parameter to a oracle.sql.OPAQUE value.
 void setOracleObject(int paramIndex, Datum x)
          Binds the designated parameter to a oracle.sql.Datum value.
 void setORAData(int paramIndex, ORAData x)
          Binds the designated parameter to a oracle.sql.ORAData value.
 void setPlsqlIndexTable(int paramIndex, java.lang.Object arrayData, int maxLen, int curLen, int elemSqlType, int elemMaxLen)
          Binds a PL/SQL index-by table parameter in the IN parameter mode.
 void setRAW(int paramIndex, RAW x)
          Binds the designated parameter to a oracle.sql.RAW value.
 void setRef(int paramIndex, java.sql.Ref x)
          JDBC 2.0 Sets a Ref(<structured-type>) parameter.
 void setREF(int paramIndex, REF x)
          Binds the designated parameter to a oracle.sql.REF value.
 void setRefType(int paramIndex, REF x)
          Binds the designated parameter to a oracle.sql.REF value.
 void setROWID(int paramIndex, ROWID x)
          Binds the designated parameter to a oracle.sql.ROWID value.
 void setShort(int paramIndex, short x)
          Sets the designated parameter to a Java short value.
 void setShort(java.lang.String parameterName, short x)
          JDBC 3.0 Sets the designated parameter to the given Java short value.
 void setString(int paramIndex, java.lang.String x)
          Sets the designated parameter to a Java String value.
 void setString(java.lang.String parameterName, java.lang.String x)
          JDBC 3.0 Sets the designated parameter to the given Java String value.
 void setStringForClob(java.lang.String parameterName, java.lang.String x)
          Sets the designated parameter to the given Java String value.
 void setSTRUCT(int paramIndex, STRUCT x)
          Binds the designated parameter to a oracle.sql.STRUCT value.
 void setStructDescriptor(int paramIndex, StructDescriptor x)
          Binds the bind type of designated parameter from an oracle.sql.StructDescriptor.
 void setTime(int paramIndex, java.sql.Time x)
          Sets the designated parameter to a java.sql.Time value.
 void setTime(int paramIndex, java.sql.Time x, java.util.Calendar y)
          JDBC 2.0 Sets the designated parameter to a java.sql.Time value, using the given Calendar object.
 void setTime(java.lang.String parameterName, java.sql.Time x)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Time value.
 void setTime(java.lang.String parameterName, java.sql.Time x, java.util.Calendar cal)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Time value, using the given Calendar object.
 void setTimestamp(int paramIndex, java.sql.Timestamp x)
          Sets the designated parameter to a java.sql.Timestamp value.
 void setTIMESTAMP(int paramIndex, TIMESTAMP x)
          Binds the designated parameter to an oracle.sql.TIMESTAMP value.
 void setTimestamp(int paramIndex, java.sql.Timestamp x, java.util.Calendar y)
          JDBC 2.0 Sets the designated parameter to a java.sql.Timestamp value, using the given Calendar object.
 void setTimestamp(java.lang.String parameterName, java.sql.Timestamp x)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Timestamp value.
 void setTimestamp(java.lang.String parameterName, java.sql.Timestamp x, java.util.Calendar cal)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object.
 void setTIMESTAMPLTZ(int paramIndex, TIMESTAMPLTZ x)
          Binds the designated parameter to an oracle.sql.TIMESTAMPLTZ value.
 void setTIMESTAMPTZ(int paramIndex, TIMESTAMPTZ x)
          Binds the designated parameter to an oracle.sql.TIMESTAMPTZ value.
 void setUnicodeStream(int paramIndex, java.io.InputStream x, int y)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setURL(int paramIndex, java.net.URL x)
          JDBC 3.0 Sets the designated parameter to the given java.net.URL value.
 void setURL(java.lang.String parameterName, java.net.URL val)
          JDBC 3.0 Sets the designated parameter to the given java.net.URL object.
 boolean wasNull()
           
 
Methods inherited from class oracle.jdbc.driver.OraclePreparedStatement
addBatch, clearBatch, closeWithKey, defineParameterType, defineParameterTypeBytes, defineParameterTypeChars, enterExplicitCache, executeBatch, executeQuery, exitExplicitCacheToActive, exitExplicitCacheToClose, exitImplicitCacheToActive, exitImplicitCacheToClose, getAutoRefetch, getConnection, getExecuteBatch, getMaxFieldSize, getMetaData, getOriginalSql, getParameterMetaData, getResultSetCache, getRevisedSql, notify_close_rset, OracleGetParameterMetaData, setArrayAtName, setARRAYAtName, setAsciiStreamAtName, setAutoRefetch, setBfileAtName, setBFILEAtName, setBigDecimalAtName, setBinaryDoubleAtName, setBinaryDoubleAtName, setBinaryFloatAtName, setBinaryFloatAtName, setBinaryStreamAtName, setBlobAtName, setBLOBAtName, setBooleanAtName, setByteAtName, setBytesAtName, setCHARAtName, setClobAtName, setCLOBAtName, setCursorAtName, setCustomDatumAtName, setDateAtName, setDATEAtName, setDisableStmtCaching, setDoubleAtName, setEscapeProcessing, setFixedCHARAtName, setFloatAtName, setFormOfUse, setIntAtName, setINTERVALDSAtName, setINTERVALYMAtName, setLongAtName, setNullAtName, setNullAtName, setNUMBERAtName, setObjectAtName, setObjectAtName, setObjectAtName, setOPAQUEAtName, setOracleObjectAtName, setORADataAtName, setPlsqlIndexTableAtName, setRAWAtName, setRefAtName, setREFAtName, setRefTypeAtName, setROWIDAtName, setShortAtName, setStringAtName, setStringForClob, setStringForClobAtName, setSTRUCTAtName, setStructDescriptorAtName, setTimeAtName, setTimestampAtName, setTIMESTAMPAtName, setTIMESTAMPLTZAtName, setTIMESTAMPTZAtName, setUnicodeStreamAtName, setURLAtName
 
Methods inherited from class oracle.jdbc.driver.OracleStatement
cancel, clearDefines, clearWarnings, close, defineColumnType, defineColumnType, defineColumnType, defineColumnType, defineColumnTypeBytes, defineColumnTypeChars, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getcacheState, getFetchDirection, getFetchSize, getFixedString, getGeneratedKeys, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getRowPrefetch, getserverCursor, getstatementType, getUpdateCount, getWarnings, isNCHAR, setCursorName, setFetchDirection, setFetchSize, setFixedString, setMaxFieldSize, setMaxRows, setQueryTimeout, setResultSetCache, setResultSetCache, setRowPrefetch
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.PreparedStatement
executeQuery, getMetaData, getParameterMetaData
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 
Methods inherited from interface oracle.jdbc.OraclePreparedStatement
defineParameterType, defineParameterTypeBytes, defineParameterTypeChars, getExecuteBatch, OracleGetParameterMetaData, setArrayAtName, setARRAYAtName, setAsciiStreamAtName, setBfileAtName, setBFILEAtName, setBigDecimalAtName, setBinaryDoubleAtName, setBinaryDoubleAtName, setBinaryFloatAtName, setBinaryFloatAtName, setBinaryStreamAtName, setBlobAtName, setBLOBAtName, setBooleanAtName, setByteAtName, setBytesAtName, setCHARAtName, setCheckBindTypes, setClobAtName, setCLOBAtName, setCursorAtName, setCustomDatumAtName, setDateAtName, setDATEAtName, setDisableStmtCaching, setDoubleAtName, setFixedCHARAtName, setFloatAtName, setFormOfUse, setIntAtName, setINTERVALDSAtName, setINTERVALYMAtName, setLongAtName, setNullAtName, setNullAtName, setNUMBERAtName, setObjectAtName, setObjectAtName, setObjectAtName, setOPAQUEAtName, setOracleObjectAtName, setORADataAtName, setRAWAtName, setRefAtName, setREFAtName, setRefTypeAtName, setROWIDAtName, setShortAtName, setStringAtName, setStringForClob, setStringForClobAtName, setSTRUCTAtName, setStructDescriptorAtName, setTimeAtName, setTimestampAtName, setTIMESTAMPAtName, setTIMESTAMPLTZAtName, setTIMESTAMPTZAtName, setUnicodeStreamAtName, setURLAtName
 
Methods inherited from interface oracle.jdbc.OracleStatement
clearDefines, closeWithKey, creationState, defineColumnType, defineColumnType, defineColumnType, defineColumnType, defineColumnTypeBytes, defineColumnTypeChars, getRowPrefetch, isNCHAR, setResultSetCache, setRowPrefetch
 
Methods inherited from interface oracle.jdbc.internal.OraclePreparedStatement
enterExplicitCache, enterImplicitCache, exitExplicitCacheToActive, exitExplicitCacheToClose, exitImplicitCacheToActive, exitImplicitCacheToClose, setCheckBindTypes
 
Methods inherited from interface oracle.jdbc.internal.OracleStatement
getcacheState, getFixedString, getserverCursor, getstatementType, setFixedString
 

Field Detail

TRACE

public static final boolean TRACE
See Also:
Constant Field Values

PRIVATE_TRACE

public static final boolean PRIVATE_TRACE
See Also:
Constant Field Values

BUILD_DATE

public static final java.lang.String BUILD_DATE
See Also:
Constant Field Values
Method Detail

registerOutParameter

public void registerOutParameter(int paramIndex,
                                 int sqlType,
                                 java.lang.String sqlName)
                          throws java.sql.SQLException
Special Oracle version of registerOutParameter for registering Object columns.

Specified by:
registerOutParameter in interface java.sql.CallableStatement
Parameters:
paramIndex - parameter index.
sqlType - use OracleTypes.STRUCT, OracleTypes.ARRAY, OracleTypes.REF, or OracleTypes.OPAQUE.
sqlName - SQL name of the object.
Throws:
java.sql.SQLException - if sqlType is invalid, or an error occurred.

registerOutParameterBytes

public void registerOutParameterBytes(int paramIndex,
                                      int sqlType,
                                      int scale,
                                      int maxLength)
                               throws java.sql.SQLException
Special Oracle version of registerOutParameter for registering CHAR, VARCHAR, LONG, RAW and LONG RAW columns. This version accepts a maxLength parameter measured in bytes.

Specified by:
registerOutParameterBytes in interface OracleCallableStatement
Parameters:
paramIndex - parameter index (the first parameter is 1).
sqlType - type of the bind parameter
scale - not used
maxLength - maximum length of the column, specified in bytes. If not specified, maximum length allowed for that type is used.
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

registerOutParameterChars

public void registerOutParameterChars(int paramIndex,
                                      int sqlType,
                                      int scale,
                                      int maxLength)
                               throws java.sql.SQLException
Special Oracle version of registerOutParameter for registering CHAR, VARCHAR, LONG, RAW and LONG RAW columns. This version accepts a maxLength parameter measured in characters.

Specified by:
registerOutParameterChars in interface OracleCallableStatement
Parameters:
paramIndex - parameter index (the first parameter is 1).
sqlType - type of the bind parameter
scale - not used
maxLength - maximum length of the column, specified in characters. If not specified, maximum length allowed for that type is used.
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

registerOutParameter

public void registerOutParameter(int paramIndex,
                                 int sqlType,
                                 int scale,
                                 int maxLength)
                          throws java.sql.SQLException
Special Oracle version of registerOutParameter for registering CHAR, VARCHAR, LONG, RAW and LONG RAW columns. Depending on the value of PhysicalConnection.getDataSizeUnits(), maxLength will be measured in bytes or characters.

Specified by:
registerOutParameter in interface OracleCallableStatement
Parameters:
paramIndex - parameter index (the first parameter is 1).
sqlType - type of the bind parameter
scale - not used
maxLength - maximum length of the column, specified in bytes or characters.
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int sqlType,
                                 int scale,
                                 int maxLength)
                          throws java.sql.SQLException
Special Oracle version of registerOutParameter for registering CHAR, VARCHAR, LONG, RAW and LONG RAW columns. Depending on the value of PhysicalConnection.getDataSizeUnits(), maxLength will be measured in bytes or characters.

Specified by:
registerOutParameter in interface OracleCallableStatement
Parameters:
parameterName - the name of the parameter
sqlType - SQL type code defined by java.sql.Types.
scale - the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.
maxLength - maximum length of the column, specified in bytes or characters.
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

setExecuteBatch

public void setExecuteBatch(int nrows)
                     throws java.sql.SQLException
Set the batch value (for Oracle-style batching only).

Oracle-style batching is not supported for a callable statement. This method always sets the batch value to 1.

Specified by:
setExecuteBatch in interface OracleCallableStatement
Overrides:
setExecuteBatch in class OraclePreparedStatement
Parameters:
nrows - batch value to be set. It must be greater than or equal to 1.
Throws:
java.sql.SQLException

sendBatch

public int sendBatch()
              throws java.sql.SQLException
Send the sets of parameters batched (for Oracle-style batching only).

Oracle-style batching is not supported for a callable statement. This method simply returns the number of valid rows.

Specified by:
sendBatch in interface OracleCallableStatement
Overrides:
sendBatch in class OraclePreparedStatement
Returns:
the update count.
Throws:
java.sql.SQLException - if an error occurred.

registerOutParameter

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

registerOutParameter

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

wasNull

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

getString

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

getOracleObject

public Datum getOracleObject(int parameterIndex)
                      throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.Datum object.

Specified by:
getOracleObject in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.Datum
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getROWID

public ROWID getROWID(int parameterIndex)
               throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.ROWID object.

Specified by:
getROWID in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.ROWID
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getNUMBER

public NUMBER getNUMBER(int parameterIndex)
                 throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.NUMBER object.

Specified by:
getNUMBER in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.NUMBER
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getDATE

public DATE getDATE(int parameterIndex)
             throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.DATE object.

Specified by:
getDATE in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.DATE
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getINTERVALYM

public INTERVALYM getINTERVALYM(int parameterIndex)
                         throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.INTERVALYM object.

Specified by:
getINTERVALYM in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.INTERVALYM
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getINTERVALDS

public INTERVALDS getINTERVALDS(int parameterIndex)
                         throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.INTERVALDS object.

Specified by:
getINTERVALDS in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.INTERVALDS
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getTIMESTAMP

public TIMESTAMP getTIMESTAMP(int parameterIndex)
                       throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.TIMESTAMP object.

Specified by:
getTIMESTAMP in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.TIMESTAMP
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getTIMESTAMPTZ

public TIMESTAMPTZ getTIMESTAMPTZ(int parameterIndex)
                           throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.TIMESTAMPTZ object.

Specified by:
getTIMESTAMPTZ in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.TIMESTAMPTZ
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getTIMESTAMPLTZ

public TIMESTAMPLTZ getTIMESTAMPLTZ(int parameterIndex)
                             throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.TIMESTAMPLTZ object.

Specified by:
getTIMESTAMPLTZ in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.TIMESTAMPLTZ
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getREF

public REF getREF(int parameterIndex)
           throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.REF object.

Specified by:
getREF in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.REF
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getARRAY

public ARRAY getARRAY(int parameterIndex)
               throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.ARRAY object.

Specified by:
getARRAY in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an ARRAY
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getSTRUCT

public STRUCT getSTRUCT(int parameterIndex)
                 throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.STRUCT object.

Specified by:
getSTRUCT in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.STRUCT
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getOPAQUE

public OPAQUE getOPAQUE(int parameterIndex)
                 throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.OPAQUE object.

Specified by:
getOPAQUE in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.OPAQUE
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getCHAR

public CHAR getCHAR(int parameterIndex)
             throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.CHAR object.

Specified by:
getCHAR in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.CHAR
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getCharacterStream

public java.io.Reader getCharacterStream(int parameterIndex)
                                  throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an java.io.Reader object.

Specified by:
getCharacterStream in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an java.io.Reader
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getRAW

public RAW getRAW(int parameterIndex)
           throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.RAW object.

Specified by:
getRAW in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.RAW
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getBLOB

public BLOB getBLOB(int parameterIndex)
             throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.BLOB object.

Specified by:
getBLOB in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.BLOB
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getCLOB

public CLOB getCLOB(int parameterIndex)
             throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.CLOB object.

Specified by:
getCLOB in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.CLOB
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getBFILE

public BFILE getBFILE(int parameterIndex)
               throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an oracle.sql.BFILE object.

Specified by:
getBFILE in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an oracle.sql.BFILE
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getBoolean

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

getByte

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

getShort

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

getInt

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

getLong

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

getFloat

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

getDouble

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

getBigDecimal

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

getBytes

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

getDate

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

getTime

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

getTimestamp

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

getAsciiStream

public java.io.InputStream getAsciiStream(int parameterIndex)
                                   throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an java.io.InputStream object.

Specified by:
getAsciiStream in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an java.io.InputStream
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getUnicodeStream

public java.io.InputStream getUnicodeStream(int parameterIndex)
                                     throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an java.io.InputStream object.

Specified by:
getUnicodeStream in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an java.io.InputStream
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getBinaryStream

public java.io.InputStream getBinaryStream(int parameterIndex)
                                    throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an java.io.InputStream object.

Specified by:
getBinaryStream in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an java.io.InputStream
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getObject

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

getAnyDataEmbeddedObject

public java.lang.Object getAnyDataEmbeddedObject(int parameterIndex)
                                          throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data of an embedded object within AnyData

Specified by:
getAnyDataEmbeddedObject in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1
Returns:
data depending on the embedded type in AnyData
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getCustomDatum

public java.lang.Object getCustomDatum(int parameterIndex,
                                       CustomDatumFactory factory)
                                throws java.sql.SQLException
Specified by:
getCustomDatum in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
factory -
Returns:
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getORAData

public java.lang.Object getORAData(int parameterIndex,
                                   ORADataFactory factory)
                            throws java.sql.SQLException
Specified by:
getORAData in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
factory -
Returns:
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

getCursor

public java.sql.ResultSet getCursor(int parameterIndex)
                             throws java.sql.SQLException
Description copied from interface: OracleCallableStatement
Retrieves data into an java.sql.ResultSet object.

Specified by:
getCursor in interface OracleCallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, and so on
Returns:
data into an java.sql.ResultSet
Throws:
java.sql.SQLException - if an error occurs (conversion or database-access error)

clearParameters

public void clearParameters()
                     throws java.sql.SQLException
Description copied from class: OraclePreparedStatement

In general, parameter values remain in force for repeated use of a Statement. Setting a parameter value automatically clears its previous value. However, in some cases it is useful to immediately release the resources used by the current parameter values; this can be done by calling clearParameters.

Specified by:
clearParameters in interface java.sql.PreparedStatement
Overrides:
clearParameters in class OraclePreparedStatement
Throws:
java.sql.SQLException

getObject

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

getRef

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

getBlob

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

getClob

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

getArray

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

getBigDecimal

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

getDate

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

getTime

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

getTimestamp

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

addBatch

public void addBatch()
              throws java.sql.SQLException
Add a set of parameters to the batch.

Specified by:
addBatch in interface java.sql.PreparedStatement
Overrides:
addBatch in class OraclePreparedStatement
Throws:
java.sql.SQLException - if an error occurred. Note that stored procedures with out or inout parameters cannot be batched.
Since:
8.1.6 (JDBC 2.0).

registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int sqlType)
                          throws java.sql.SQLException
JDBC 3.0 Registers the OUT parameter named parameterName to the JDBC type sqlType. All OUT parameters must be registered before a stored procedure is executed.

The JDBC type specified by sqlType for an OUT parameter determines the Java type that must be used in the get method to read the value of that parameter.

If the JDBC type expected to be returned to this output parameter is specific to this particular database, sqlType should be java.sql.Types.OTHER. The method getObject(int) retrieves the value.

Specified by:
registerOutParameter in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
sqlType - the JDBC type code defined by java.sql.Types. If the parameter is of JDBC type NUMERIC or DECIMAL, the version of registerOutParameter that accepts a scale value should be used.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
Types

registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int sqlType,
                                 int scale)
                          throws java.sql.SQLException
JDBC 3.0 Registers the parameter named parameterName to be of JDBC type sqlType. This method must be called before a stored procedure is executed.

The JDBC type specified by sqlType for an OUT parameter determines the Java type that must be used in the get method to read the value of that parameter.

This version of registerOutParameter should be used when the parameter is of JDBC type NUMERIC or DECIMAL.

Specified by:
registerOutParameter in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
sqlType - SQL type code defined by java.sql.Types.
scale - the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
Types

registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int sqlType,
                                 java.lang.String typeName)
                          throws java.sql.SQLException
JDBC 3.0 Registers the designated output parameter. This version of the method registerOutParameter should be used for a user-named or REF output parameter. Examples of user-named types include: STRUCT, DISTINCT, JAVA_OBJECT, and named array types. Before executing a stored procedure call, you must explicitly call registerOutParameter to register the type from java.sql.Types for each OUT parameter. For a user-named parameter the fully-qualified SQL type name of the parameter should also be given, while a REF parameter requires that the fully-qualified type name of the referenced type be given. A JDBC driver that does not need the type code and type name information may ignore it. To be portable, however, applications should always provide these values for user-named and REF parameters. Although it is intended for user-named and REF parameters, this method may be used to register a parameter of any JDBC type. If the parameter does not have a user-named or REF type, the typeName parameter is ignored.

Note: When reading the value of an out parameter, you must use the getXXX method whose Java type XXX corresponds to the parameter's registered SQL type.

Specified by:
registerOutParameter in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
sqlType - a value from Types
typeName - the fully-qualified name of an SQL structured type
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
Types

getURL

public java.net.URL getURL(int parameterIndex)
                    throws java.sql.SQLException
JDBC 3.0 Retrieves the value of the designated JDBC DATALINK parameter as a java.net.URL object.

Specified by:
getURL in interface java.sql.CallableStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2,...
Returns:
a java.net.URL object that represents the JDBC DATALINK value used as the designated parameter
Throws:
java.sql.SQLException - if a database access error occurs, or if the URL being returned is not a valid URL on the Java platform
Since:
9.0.2
See Also:
setURL(java.lang.String, java.net.URL)

setURL

public void setURL(java.lang.String parameterName,
                   java.net.URL val)
            throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.net.URL object. The driver converts this to an SQL DATALINK value when it sends it to the database.

Specified by:
setURL in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
val - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs, or if a URL is malformed
Since:
9.0.2
See Also:
getURL(int)

setNull

public void setNull(java.lang.String parameterName,
                    int sqlType)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to SQL NULL.

Note: You must specify the parameter's SQL type.

Specified by:
setNull in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
sqlType - the SQL type code defined in java.sql.Types
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2

setBoolean

public void setBoolean(java.lang.String parameterName,
                       boolean x)
                throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java boolean value. The driver converts this to an SQL BIT value when it sends it to the database.

Specified by:
setBoolean in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getBoolean(int)

setByte

public void setByte(java.lang.String parameterName,
                    byte x)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java byte value. The driver converts this to an SQL TINYINT value when it sends it to the database.

Specified by:
setByte in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getByte(int)

setShort

public void setShort(java.lang.String parameterName,
                     short x)
              throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java short value. The driver converts this to an SQL SMALLINT value when it sends it to the database.

Specified by:
setShort in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getShort(int)

setInt

public void setInt(java.lang.String parameterName,
                   int x)
            throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java int value. The driver converts this to an SQL INTEGER value when it sends it to the database.

Specified by:
setInt in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getInt(int)

setLong

public void setLong(java.lang.String parameterName,
                    long x)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java long value. The driver converts this to an SQL BIGINT value when it sends it to the database.

Specified by:
setLong in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getLong(int)

setFloat

public void setFloat(java.lang.String parameterName,
                     float x)
              throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java float value. The driver converts this to an SQL FLOAT value when it sends it to the database.

Specified by:
setFloat in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getFloat(int)

setBinaryFloat

public void setBinaryFloat(java.lang.String parameterName,
                           float x)
                    throws java.sql.SQLException
Sets the designated parameter to the given Java float value. The driver converts this to an SQL BINARY_FLOAT value when it sends it to the database.

Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
10.0
See Also:
getFloat(int)

setBinaryFloat

public void setBinaryFloat(java.lang.String parameterName,
                           BINARY_FLOAT x)
                    throws java.sql.SQLException
Sets the designated parameter to the given oracle.sql.BINARY_FLOAT value.

Specified by:
setBinaryFloat in interface OracleCallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
10.0
See Also:
getFloat(int)

setDouble

public void setDouble(java.lang.String parameterName,
                      double x)
               throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java double value. The driver converts this to an SQL DOUBLE value when it sends it to the database.

Specified by:
setDouble in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getDouble(int)

setBinaryDouble

public void setBinaryDouble(java.lang.String parameterName,
                            double x)
                     throws java.sql.SQLException
Sets the designated parameter to the given Java double value. The driver converts this to an SQL BINARY_DOUBLE value when it sends it to the database.

Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
10.0
See Also:
getDouble(int)

setBinaryDouble

public void setBinaryDouble(java.lang.String parameterName,
                            BINARY_DOUBLE x)
                     throws java.sql.SQLException
Sets the designated parameter to the given oracle.sql.BINARY_FLOAT value.

Specified by:
setBinaryDouble in interface OracleCallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
10.0
See Also:
getDouble(int)

setBigDecimal

public void setBigDecimal(java.lang.String parameterName,
                          java.math.BigDecimal x)
                   throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.math.BigDecimal value. The driver converts this to an SQL NUMERIC value when it sends it to the database.

Specified by:
setBigDecimal in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getBigDecimal(int, int)

setString

public void setString(java.lang.String parameterName,
                      java.lang.String x)
               throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.

Specified by:
setString in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getString(int)

setStringForClob

public void setStringForClob(java.lang.String parameterName,
                             java.lang.String x)
                      throws java.sql.SQLException
Sets the designated parameter to the given Java String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database. If the string is larger than 32765 it is converted to a temporary clob and that is sent to the database. This clob conversion produces data truncation for columns of type VARCHAR and LONGVARCHAR.

Specified by:
setStringForClob in interface OracleCallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
10i Release 1
See Also:
getString(int)

setBytes

public void setBytes(java.lang.String parameterName,
                     byte[] x)
              throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java array of bytes. The driver converts this to an SQL VARBINARY or LONGVARBINARY (depending on the argument's size relative to the driver's limits on VARBINARY values) when it sends it to the database.

Specified by:
setBytes in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getBytes(int)

setDate

public void setDate(java.lang.String parameterName,
                    java.sql.Date x)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Date value. The driver converts this to an SQL DATE value when it sends it to the database.

Specified by:
setDate in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getDate(int)

setTime

public void setTime(java.lang.String parameterName,
                    java.sql.Time x)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Time value. The driver converts this to an SQL TIME value when it sends it to the database.

Specified by:
setTime in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getTime(int)

setTimestamp

public void setTimestamp(java.lang.String parameterName,
                         java.sql.Timestamp x)
                  throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.

Specified by:
setTimestamp in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getTimestamp(int)

setAsciiStream

public void setAsciiStream(java.lang.String parameterName,
                           java.io.InputStream x,
                           int length)
                    throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given input stream, which will have the specified number of bytes. When a very large ASCII value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.InputStream. Data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from ASCII to the database char format.

Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Specified by:
setAsciiStream in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the Java input stream that contains the ASCII parameter value
length - the number of bytes in the stream
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2

setBinaryStream

public void setBinaryStream(java.lang.String parameterName,
                            java.io.InputStream x,
                            int length)
                     throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given input stream, which will have the specified number of bytes. When a very large binary value is input to a LONGVARBINARY parameter, it may be more practical to send it via a java.io.InputStream object. The data will be read from the stream as needed until end-of-file is reached.

Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Specified by:
setBinaryStream in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the java input stream which contains the binary parameter value
length - the number of bytes in the stream
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2

setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object x,
                      int targetSqlType,
                      int scale)
               throws java.sql.SQLException
JDBC 3.0 Sets the value of the designated parameter with the given object. The second argument must be an object type; for integral values, the java.lang equivalent objects should be used.

The given Java object will be converted to the given targetSqlType before being sent to the database. If the object has a custom mapping (is of a class implementing the interface SQLData), the JDBC driver should call the method SQLData.writeSQL to write it to the SQL data stream. If, on the other hand, the object is of a class implementing Ref, Blob, Clob, Struct, or Array, the driver should pass it to the database as a value of the corresponding SQL type.

Note that this method may be used to pass datatabase- specific abstract data types.

Specified by:
setObject in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the object containing the input parameter value
targetSqlType - the SQL type (as defined in java.sql.Types) to be sent to the database. The scale argument may further qualify this type.
scale - for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this is the number of digits after the decimal point. For all other types, this value will be ignored.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
Types, getObject(int)

setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object x,
                      int targetSqlType)
               throws java.sql.SQLException
JDBC 3.0 Sets the value of the designated parameter with the given object. This method is like the method setObject above, except that it assumes a scale of zero.

Specified by:
setObject in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the object containing the input parameter value
targetSqlType - the SQL type (as defined in java.sql.Types) to be sent to the database
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getObject(int)

setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object x)
               throws java.sql.SQLException
JDBC 3.0 Sets the value of the designated parameter with the given object. The second parameter must be of type Object; therefore, the java.lang equivalent objects should be used for built-in types.

The JDBC specification specifies a standard mapping from Java Object types to SQL types. The given argument will be converted to the corresponding SQL type before being sent to the database.

Note that this method may be used to pass datatabase- specific abstract data types, by using a driver-specific Java type. If the object is of a class implementing the interface SQLData, the JDBC driver should call the method SQLData.writeSQL to write it to the SQL data stream. If, on the other hand, the object is of a class implementing Ref, Blob, Clob, Struct, or Array, the driver should pass it to the database as a value of the corresponding SQL type.

This method throws an exception if there is an ambiguity, for example, if the object is of a class implementing more than one of the interfaces named above.

Specified by:
setObject in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the object containing the input parameter value
Throws:
java.sql.SQLException - if a database access error occurs or if the given Object parameter is ambiguous
Since:
9.0.2
See Also:
getObject(int)

setCharacterStream

public void setCharacterStream(java.lang.String parameterName,
                               java.io.Reader reader,
                               int length)
                        throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Reader object, which is the given number of characters long. When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader object. The data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.

Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Specified by:
setCharacterStream in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
reader - the java.io.Reader object that contains the UNICODE data used as the designated parameter
length - the number of characters in the stream
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2

setDate

public void setDate(java.lang.String parameterName,
                    java.sql.Date x,
                    java.util.Calendar cal)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Date value, using the given Calendar object. The driver uses the Calendar object to construct an SQL DATE value, which the driver then sends to the database. With a a Calendar object, the driver can calculate the date taking into account a custom timezone. If no Calendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.

Specified by:
setDate in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
cal - the Calendar object the driver will use to construct the date
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getDate(int)

setTime

public void setTime(java.lang.String parameterName,
                    java.sql.Time x,
                    java.util.Calendar cal)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Time value, using the given Calendar object. The driver uses the Calendar object to construct an SQL TIME value, which the driver then sends to the database. With a a Calendar object, the driver can calculate the time taking into account a custom timezone. If no Calendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.

Specified by:
setTime in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
cal - the Calendar object the driver will use to construct the time
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getTime(int)

setTimestamp

public void setTimestamp(java.lang.String parameterName,
                         java.sql.Timestamp x,
                         java.util.Calendar cal)
                  throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object. The driver uses the Calendar object to construct an SQL TIMESTAMP value, which the driver then sends to the database. With a a Calendar object, the driver can calculate the timestamp taking into account a custom timezone. If no Calendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.

Specified by:
setTimestamp in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
x - the parameter value
cal - the Calendar object the driver will use to construct the timestamp
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
getTimestamp(int)

setNull

public void setNull(java.lang.String parameterName,
                    int sqlType,
                    java.lang.String typeName)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to SQL NULL. This version of the method setNull should be used for user-defined types and REF type parameters. Examples of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and named array types.

Note: To be portable, applications must give the SQL type code and the fully-qualified SQL type name when specifying a NULL user-defined or REF parameter. In the case of a user-defined type the name is the type name of the parameter itself. For a REF parameter, the name is the type name of the referenced type. If a JDBC driver does not need the type code or type name information, it may ignore it. Although it is intended for user-defined and Ref parameters, this method may be used to set a null parameter of any JDBC type. If the parameter does not have a user-defined or REF type, the given typeName is ignored.

Specified by:
setNull in interface java.sql.CallableStatement
Parameters:
sqlType - a value from java.sql.Types
typeName - the fully-qualified name of an SQL user-defined type; ignored if the parameter is not a user-defined type or SQL REF value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
10i Release 1

getString

public java.lang.String getString(java.lang.String parameterName)
                           throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language.

For the fixed-length type JDBC CHAR, the String object returned has exactly the same value the JDBC CHAR value had in the database, including any padding added by the database.

Specified by:
getString in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setString(java.lang.String, java.lang.String)

getBoolean

public boolean getBoolean(java.lang.String parameterName)
                   throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC BIT parameter as a boolean in the Java programming language.

Specified by:
getBoolean in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is false.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setBoolean(java.lang.String, boolean)

getByte

public byte getByte(java.lang.String parameterName)
             throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TINYINT parameter as a byte in the Java programming language.

Specified by:
getByte in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setByte(java.lang.String, byte)

getShort

public short getShort(java.lang.String parameterName)
               throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language.

Specified by:
getShort in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setShort(java.lang.String, short)

getInt

public int getInt(java.lang.String parameterName)
           throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC INTEGER parameter as an int in the Java programming language.

Specified by:
getInt in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setInt(java.lang.String, int)

getLong

public long getLong(java.lang.String parameterName)
             throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC BIGINT parameter as a long in the Java programming language.

Specified by:
getLong in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setLong(java.lang.String, long)

getFloat

public float getFloat(java.lang.String parameterName)
               throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC FLOAT parameter as a float in the Java programming language.

Specified by:
getFloat in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setFloat(java.lang.String, float)

getDouble

public double getDouble(java.lang.String parameterName)
                 throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC DOUBLE parameter as a double in the Java programming language.

Specified by:
getDouble in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setDouble(java.lang.String, double)

getBytes

public byte[] getBytes(java.lang.String parameterName)
                throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

Specified by:
getBytes in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setBytes(java.lang.String, byte[])

getDate

public java.sql.Date getDate(java.lang.String parameterName)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC DATE parameter as a java.sql.Date object.

Specified by:
getDate in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setDate(java.lang.String, java.sql.Date)

getTime

public java.sql.Time getTime(java.lang.String parameterName)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TIME parameter as a java.sql.Time object.

Specified by:
getTime in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setTime(java.lang.String, java.sql.Time)

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String parameterName)
                                throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object.

Specified by:
getTimestamp in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setTimestamp(java.lang.String, java.sql.Timestamp)

getObject

public java.lang.Object getObject(java.lang.String parameterName)
                           throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a parameter as an Object in the Java programming language. If the value is an SQL NULL, the driver returns a Java null.

This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.

Specified by:
getObject in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
A java.lang.Object holding the OUT parameter value.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
Types, setObject(java.lang.String, java.lang.Object, int, int)

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String parameterName)
                                   throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.

Specified by:
getBigDecimal in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value in full precision. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setBigDecimal(java.lang.String, java.math.BigDecimal)

getObject

public java.lang.Object getObject(java.lang.String parameterName,
                                  java.util.Map map)
                           throws java.sql.SQLException
JDBC 3.0 Returns an object representing the value of OUT parameter i and uses map for the custom mapping of the parameter value.

This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.

Specified by:
getObject in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
map - the mapping from SQL type names to Java classes
Returns:
a java.lang.Object holding the OUT parameter value
Throws:
java.sql.SQLException - if a database access error occurs
Since:
10i Release 1
See Also:
setObject(java.lang.String, java.lang.Object, int, int)

getRef

public java.sql.Ref getRef(java.lang.String parameterName)
                    throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC REF(<structured-type>) parameter as a Ref object in the Java programming language.

Specified by:
getRef in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value as a Ref object in the Java programming language. If the value was SQL NULL, the value null is returned.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2

getBlob

public java.sql.Blob getBlob(java.lang.String parameterName)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC BLOB parameter as a Blob object in the Java programming language.

Specified by:
getBlob in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value as a Blob object in the Java programming language. If the value was SQL NULL, the value null is returned.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2

getClob

public java.sql.Clob getClob(java.lang.String parameterName)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC CLOB parameter as a Clob object in the Java programming language.

Specified by:
getClob in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value as a Clob object in the Java programming language. If the value was SQL NULL, the value null is returned.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2

getArray

public java.sql.Array getArray(java.lang.String parameterName)
                        throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC ARRAY parameter as an Array object in the Java programming language.

Specified by:
getArray in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value as an Array object in Java programming language. If the value was SQL NULL, the value null is returned.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2

getDate

public java.sql.Date getDate(java.lang.String parameterName,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date. With a Calendar object, the driver can calculate the date taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.

Specified by:
getDate in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
cal - the Calendar object the driver will use to construct the date
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setDate(java.lang.String, java.sql.Date)

getTime

public java.sql.Time getTime(java.lang.String parameterName,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time. With a Calendar object, the driver can calculate the time taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.

Specified by:
getTime in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
cal - the Calendar object the driver will use to construct the time
Returns:
the parameter value; if the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setTime(java.lang.String, java.sql.Time)

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String parameterName,
                                       java.util.Calendar cal)
                                throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object. With a Calendar object, the driver can calculate the timestamp taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.

Specified by:
getTimestamp in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
cal - the Calendar object the driver will use to construct the timestamp
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - if a database access error occurs
Since:
9.0.2
See Also:
setTimestamp(java.lang.String, java.sql.Timestamp)

getURL

public java.net.URL getURL(java.lang.String parameterName)
                    throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC DATALINK parameter as a java.net.URL object.

Specified by:
getURL in interface java.sql.CallableStatement
Parameters:
parameterName - the name of the parameter
Returns:
the parameter value as a java.net.URL object in the Java programming language. If the value was SQL NULL, the value null is returned.
Throws:
java.sql.SQLException - if a database access error occurs, or if there is a problem with the URL
Since:
9.0.2
See Also:
setURL(java.lang.String, java.net.URL)

registerIndexTableOutParameter

public void registerIndexTableOutParameter(int paramIndex,
                                           int maxLen,
                                           int elemSqlType,
                                           int elemMaxLen)
                                    throws java.sql.SQLException
Oracle OCI driver specific. Special Oracle version of registerOutParameter for registering PLSQL index table parameter.

Specified by:
registerIndexTableOutParameter in interface OracleCallableStatement
Parameters:
paramIndex - parameter index.
maxLen - the maximum possible number of elements.
elemSqlType - index table element SQL type (as defined in java.sql.Types or OracleTypes).
elemMaxLen - maximum length of the element. If not specified, maximum length allowed for that type is used.
Throws:
java.sql.SQLException - if sqlType is invalid, or an error occurred.
Since:
8.1.7

getPlsqlIndexTable

public java.lang.Object getPlsqlIndexTable(int paramIndex)
                                    throws java.sql.SQLException
Oracle OCI driver specific. Get the value of a PLSQL index table parameter as a Java array. The type of the Java arry will be the default Java object type corresponding to the element's SQL type, following the mapping for built-in types specified in the JDBC spec.

Specified by:
getPlsqlIndexTable in interface OracleCallableStatement
Parameters:
paramIndex - the first parameter is 1, the second is 2, and so on
Returns:
A java.lang.Object holding the parameter value.
Throws:
java.sql.SQLException - if a database-access error occurs.

getPlsqlIndexTable

public java.lang.Object getPlsqlIndexTable(int paramIndex,
                                           java.lang.Class primitiveType)
                                    throws java.sql.SQLException
Oracle OCI driver specific. Get the value of a PLSQL index table parameter as a primitive array. 'primitiveType' speicifies the return array type.

Specified by:
getPlsqlIndexTable in interface OracleCallableStatement
Parameters:
primitiveType - is a primitive type class. For example,java.lang.Double.Type
paramIndex - the first parameter is 1, the second is 2, and so on
Returns:
A java.lang.Object holding the parameter value.
Throws:
java.sql.SQLException - if a database-access error occurs.

getOraclePlsqlIndexTable

public Datum[] getOraclePlsqlIndexTable(int parameterIndex)
                                 throws java.sql.SQLException
Oracle OCI driver specific. Get the value of a PLSQL index table parameter as a oracle.sql.Datum array.

Specified by:
getOraclePlsqlIndexTable in interface OracleCallableStatement
Parameters:
parameterIndex - the first column is 1, the second is 2, ...
Returns:
A Datum array holding the parameter value.
Throws:
java.sql.SQLException - if a database-access error occurs.

execute

public boolean execute()
                throws java.sql.SQLException
Execute the statement.

Specified by:
execute in interface java.sql.PreparedStatement
Overrides:
execute in class OraclePreparedStatement
Throws:
java.sql.SQLException - if error(s) occurred.

executeUpdate

public int executeUpdate()
                  throws java.sql.SQLException
Execute the update statement.

Specified by:
executeUpdate in interface java.sql.PreparedStatement
Overrides:
executeUpdate in class OraclePreparedStatement
Throws:
java.sql.SQLException - if error(s) occurred.

setNull

public void setNull(int paramIndex,
                    int x,
                    java.lang.String y)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Implements JDBC 2.0 setNull for object types. Sets the designated parameter to SQL NULL. This version of setNull should be used for STRUCT, ARRAY and REF type parameters.

Note: To be portable, applications must give the SQL type code and the fully-qualified SQL type name when specifying a NULL user-defined or REF parameter. In the case of a user-named type the name is the type name of the parameter itself. For a REF parameter the name is the type name of the referenced type. Although it is intended for user-named and Ref parameters, this method may be used to set a null parameter of any JDBC type. If the parameter does not have a user-named or REF type, the given typeName is ignored.

Specified by:
setNull in interface java.sql.PreparedStatement
Overrides:
setNull in class OraclePreparedStatement
Parameters:
x - a value from java.sql.Types
Throws:
java.sql.SQLException - if a database access error occurs

setNull

public void setNull(int paramIndex,
                    int x)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to SQL NULL. This method can't be used for STRUCT, REF and ARRAY type parameters.

Note: You must specify the parameter's SQL type.

Specified by:
setNull in interface java.sql.PreparedStatement
Overrides:
setNull in class OraclePreparedStatement
Parameters:
x - the SQL type code defined in java.sql.Types
Throws:
java.sql.SQLException - if a database access error occurs

setBoolean

public void setBoolean(int paramIndex,
                       boolean x)
                throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java boolean value.

Specified by:
setBoolean in interface java.sql.PreparedStatement
Overrides:
setBoolean in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setByte

public void setByte(int paramIndex,
                    byte x)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java byte value.

Specified by:
setByte in interface java.sql.PreparedStatement
Overrides:
setByte in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setShort

public void setShort(int paramIndex,
                     short x)
              throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java short value.

Specified by:
setShort in interface java.sql.PreparedStatement
Overrides:
setShort in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setInt

public void setInt(int paramIndex,
                   int x)
            throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java int value.

Specified by:
setInt in interface java.sql.PreparedStatement
Overrides:
setInt in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setLong

public void setLong(int paramIndex,
                    long x)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java long value.

Specified by:
setLong in interface java.sql.PreparedStatement
Overrides:
setLong in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setFloat

public void setFloat(int paramIndex,
                     float x)
              throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java float value.

Specified by:
setFloat in interface java.sql.PreparedStatement
Overrides:
setFloat in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setBinaryFloat

public void setBinaryFloat(int paramIndex,
                           float x)
                    throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Sets the designated parameter to a Java Float value.

Specified by:
setBinaryFloat in interface OraclePreparedStatement
Overrides:
setBinaryFloat in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setBinaryFloat

public void setBinaryFloat(int paramIndex,
                           BINARY_FLOAT x)
                    throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Sets the designated parameter to an oracle.sql.BINARY_FLOAT value.

Specified by:
setBinaryFloat in interface OraclePreparedStatement
Overrides:
setBinaryFloat in class OraclePreparedStatement
Throws:
java.sql.SQLException

setBinaryDouble

public void setBinaryDouble(int paramIndex,
                            double x)
                     throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Sets the designated parameter to a Java Double value.

Specified by:
setBinaryDouble in interface OraclePreparedStatement
Overrides:
setBinaryDouble in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setBinaryDouble

public void setBinaryDouble(int paramIndex,
                            BINARY_DOUBLE x)
                     throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Sets the designated parameter to an oracle.sql.BINARY_DOUBLE value.

Specified by:
setBinaryDouble in interface OraclePreparedStatement
Overrides:
setBinaryDouble in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setDouble

public void setDouble(int paramIndex,
                      double x)
               throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java double value.

Specified by:
setDouble in interface java.sql.PreparedStatement
Overrides:
setDouble in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setBigDecimal

public void setBigDecimal(int paramIndex,
                          java.math.BigDecimal x)
                   throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a java.math.BigDecimal value.

Specified by:
setBigDecimal in interface java.sql.PreparedStatement
Overrides:
setBigDecimal in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setString

public void setString(int paramIndex,
                      java.lang.String x)
               throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java String value.

Specified by:
setString in interface java.sql.PreparedStatement
Overrides:
setString in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setFixedCHAR

public void setFixedCHAR(int paramIndex,
                         java.lang.String x)
                  throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Sets the disignated parameter to a String and executes a non-padded comparison with a SQL CHAR.

CHAR data in the database is padded to the column width. This leads to a limitation in using the setCHAR() method to bind character data into the WHERE clause of a SELECT statement--the character data in the WHERE clause must also be padded to the column width to produce a match in the SELECT statement. This is especially troublesome if you do not know the column width.

setFixedCHAR() remedies this. This method executes a non-padded comparison.

Notes:

The following example demonstrates the difference between the setString(), setCHAR() and setFixedCHAR() methods.

    // Schema is : create table my_table (col1 char(10));
    //             insert into my_table values ('JDBC');
    PreparedStatement pstmt = conn.prepareStatement
          ("select count() from my_table where col1 = ?");
    ResultSet rs;

    pstmt.setString (1, "JDBC");  // Set the Bind Value
    rs = pstmt.executeQuery();    // This does not match any row
    // ... do something with rs
    CHAR ch = new CHAR("JDBC      ", null);
    ((OraclePreparedStatement)pstmt).setCHAR(1, ch); // Pad it to 10 bytes
    rs = pstmt.executeQuery();     // This matches one row
    // ... do something with rs
    ((OraclePreparedStatement)pstmt).setFixedCHAR(1, "JDBC");
    rs = pstmt.executeQuery();     // This matches one row
    // ... do something with rs
    

Specified by:
setFixedCHAR in interface OraclePreparedStatement
Overrides:
setFixedCHAR in class OraclePreparedStatement
Parameters:
paramIndex - index of the bind variable
x - the literal/variable to be bound.
Throws:
java.sql.SQLException - error while binding

setCursor

public void setCursor(int paramIndex,
                      java.sql.ResultSet x)
               throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a java.sql.ResultSet. This is used for RefCursor parameter only.

NOTE: The method is a misnomer. You should use CURSOR only in callable statements.

Specified by:
setCursor in interface OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setROWID

public void setROWID(int paramIndex,
                     ROWID x)
              throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.ROWID value.

Specified by:
setROWID in interface OraclePreparedStatement
Overrides:
setROWID in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setArray

public void setArray(int paramIndex,
                     java.sql.Array x)
              throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 2.0. Sets the designated parameter to a Array value.

Specified by:
setArray in interface java.sql.PreparedStatement
Overrides:
setArray in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setARRAY

public void setARRAY(int paramIndex,
                     ARRAY x)
              throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.ARRAY.

Specified by:
setARRAY in interface OraclePreparedStatement
Overrides:
setARRAY in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setOPAQUE

public void setOPAQUE(int paramIndex,
                      OPAQUE x)
               throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.OPAQUE value.

Specified by:
setOPAQUE in interface OraclePreparedStatement
Overrides:
setOPAQUE in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setStructDescriptor

public void setStructDescriptor(int paramIndex,
                                StructDescriptor x)
                         throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the bind type of designated parameter from an oracle.sql.StructDescriptor.

Specified by:
setStructDescriptor in interface OraclePreparedStatement
Overrides:
setStructDescriptor in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setSTRUCT

public void setSTRUCT(int paramIndex,
                      STRUCT x)
               throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.STRUCT value.

Specified by:
setSTRUCT in interface OraclePreparedStatement
Overrides:
setSTRUCT in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setRAW

public void setRAW(int paramIndex,
                   RAW x)
            throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.RAW value.

Specified by:
setRAW in interface OraclePreparedStatement
Overrides:
setRAW in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setCHAR

public void setCHAR(int paramIndex,
                    CHAR x)
             throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.CHAR value.

setCHAR checks the character set of the argument. If it is not the same as the network character set, then the bytes of the argument are converted to the network character set and those bytes are sent to the database. The conversion between the argument character set and the network character set is via the Universal Character Set (UCS2). That is, the argument is converted to UCS2, then the UCS2 bytes are converted to the network character set.

Note: If an input character does not have a representation in UCS2, or if the UCS2 does not have a representation of the network character set, setCHAR will throw an exception.

Specified by:
setCHAR in interface OraclePreparedStatement
Overrides:
setCHAR in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setDATE

public void setDATE(int paramIndex,
                    DATE x)
             throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.DATE value.

Specified by:
setDATE in interface OraclePreparedStatement
Overrides:
setDATE in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setNUMBER

public void setNUMBER(int paramIndex,
                      NUMBER x)
               throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.NUMBER value.

Specified by:
setNUMBER in interface OraclePreparedStatement
Overrides:
setNUMBER in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setBLOB

public void setBLOB(int paramIndex,
                    BLOB x)
             throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.BLOB value.

Note: An instance of the oracle.sql.BLOB class contains only the locator of the BLOB, not the data. Thus, this method binds the designated parameter to a BLOB locator not to the data.

For example, if you have an OraclePreparedStatement object ops and a BLOB named my_blob, then write the BLOB to the database as follows:

    OraclePreparedStatement ops = (OraclePreparedStatement)conn.prepareStatement
                                 ("INSERT INTO blob_table VALUES(?)");
    ops.setBLOB(1, my_blob);
    ops.execute();                             
    

This stores only the locator of the BLOB in the clob_table. Use the method BLOB.getBinaryOutputStream to write data to a BLOB.

Specified by:
setBLOB in interface OraclePreparedStatement
Overrides:
setBLOB in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setBlob

public void setBlob(int paramIndex,
                    java.sql.Blob x)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 2.0. Sets the designated parameter to a Blob value.

Specified by:
setBlob in interface java.sql.PreparedStatement
Overrides:
setBlob in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setCLOB

public void setCLOB(int paramIndex,
                    CLOB x)
             throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.CLOB value.

Note: An instance of the oracle.sql.CLOB class contains only the locator of the CLOB, not the data. Thus, this method binds the designated parameter to a CLOB locator not to the data.

For example, if you have an OraclePreparedStatement object ops and a CLOB named my_clob, then write the CLOB to the database as follows:

    OraclePreparedStatement ops = (OraclePreparedStatement)conn.prepareStatement
                                 ("INSERT INTO clob_table VALUES(?)");
    ops.setCLOB(1, my_clob);
    ops.execute();                             
    

This stores only the locator of the CLOB in the clob_table. Use the methods CLOB.getCharacterOutputStream or CLOB.getAsciiOutputStream to write data to a CLOB.

Specified by:
setCLOB in interface OraclePreparedStatement
Overrides:
setCLOB in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setClob

public void setClob(int paramIndex,
                    java.sql.Clob x)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 2.0. Sets the designated parameter to a Clob value.

Specified by:
setClob in interface java.sql.PreparedStatement
Overrides:
setClob in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setBFILE

public void setBFILE(int paramIndex,
                     BFILE x)
              throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.BFILE value.

Note: An instance of the oracle.sql.BFILE class contains only the locator of the BFILE, not the data. Thus, this method binds the designated parameter to a BFILE locator not to the data.

For example, assume you want to insert a BFILE locator into a table, and you have an OraclePreparedStatement object ops to insert data into a table. The first column is a string (to designate a row number), the second column is a BFILE, and you have a valid oracle.sql.BFILE object (bfile). Write the BFILE to the database as follows:

    OraclePreparedStatement ops = (OraclePreparedStatement)conn.prepareStatement
                                 ("INSERT INTO my_bfile_table VALUES(?,?)");
    ops.setString(1, "one");
    ops.setBFILE(2, bfile);
    ops.execute();                             
    

This stores only the locator of the BFILE in the my_bfile_table. See the BFILE class to get more details about how to deal with the data.

Specified by:
setBFILE in interface OraclePreparedStatement
Overrides:
setBFILE in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setBfile

public void setBfile(int paramIndex,
                     BFILE x)
              throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.BFILE value.

Note: This is the same as setBFILE.

Specified by:
setBfile in interface OraclePreparedStatement
Overrides:
setBfile in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setBytes

public void setBytes(int paramIndex,
                     byte[] x)
              throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a Java array of bytes.

Specified by:
setBytes in interface java.sql.PreparedStatement
Overrides:
setBytes in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setInternalBytes

public void setInternalBytes(int paramIndex,
                             byte[] x,
                             int y)
                      throws java.sql.SQLException
Specified by:
setInternalBytes in interface oracle.jdbc.internal.OraclePreparedStatement
Throws:
java.sql.SQLException

setDate

public void setDate(int paramIndex,
                    java.sql.Date x)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a java.sql.Date value.

Specified by:
setDate in interface java.sql.PreparedStatement
Overrides:
setDate in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setTime

public void setTime(int paramIndex,
                    java.sql.Time x)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a java.sql.Time value.

Specified by:
setTime in interface java.sql.PreparedStatement
Overrides:
setTime in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setTimestamp

public void setTimestamp(int paramIndex,
                         java.sql.Timestamp x)
                  throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to a java.sql.Timestamp value.

Specified by:
setTimestamp in interface java.sql.PreparedStatement
Overrides:
setTimestamp in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setINTERVALYM

public void setINTERVALYM(int paramIndex,
                          INTERVALYM x)
                   throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to an oracle.sql.INTERVALYM value.

Specified by:
setINTERVALYM in interface OraclePreparedStatement
Overrides:
setINTERVALYM in class OraclePreparedStatement
Parameters:
paramIndex - specifies the parameter index. Index starts from 1.
x - specifies the parameter value.
Throws:
java.sql.SQLException - if an error occurred.

setINTERVALDS

public void setINTERVALDS(int paramIndex,
                          INTERVALDS x)
                   throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to an oracle.sql.INTERVALDS value.

Specified by:
setINTERVALDS in interface OraclePreparedStatement
Overrides:
setINTERVALDS in class OraclePreparedStatement
Parameters:
paramIndex - specifies the parameter index. Index starts from 1.
x - specifies the parameter value.
Throws:
java.sql.SQLException - if an error occurred.

setTIMESTAMP

public void setTIMESTAMP(int paramIndex,
                         TIMESTAMP x)
                  throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to an oracle.sql.TIMESTAMP value.

Specified by:
setTIMESTAMP in interface OraclePreparedStatement
Overrides:
setTIMESTAMP in class OraclePreparedStatement
Parameters:
paramIndex - specifies the parameter index. Index starts from 1.
x - specifies the parameter value.
Throws:
java.sql.SQLException - if an error occurred.

setTIMESTAMPTZ

public void setTIMESTAMPTZ(int paramIndex,
                           TIMESTAMPTZ x)
                    throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to an oracle.sql.TIMESTAMPTZ value.

Specified by:
setTIMESTAMPTZ in interface OraclePreparedStatement
Overrides:
setTIMESTAMPTZ in class OraclePreparedStatement
Parameters:
paramIndex - specifies the parameter index. Index starts from 1.
x - specifies the parameter value.
Throws:
java.sql.SQLException - if an error occurred.

setTIMESTAMPLTZ

public void setTIMESTAMPLTZ(int paramIndex,
                            TIMESTAMPLTZ x)
                     throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to an oracle.sql.TIMESTAMPLTZ value.

In order to use this method, the calling program must first set the session time zone of the corresponding connection by using OracleConnection.setSessionTimeZone().

Specified by:
setTIMESTAMPLTZ in interface OraclePreparedStatement
Overrides:
setTIMESTAMPLTZ in class OraclePreparedStatement
Parameters:
paramIndex - specifies the parameter index. Index starts from 1.
x - specifies the parameter value.
Throws:
java.sql.SQLException - if an error occurred.

setAsciiStream

public void setAsciiStream(int paramIndex,
                           java.io.InputStream x,
                           int y)
                    throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to the given input stream, which will have the specified number of bytes. When a very large ASCII value is input to a LONG parameter, it may be more practical to send it via a InputStream. JDBC will read the data from the stream as needed, until it reaches end-of-file. The JDBC driver will do any necessary conversion from ASCII to the database char format.

Note: There are restrictions to use this method for CLOBs. Please see details in Oracle JDBC documents or Readme to avoid data lossage.

Specified by:
setAsciiStream in interface java.sql.PreparedStatement
Overrides:
setAsciiStream in class OraclePreparedStatement
Parameters:
x - the Java input stream that contains the ASCII parameter value
y - the number of bytes in the stream
Throws:
java.sql.SQLException - if a database access error occurs

setBinaryStream

public void setBinaryStream(int paramIndex,
                            java.io.InputStream x,
                            int y)
                     throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to the given input stream, which will have the specified number of bytes. When a very large binary value is input to a LONG RAW parameter, it may be more practical to send it via a InputStream. JDBC will read the data from the stream as needed, until it reaches end-of-file.

Note: There are restrictions to use this method for BLOBs. Please see details in Oracle JDBC documents or Readme to avoid data lossage.

Specified by:
setBinaryStream in interface java.sql.PreparedStatement
Overrides:
setBinaryStream in class OraclePreparedStatement
Parameters:
x - the java input stream which contains the binary parameter value
y - the number of bytes in the stream
Throws:
java.sql.SQLException - if a database access error occurs

setUnicodeStream

public void setUnicodeStream(int paramIndex,
                             java.io.InputStream x,
                             int y)
                      throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the designated parameter to the given input stream, which will have the specified number of bytes. When a very large UNICODE value is input to a LONG parameter, it may be more practical to send it via a InputStream. JDBC will read the data from the stream as needed, until it reaches end-of-file. The JDBC driver will do any necessary conversion from UNICODE to the database char format. The byte format of the Unicode stream is the 2 bytes UCS-2 encoding.

Note: There are restrictions to use this method for CLOBs. Please see details in Oracle JDBC documents or Readme to avoid data lossage.

Specified by:
setUnicodeStream in interface java.sql.PreparedStatement
Overrides:
setUnicodeStream in class OraclePreparedStatement
Parameters:
x - the java input stream which contains the UNICODE parameter value
y - the number of bytes in the stream
Throws:
java.sql.SQLException - if a database access error occurs

setCustomDatum

public void setCustomDatum(int paramIndex,
                           CustomDatum x)
                    throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.CustomDatum value.

In the 9i release the oracle.sql.CustomDatum has been deprecated and replaced by the oracle.sql.ORAData interface. For this reason, this method is also deprecated. It is recommended to use setORAData() instead.

Specified by:
setCustomDatum in interface OraclePreparedStatement
Overrides:
setCustomDatum in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setORAData

public void setORAData(int paramIndex,
                       ORAData x)
                throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.ORAData value.

Specified by:
setORAData in interface OraclePreparedStatement
Overrides:
setORAData in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setObject

public void setObject(int paramIndex,
                      java.lang.Object x,
                      int y,
                      int z)
               throws java.sql.SQLException
Description copied from class: OraclePreparedStatement

Sets the value of a parameter using an object. The second argument must be an object type.

The given Java object will be converted to the targetSqlType before being sent to the database. If the object has a custom mapping (is of a class implementing SQLData), the JDBC driver should call its method writeSQL to write it to the SQL data stream.

Specified by:
setObject in interface java.sql.PreparedStatement
Overrides:
setObject in class OraclePreparedStatement
Parameters:
x - the object containing the input parameter value
y - the SQL type (as defined in java.sql.Types or OracleTypes) to be sent to the database.
z - for numeric types. Ignored for other types.
Throws:
java.sql.SQLException - if a database access error occurs
See Also:
Types

setObject

public void setObject(int paramIndex,
                      java.lang.Object x,
                      int y)
               throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the value of the designated parameter with the given object. This method is like setObject above, except that it assumes a scale of zero.

Specified by:
setObject in interface java.sql.PreparedStatement
Overrides:
setObject in class OraclePreparedStatement
Parameters:
x - the object containing the input parameter value
y - the SQL type (as defined in java.sql.Types) to be sent to the database
Throws:
java.sql.SQLException - if a database access error occurs

setRefType

public void setRefType(int paramIndex,
                       REF x)
                throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.REF value.

Note: This is the same as setREF.

Specified by:
setRefType in interface OraclePreparedStatement
Overrides:
setRefType in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setRef

public void setRef(int paramIndex,
                   java.sql.Ref x)
            throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 2.0 Sets a Ref(<structured-type>) parameter.

Specified by:
setRef in interface java.sql.PreparedStatement
Overrides:
setRef in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setREF

public void setREF(int paramIndex,
                   REF x)
            throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.REF value.

Specified by:
setREF in interface OraclePreparedStatement
Overrides:
setREF in class OraclePreparedStatement
Throws:
java.sql.SQLException - if a database access error occurs

setObject

public void setObject(int paramIndex,
                      java.lang.Object x)
               throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
Sets the value of the designated parameter with the given object. This method is like setObject above, except that it finds out the SQL type base on the given object's type.

Specified by:
setObject in interface java.sql.PreparedStatement
Overrides:
setObject in class OraclePreparedStatement
Parameters:
x - the object containing the input parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setOracleObject

public void setOracleObject(int paramIndex,
                            Datum x)
                     throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds the designated parameter to a oracle.sql.Datum value.

This is a generic setXXX() method for binding oracle.sql. data into a prepared statement as an oracle.sql.Datum object.

Specified by:
setOracleObject in interface OraclePreparedStatement
Overrides:
setOracleObject in class OraclePreparedStatement
Parameters:
x - the parameter value
Throws:
java.sql.SQLException - if a database access error occurs

setCharacterStream

public void setCharacterStream(int paramIndex,
                               java.io.Reader x,
                               int y)
                        throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 2.0 Sets the designated parameter to the given Reader object, which is the given number of characters long. When a very large UNICODE value is input to a LONG parameter, it may be more practical to send it via a Reader. JDBC will read the data from the stream as needed, until it reaches end-of-file. The JDBC driver will do any necessary conversion from UNICODE to the database char format.

Note: There are restrictions to use this method to access CLOBs in database. To avoid data lossage, please read Oracle JDBC documents or Reademe for details.

Specified by:
setCharacterStream in interface java.sql.PreparedStatement
Overrides:
setCharacterStream in class OraclePreparedStatement
Parameters:
x - the java reader which contains the UNICODE data
y - the number of characters in the stream
Throws:
java.sql.SQLException - if a database access error occurs

setDate

public void setDate(int paramIndex,
                    java.sql.Date x,
                    java.util.Calendar y)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 2.0 Sets the designated parameter to a java.sql.Date value, using the given Calendar object. Since Oracle database doesn't support timezone for DATE. This method set the same value as setDate(idx, x).

Specified by:
setDate in interface java.sql.PreparedStatement
Overrides:
setDate in class OraclePreparedStatement
Throws:
java.sql.SQLException

setTime

public void setTime(int paramIndex,
                    java.sql.Time x,
                    java.util.Calendar y)
             throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 2.0 Sets the designated parameter to a java.sql.Time value, using the given Calendar object. Since Oracle database doesn't support timezone for DATE. This method set the same value as setTime(idx, x).

Specified by:
setTime in interface java.sql.PreparedStatement
Overrides:
setTime in class OraclePreparedStatement
Throws:
java.sql.SQLException

setTimestamp

public void setTimestamp(int paramIndex,
                         java.sql.Timestamp x,
                         java.util.Calendar y)
                  throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 2.0 Sets the designated parameter to a java.sql.Timestamp value, using the given Calendar object. Since Oracle database doesn't support timezone for DATE. This method set the same value as setTimestamp(idx, x).

Specified by:
setTimestamp in interface java.sql.PreparedStatement
Overrides:
setTimestamp in class OraclePreparedStatement
Throws:
java.sql.SQLException

setURL

public void setURL(int paramIndex,
                   java.net.URL x)
            throws java.sql.SQLException
Description copied from class: OraclePreparedStatement
JDBC 3.0 Sets the designated parameter to the given java.net.URL value. The driver converts this to an SQL DATALINK value when it sends it to the database.

Specified by:
setURL in interface java.sql.PreparedStatement
Overrides:
setURL in class OraclePreparedStatement
Parameters:
x - the java.net.URL object to be set
Throws:
java.sql.SQLException - if a database access error occurs

setPlsqlIndexTable

public void setPlsqlIndexTable(int paramIndex,
                               java.lang.Object arrayData,
                               int maxLen,
                               int curLen,
                               int elemSqlType,
                               int elemMaxLen)
                        throws java.sql.SQLException
Description copied from interface: OraclePreparedStatement
Binds a PL/SQL index-by table parameter in the IN parameter mode.

Specified by:
setPlsqlIndexTable in interface OraclePreparedStatement
Overrides:
setPlsqlIndexTable in class OraclePreparedStatement
Parameters:
arrayData - a java array
maxLen - the maximum possible number of elements.
curLen - the current number of elements
elemSqlType - index table element SQL type (as defined in java.sql.Types or OracleTypes).
elemMaxLen - maximum length of the element. If not specified, maximum length allowed for that type is used.
Throws:
java.sql.SQLException - if a database access error occurs

Oracle10g JDBC

Copyright © 1998,2004, Oracle. All rights reserved