|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.jdbc.driver.OracleCallableStatement
Oracle callable statement.
Method Summary | |
void |
addBatch()
Add a set of parameters to the batch. |
void |
clearParameters()
|
void |
close()
Close the current result set, if any, and then close the statement. |
java.sql.Array |
getArray(int parameterIndex)
|
ARRAY |
getARRAY(int parameterIndex)
|
java.io.InputStream |
getAsciiStream(int parameterIndex)
|
BFILE |
getBFILE(int parameterIndex)
|
java.math.BigDecimal |
getBigDecimal(int parameterIndex)
|
java.math.BigDecimal |
getBigDecimal(int parameterIndex,
int scale)
|
java.io.InputStream |
getBinaryStream(int parameterIndex)
|
java.sql.Blob |
getBlob(int parameterIndex)
|
BLOB |
getBLOB(int parameterIndex)
|
boolean |
getBoolean(int parameterIndex)
|
byte |
getByte(int parameterIndex)
|
byte[] |
getBytes(int parameterIndex)
|
CHAR |
getCHAR(int parameterIndex)
|
java.sql.Clob |
getClob(int parameterIndex)
|
CLOB |
getCLOB(int parameterIndex)
|
java.sql.ResultSet |
getCursor(int parameterIndex)
|
java.lang.Object |
getCustomDatum(int parameterIndex,
CustomDatumFactory factory)
|
java.sql.Date |
getDate(int parameterIndex)
|
DATE |
getDATE(int parameterIndex)
|
java.sql.Date |
getDate(int parameterIndex,
java.util.Calendar cal)
|
double |
getDouble(int parameterIndex)
|
float |
getFloat(int parameterIndex)
|
int |
getInt(int parameterIndex)
|
long |
getLong(int parameterIndex)
|
NUMBER |
getNUMBER(int parameterIndex)
|
java.lang.Object |
getObject(int parameterIndex)
|
java.lang.Object |
getObject(int parameterIndex,
java.util.Map map)
|
OPAQUE |
getOPAQUE(int parameterIndex)
|
Datum |
getOracleObject(int parameterIndex)
|
Datum[] |
getOraclePlsqlIndexTable(int paramIndex)
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)
|
java.sql.Ref |
getRef(int parameterIndex)
|
REF |
getREF(int parameterIndex)
|
ROWID |
getROWID(int parameterIndex)
|
short |
getShort(int parameterIndex)
|
java.lang.String |
getString(int parameterIndex)
|
STRUCT |
getSTRUCT(int parameterIndex)
|
java.sql.Time |
getTime(int parameterIndex)
|
java.sql.Time |
getTime(int parameterIndex,
java.util.Calendar cal)
|
java.sql.Timestamp |
getTimestamp(int parameterIndex)
|
TIMESTAMP |
getTIMESTAMP(int parameterIndex)
|
java.sql.Timestamp |
getTimestamp(int parameterIndex,
java.util.Calendar cal)
|
TIMESTAMPLTZ |
getTIMESTAMPLTZ(int parameterIndex)
|
TIMESTAMPTZ |
getTIMESTAMPTZ(int parameterIndex)
|
java.io.InputStream |
getUnicodeStream(int parameterIndex)
|
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. |
int |
sendBatch()
Send the sets of parameters batched (for Oracle-style batching only). |
void |
setExecuteBatch(int nrows)
Set the batch value (for Oracle-style batching only). |
void |
setFormOfUse(int paramIndex,
short formOfUse)
Sets the "Form Of Use". |
boolean |
wasNull()
|
Method Detail |
public void registerOutParameter(int paramIndex, int sqlType, java.lang.String sqlName) throws java.sql.SQLException
paramIndex
- parameter index.sqlType
- use OracleTypes.STRUCT, OracleTypes.ARRAY,
OracleTypes.REF, or OracleTypes.OPAQUE.sqlName
- SQL name of the object.public void registerOutParameter(int paramIndex, int sqlType, int scale, int maxLength) throws java.sql.SQLException
paramIndex
- parameter index (the first parameter is 1).sqlType
- type of the bind parameter,scale
- not used.maxLength
- maximum length of the column. If not specified,
maximum length allowed for that type is used.public void setExecuteBatch(int nrows) throws java.sql.SQLException
Oracle-style batching is not supported for a callable statement. This method always sets the batch value to 1.
public int sendBatch() throws java.sql.SQLException
Oracle-style batching is not supported for a callable statement. This method simply returns the number of valid rows.
public void registerOutParameter(int paramIndex, int sqlType) throws java.sql.SQLException
public void registerOutParameter(int paramIndex, int sqlType, int scale) throws java.sql.SQLException
public boolean wasNull() throws java.sql.SQLException
public java.lang.String getString(int parameterIndex) throws java.sql.SQLException
public Datum getOracleObject(int parameterIndex) throws java.sql.SQLException
public ROWID getROWID(int parameterIndex) throws java.sql.SQLException
public NUMBER getNUMBER(int parameterIndex) throws java.sql.SQLException
public DATE getDATE(int parameterIndex) throws java.sql.SQLException
public TIMESTAMP getTIMESTAMP(int parameterIndex) throws java.sql.SQLException
public TIMESTAMPTZ getTIMESTAMPTZ(int parameterIndex) throws java.sql.SQLException
public TIMESTAMPLTZ getTIMESTAMPLTZ(int parameterIndex) throws java.sql.SQLException
public REF getREF(int parameterIndex) throws java.sql.SQLException
public ARRAY getARRAY(int parameterIndex) throws java.sql.SQLException
public STRUCT getSTRUCT(int parameterIndex) throws java.sql.SQLException
public OPAQUE getOPAQUE(int parameterIndex) throws java.sql.SQLException
public CHAR getCHAR(int parameterIndex) throws java.sql.SQLException
public RAW getRAW(int parameterIndex) throws java.sql.SQLException
public BLOB getBLOB(int parameterIndex) throws java.sql.SQLException
public CLOB getCLOB(int parameterIndex) throws java.sql.SQLException
public BFILE getBFILE(int parameterIndex) throws java.sql.SQLException
public boolean getBoolean(int parameterIndex) throws java.sql.SQLException
public byte getByte(int parameterIndex) throws java.sql.SQLException
public short getShort(int parameterIndex) throws java.sql.SQLException
public int getInt(int parameterIndex) throws java.sql.SQLException
public long getLong(int parameterIndex) throws java.sql.SQLException
public float getFloat(int parameterIndex) throws java.sql.SQLException
public double getDouble(int parameterIndex) throws java.sql.SQLException
public java.math.BigDecimal getBigDecimal(int parameterIndex, int scale) throws java.sql.SQLException
public byte[] getBytes(int parameterIndex) throws java.sql.SQLException
public java.sql.Date getDate(int parameterIndex) throws java.sql.SQLException
public java.sql.Time getTime(int parameterIndex) throws java.sql.SQLException
public java.sql.Timestamp getTimestamp(int parameterIndex) throws java.sql.SQLException
public java.io.InputStream getAsciiStream(int parameterIndex) throws java.sql.SQLException
public java.io.InputStream getUnicodeStream(int parameterIndex) throws java.sql.SQLException
public java.io.InputStream getBinaryStream(int parameterIndex) throws java.sql.SQLException
public java.lang.Object getObject(int parameterIndex) throws java.sql.SQLException
public java.lang.Object getCustomDatum(int parameterIndex, CustomDatumFactory factory) throws java.sql.SQLException
public java.lang.Object getORAData(int parameterIndex, ORADataFactory factory) throws java.sql.SQLException
public java.sql.ResultSet getCursor(int parameterIndex) throws java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
public java.lang.Object getObject(int parameterIndex, java.util.Map map) throws java.sql.SQLException
public java.sql.Ref getRef(int parameterIndex) throws java.sql.SQLException
public java.sql.Blob getBlob(int parameterIndex) throws java.sql.SQLException
public java.sql.Clob getClob(int parameterIndex) throws java.sql.SQLException
public java.sql.Array getArray(int parameterIndex) throws java.sql.SQLException
public java.math.BigDecimal getBigDecimal(int parameterIndex) throws java.sql.SQLException
public java.sql.Date getDate(int parameterIndex, java.util.Calendar cal) throws java.sql.SQLException
public java.sql.Time getTime(int parameterIndex, java.util.Calendar cal) throws java.sql.SQLException
public java.sql.Timestamp getTimestamp(int parameterIndex, java.util.Calendar cal) throws java.sql.SQLException
public void addBatch() throws java.sql.SQLException
public void close() throws java.sql.SQLException
public void registerIndexTableOutParameter(int paramIndex, int maxLen, int elemSqlType, int elemMaxLen) throws java.sql.SQLException
paramIndex
- parameter index.maxLen
- the maximum possible number of elements.curLen
- the current number of elementselemSqlType
- 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.public java.lang.Object getPlsqlIndexTable(int paramIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...public java.lang.Object getPlsqlIndexTable(int paramIndex, java.lang.Class primitiveType) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...primitiveType
- is a primitive type class.
For example,java.lang.Double.Typepublic Datum[] getOraclePlsqlIndexTable(int paramIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...public void setFormOfUse(int paramIndex, short formOfUse)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |