|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.idms.io.TraceObject ca.idms.jdbc.IdmsJdbcObject ca.idms.jdbc.IdmsResultObject ca.idms.jdbc.IdmsStatement ca.idms.jdbc.IdmsPreparedStatement ca.idms.jdbc.IdmsCallableStatement
public class IdmsCallableStatement
This class is used to execute SQL CALL statements on IDMS procedures and table procedures. IDMS actually treats all parameters as INOUT and returns their values in a cursor. A table procedure can return 0 or more rows, a procedure can return 0 or 1 row. This class encapsulates this cursor and returns the first row as output parameters. Any other rows from a table procedure are not returned. To get these rows, execute the table procedure using a SELECT.
Enabling the CallSelect option will cause the driver to treat all CALL statements as SELECT, which will cause a ResultSet to be returned for all procedure invocations. For consistency when this option is enabled, the DatabaseMetaData getProcedures method will indicate that all procedures return a result, and the getProcedureColumns method will list each parameter twice, once as an IN parameter, and once as a result column.
IdmsConnection.prepareCall(java.lang.String)
,
IdmsConnectOptions
Field Summary |
---|
Fields inherited from class ca.idms.jdbc.IdmsJdbcObject |
---|
FAKE_METHODS, FAKE_SUPPORT, fakeSupport, MESSAGES |
Fields inherited from class ca.idms.io.TraceObject |
---|
exclude, EXCLUDE, FALSE, include, INCLUDE, logWriter, PREFIX, PROPERTIES_FILE, PROPERTIES_KEY, snap, SNAP, SNAP_BYTES, SNAP_NATIVE, SNAP_OBJECT, SNAP_SQL, snapBytes, snapNative, snapObject, snapSql, stub, trace, TRACE, TRACE_FILE, TRACE_LIFE, TRACE_NATIVE, TRACE_PRODUCT, traceLife, traceNative, traceStream, TRUE |
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 ca.idms.qcli.SQLState |
---|
SQL_00000, SQL_01000, SQL_01004, SQL_07001, SQL_07009, SQL_08001, SQL_08002, SQL_08003, SQL_08004, SQL_08006, SQL_08007, SQL_0A000, SQL_21000, SQL_22000, SQL_22001, SQL_22003, SQL_22005, SQL_22007, SQL_24000, SQL_25000, SQL_3C000, SQL_40000, SQL_42000, SQL_HY000, SQL_HY004, SQL_HY009, SQL_HY010, SQL_HY024, SQL_HY106, SQL_HYC00 |
Method Summary | |
---|---|
java.sql.Array |
getArray(int p)
IDMS does not support the ARRAY type. |
java.sql.Array |
getArray(java.lang.String p)
IDMS does not support named parameters as defined by JDBC (and does not support the ARRAY type anyway). |
java.math.BigDecimal |
getBigDecimal(int p)
Gets the value of a NUMERIC parameter as a java.math.BigDecimal object. |
java.math.BigDecimal |
getBigDecimal(int p,
int s)
Gets the value of a NUMERIC parameter as a BigDecimal object. |
java.math.BigDecimal |
getBigDecimal(java.lang.String p)
Gets the value of a NUMERIC parameter as a java.math.BigDecimal object. |
java.sql.Blob |
getBlob(int p)
IDMS does not support the BLOB type. |
java.sql.Blob |
getBlob(java.lang.String p)
IDMS does not support BLOBs. |
boolean |
getBoolean(int p)
Gets the value of a BIT parameter as a boolean. |
boolean |
getBoolean(java.lang.String p)
Gets the value of a BIT parameter as a boolean. |
byte |
getByte(int p)
Gets the value of a TINYINT parameter as a byte. |
byte |
getByte(java.lang.String p)
Gets the value of a TINYINT parameter as a byte. |
byte[] |
getBytes(int p)
Gets the value of a BINARY parameter as a byte[] |
byte[] |
getBytes(java.lang.String p)
Gets the value of a BINARY parameter as a byte[] |
java.io.Reader |
getCharacterStream(int p)
Returns the value of the parameter as a java.io.Reader. |
java.io.Reader |
getCharacterStream(java.lang.String p)
Returns the value of the parameter as a java.io.Reader. |
java.sql.Clob |
getClob(int p)
IDMS does not support the CLOB type. |
java.sql.Clob |
getClob(java.lang.String p)
IDMS does not support the CLOB type. |
java.sql.Date |
getDate(int p)
Gets the value of a DATE parameter as a java.sql.Date object |
java.sql.Date |
getDate(int p,
java.util.Calendar c)
Gets the value of a SQL DATE parameter for the specified time zone. |
java.sql.Date |
getDate(java.lang.String p)
Gets the value of a parameter as a java.sql.Date object. |
java.sql.Date |
getDate(java.lang.String p,
java.util.Calendar c)
Gets the value of a parameter as a java.sql.Date object. |
double |
getDouble(int p)
Gets the value of a DOUBLE parameter as a double. |
double |
getDouble(java.lang.String p)
Get the value of a parameter as a Java double. |
float |
getFloat(int p)
Gets the value of a FLOAT parameter as a float. |
float |
getFloat(java.lang.String p)
Get the value of a parameter as a Java float. |
int |
getInt(int p)
Gets the value of an INTEGER parameter as a int. |
int |
getInt(java.lang.String p)
Get the value of a parameter as a Java int. |
long |
getLong(int p)
Gets the value of a BIGINT parameter as a long. |
long |
getLong(java.lang.String p)
Get the value of a parameter as a Java long. |
java.io.Reader |
getNCharacterStream(int p)
CA IDMS does not support National Character Sets |
java.io.Reader |
getNCharacterStream(java.lang.String p)
CA IDMS does not support National Character Sets |
java.sql.NClob |
getNClob(int p)
CA IDMS does not support National Character Sets or Clobs |
java.sql.NClob |
getNClob(java.lang.String p)
CA IDMS does not support National Character Sets or Clobs |
java.lang.String |
getNString(int p)
CA IDMS does not support National Character Sets |
java.lang.String |
getNString(java.lang.String p)
CA IDMS does not support National Character Sets |
java.lang.Object |
getObject(int p)
Gets the value of a parameter as a Java object. |
java.lang.Object |
getObject(int p,
java.util.Map<java.lang.String,java.lang.Class<?>> m)
Gets the value of a parameter as a Java object. |
java.lang.Object |
getObject(java.lang.String p)
Get the value of a parameter as a Java object. |
java.lang.Object |
getObject(java.lang.String p,
java.util.Map<java.lang.String,java.lang.Class<?>> m)
Gets the parameter value as an object of appropriate type. |
java.sql.Ref |
getRef(int p)
IDMS does not support the REFERENCE type. |
java.sql.Ref |
getRef(java.lang.String p)
IDMS does not support named parameters as defined by JDBC (and does not support the REFERENCE type anyway). |
java.sql.RowId |
getRowId(int p)
ROWID is not applicable for procedures in CA IDMS |
java.sql.RowId |
getRowId(java.lang.String p)
ROWID is not applicable for procedures in CA IDMS |
short |
getShort(int p)
Gets the value of a SMALLINT parameter as a short. |
short |
getShort(java.lang.String p)
Get the value of a parameter as a Java short. |
java.sql.SQLXML |
getSQLXML(int p)
CA IDMS does not support XML data type |
java.sql.SQLXML |
getSQLXML(java.lang.String p)
CA IDMS does not support XML data type |
java.lang.String |
getString(int p)
Gets the value of a CHAR or VARCHAR parameter as a String. |
java.lang.String |
getString(java.lang.String p)
Get the value of a parameter as a Java String. |
java.sql.Time |
getTime(int p)
Gets the value of a TIME parameter as a java.sql.Time object. |
java.sql.Time |
getTime(int p,
java.util.Calendar c)
Gets the value of a SQL TIME parameter for the specified time zone. |
java.sql.Time |
getTime(java.lang.String p)
Get the value of a parameter as a java.sql.Time object. |
java.sql.Time |
getTime(java.lang.String p,
java.util.Calendar c)
Gets the value of a parameter as a java.sql.Time object. |
java.sql.Timestamp |
getTimestamp(int p)
Gets the value of a TIMESTAMP parameter as a java.sql.Timestamp object. |
java.sql.Timestamp |
getTimestamp(int p,
java.util.Calendar c)
Gets the value of a SQL TIMESTAMP parameter for the specified time zone. |
java.sql.Timestamp |
getTimestamp(java.lang.String p)
Get the value of a parameter as a java.sql.Timestamp object. |
java.sql.Timestamp |
getTimestamp(java.lang.String p,
java.util.Calendar c)
Gets the value of a parameter as a java.sql.Time object. |
java.net.URL |
getURL(int p)
IDMS does not support named parameters as defined by JDBC (and does not support the URL type anyway). |
java.net.URL |
getURL(java.lang.String p)
IDMS does not support named parameters as defined by JDBC (and does not support the URL type anyway). |
void |
registerOutParameter(int p,
int t)
Registers an output parameter. |
void |
registerOutParameter(int p,
int t,
int s)
Registers an output parameter. |
void |
registerOutParameter(int p,
int t,
java.lang.String n)
IDMS does not support user defined types. |
void |
registerOutParameter(java.lang.String p,
int t)
Registers an output parameter. |
void |
registerOutParameter(java.lang.String p,
int t,
int s)
Registers an output parameter. |
void |
registerOutParameter(java.lang.String p,
int t,
java.lang.String n)
IDMS does not support user defined types. |
void |
setAsciiStream(int p,
java.io.InputStream in)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setAsciiStream(int p,
java.io.InputStream in,
int len)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setAsciiStream(int p,
java.io.InputStream in,
long len)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setAsciiStream(java.lang.String p,
java.io.InputStream in)
Sets a parameter to an ASCII stream value. |
void |
setAsciiStream(java.lang.String p,
java.io.InputStream in,
int len)
Sets a parameter to an ASCII stream value. |
void |
setAsciiStream(java.lang.String p,
java.io.InputStream in,
long len)
Sets a parameter to an ASCII stream value. |
void |
setBigDecimal(int p,
java.math.BigDecimal v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setBigDecimal(java.lang.String p,
java.math.BigDecimal v)
Sets a parameter to a BigDecimal value. |
void |
setBinaryStream(int p,
java.io.InputStream in)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setBinaryStream(int p,
java.io.InputStream in,
int len)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setBinaryStream(int p,
java.io.InputStream in,
long len)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setBinaryStream(java.lang.String p,
java.io.InputStream in)
Sets a parameter to a Binary Stream value. |
void |
setBinaryStream(java.lang.String p,
java.io.InputStream in,
int len)
Sets a parameter to a binary stream value. |
void |
setBinaryStream(java.lang.String p,
java.io.InputStream in,
long len)
Sets a parameter to a Binary stream value. |
void |
setBlob(java.lang.String p,
java.sql.Blob v)
CA IDMS doesn't support Blob data type |
void |
setBlob(java.lang.String p,
java.io.InputStream v)
CA IDMS doesn't support Blob data type |
void |
setBlob(java.lang.String p,
java.io.InputStream arg1,
long arg2)
CA IDMS doesn't support Blob data type |
void |
setBoolean(java.lang.String p,
boolean v)
Sets a named parameter to a Java boolean value. |
void |
setByte(int p,
byte v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setByte(java.lang.String p,
byte v)
Sets a named parameter to a Java byte value. |
void |
setBytes(int p,
byte[] v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setBytes(java.lang.String p,
byte[] v)
Sets a parameter to a Java array of bytes. |
void |
setCharacterStream(int p,
java.io.Reader in)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setCharacterStream(int p,
java.io.Reader in,
int len)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setCharacterStream(int p,
java.io.Reader in,
long len)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setCharacterStream(java.lang.String p,
java.io.Reader in)
Sets a parameter to a Character Stream value. |
void |
setCharacterStream(java.lang.String p,
java.io.Reader in,
int len)
Sets a parameter value from an input Reader. |
void |
setCharacterStream(java.lang.String p,
java.io.Reader in,
long len)
Sets a parameter to a Character stream value. |
void |
setClob(java.lang.String p,
java.sql.Clob arg1)
CA IDMS doesn't support Clob type |
void |
setClob(java.lang.String p,
java.io.Reader arg1)
CA IDMS doesn't support Clob type |
void |
setClob(java.lang.String p,
java.io.Reader arg1,
long arg2)
CA IDMS doesn't support Clob type |
void |
setDate(int p,
java.sql.Date v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setDate(int p,
java.sql.Date v,
java.util.Calendar c)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setDate(java.lang.String p,
java.sql.Date v)
Sets a named parameter to a java.sql.Date value. |
void |
setDate(java.lang.String p,
java.sql.Date v,
java.util.Calendar c)
Sets a parameter to a java.sql.Date value. |
void |
setDouble(int p,
double v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setDouble(java.lang.String p,
double v)
Sets a named parameter to a Java double value. |
void |
setFloat(int p,
float v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setFloat(java.lang.String p,
float v)
Sets a named parameter to a Java float value. |
void |
setInt(int p,
int v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setInt(java.lang.String p,
int v)
Sets a named parameter to a Java int value. |
void |
setLong(int p,
long v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setLong(java.lang.String p,
long v)
Sets a named parameter to a Java long value. |
void |
setNCharacterStream(java.lang.String p,
java.io.Reader arg1)
CA IDMS doesn't support National Character Sets |
void |
setNCharacterStream(java.lang.String p,
java.io.Reader arg1,
long arg2)
CA IDMS doesn't support National Character Sets |
void |
setNClob(java.lang.String p,
java.sql.NClob arg1)
CA IDMS doesn't support National Character Sets or Clobs |
void |
setNClob(java.lang.String p,
java.io.Reader arg1)
CA IDMS doesn't support National Character Sets or Clobs |
void |
setNClob(java.lang.String p,
java.io.Reader arg1,
long arg2)
CA IDMS doesn't support National Character Sets or Clobs |
void |
setNString(java.lang.String p,
java.lang.String arg1)
CA IDMS doesn't support National Character Sets |
void |
setNull(int p,
int sqlType)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setNull(int p,
int t,
java.lang.String n)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setNull(java.lang.String p,
int sqlType)
Sets a parameter to SQL NULL. |
void |
setNull(java.lang.String p,
int t,
java.lang.String n)
Sets an input parameter to NULL. |
void |
setObject(int p,
java.lang.Object o)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setObject(int p,
java.lang.Object o,
int type)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setObject(int p,
java.lang.Object o,
int type,
int scale)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setObject(java.lang.String p,
java.lang.Object o)
Sets a parameter to an object with implicit type and scale 0. |
void |
setObject(java.lang.String p,
java.lang.Object o,
int type)
Sets a parameter to an object value with a scale of zero. |
void |
setObject(java.lang.String p,
java.lang.Object o,
int type,
int scale)
Sets a parameter to an object value converted to the specified type. |
void |
setRowId(int p,
java.sql.RowId arg1)
ROWID is not applicable for procedures in CA IDMS |
void |
setRowId(java.lang.String p,
java.sql.RowId arg1)
ROWID is not applicable for procedures in CA IDMS |
void |
setShort(int p,
short v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setShort(java.lang.String p,
short v)
Sets a named parameter to a Java short value. |
void |
setSQLXML(java.lang.String p,
java.sql.SQLXML arg1)
CA IDMS doesn't support XML data type |
void |
setString(int p,
java.lang.String v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setString(java.lang.String p,
java.lang.String v)
Sets a named parameter to a Java String value. |
void |
setTime(int p,
java.sql.Time v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setTime(int p,
java.sql.Time v,
java.util.Calendar c)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setTime(java.lang.String p,
java.sql.Time v)
Sets a named parameter to a java.sql.Time value. |
void |
setTime(java.lang.String p,
java.sql.Time v,
java.util.Calendar c)
Sets a parameter to a java.sql.Time value. |
void |
setTimestamp(int p,
java.sql.Timestamp v)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setTimestamp(int p,
java.sql.Timestamp v,
java.util.Calendar c)
This method is a subclass of the identically-named IdmsPreparedStatement method which allows checking for possible mixing of ordinal and named parameter binding. |
void |
setTimestamp(java.lang.String p,
java.sql.Timestamp v)
Sets a named parameter to a java.sql.Timestamp value. |
void |
setTimestamp(java.lang.String p,
java.sql.Timestamp v,
java.util.Calendar c)
Sets a parameter to a java.sql.Time value. |
void |
setURL(java.lang.String p,
java.net.URL v)
CA IDMS does not support the URL data type. |
boolean |
wasNull()
Determines if the last parameter accessed was an SQL NULL value Since IDMS treats all parameters as INOUT, this is not limited to OUT parameters as described in the JDBC javadoc for this interface (it was probably just another typo in the spec anyway). |
Methods inherited from class ca.idms.jdbc.IdmsPreparedStatement |
---|
addBatch, clearParameters, close, execute, execute, executeBatch, executeQuery, executeQuery, executeUpdate, executeUpdate, get, getMetaData, getNullType, getParameterMetaData, setArray, setBlob, setBlob, setBlob, setBoolean, setClob, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRef, setSQLXML, setUnicodeStream, setURL |
Methods inherited from class ca.idms.jdbc.IdmsStatement |
---|
addBatch, cancel, clearBatch, execute, execute, execute, executeUpdate, executeUpdate, executeUpdate, finalize, getConnection, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, isPoolable, setCursorName, setEscapeProcessing, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout |
Methods inherited from class ca.idms.jdbc.IdmsResultObject |
---|
getFetchDirection, getFetchSize, isClosed, setFetchDirection, setFetchSize |
Methods inherited from class ca.idms.jdbc.IdmsJdbcObject |
---|
clearWarnings, getWarnings, hasCursor, hasUpdate, isStarted, isSuspended, isWrapperFor, notifyStatementError, unwrap |
Methods inherited from class ca.idms.io.TraceObject |
---|
getBoolean, getClasses, getInteger, getProperty, listProperties, message, parseList, print, print, print, println, println, snap, snap, snap, snap, snap, snap, snap, toHex, toHex, toHex, toHex, toHex, toString, trace, trace, trace, trace, trace, trace, traceEntry, unloadProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.sql.PreparedStatement |
---|
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setBlob, setBlob, setBlob, setBoolean, setClob, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRef, setSQLXML, setUnicodeStream, setURL |
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, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
Method Detail |
---|
public java.lang.String getString(int p) throws java.sql.SQLException
getString
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic boolean getBoolean(int p) throws java.sql.SQLException
getBoolean
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic byte getByte(int p) throws java.sql.SQLException
getByte
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic short getShort(int p) throws java.sql.SQLException
getShort
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic int getInt(int p) throws java.sql.SQLException
getInt
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic long getLong(int p) throws java.sql.SQLException
getLong
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic float getFloat(int p) throws java.sql.SQLException
getFloat
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic double getDouble(int p) throws java.sql.SQLException
getDouble
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic java.math.BigDecimal getBigDecimal(int p, int s) throws java.sql.SQLException
getBigDecimal
in interface java.sql.CallableStatement
p
- parameter numbers
- scale
java.sql.SQLException
- if a database error occurspublic byte[] getBytes(int p) throws java.sql.SQLException
getBytes
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic java.sql.Date getDate(int p) throws java.sql.SQLException
getDate
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic java.sql.Time getTime(int p) throws java.sql.SQLException
getTime
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic java.sql.Timestamp getTimestamp(int p) throws java.sql.SQLException
getTimestamp
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic java.lang.Object getObject(int p) throws java.sql.SQLException
This method returns a Java object whose type coresponds to the SQL type that was registered for this parameter using registerOutParameter.
Note that this method may be used to read datatabase-specific, abstract data types. This is done by specifying a targetSqlType of java.sql.types.OTHER, which allows the driver to return a database-specific Java type.
getObject
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if a database error occurspublic void registerOutParameter(int p, int t) throws java.sql.SQLException
It is up to the procedure to ignore the input value.
registerOutParameter
in interface java.sql.CallableStatement
p
- parameter index.t
- SQL type.
java.sql.SQLException
- if an error occurs.IdmsPreparedStatement.setNull(int, int)
public void registerOutParameter(int p, int t, int s) throws java.sql.SQLException
registerOutParameter
in interface java.sql.CallableStatement
p
- parameter index.t
- SQL type.s
- scale.
java.sql.SQLException
- if an error occurs.IdmsPreparedStatement.setNull(int, int)
public boolean wasNull() throws java.sql.SQLException
wasNull
in interface java.sql.CallableStatement
java.sql.SQLException
- not really.public java.math.BigDecimal getBigDecimal(int p) throws java.sql.SQLException
getBigDecimal
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if an error occurspublic java.sql.Date getDate(int p, java.util.Calendar c) throws java.sql.SQLException
getDate
in interface java.sql.CallableStatement
p
- parameter numberc
- Calendar object specifying time zone information
java.sql.SQLException
- if an error occurspublic java.sql.Time getTime(int p, java.util.Calendar c) throws java.sql.SQLException
getTime
in interface java.sql.CallableStatement
p
- parameter numberc
- Calendar object specifying time zone information
java.sql.SQLException
- if an error occurspublic java.sql.Timestamp getTimestamp(int p, java.util.Calendar c) throws java.sql.SQLException
getTimestamp
in interface java.sql.CallableStatement
p
- parameter numberc
- Calendar object specifying time zone information
java.sql.SQLException
- if an error occurspublic java.lang.Object getObject(int p, java.util.Map<java.lang.String,java.lang.Class<?>> m) throws java.sql.SQLException
getObject
in interface java.sql.CallableStatement
p
- parameter numberm
- Map object, ignored
java.sql.SQLException
- alwayspublic java.sql.Array getArray(int p) throws java.sql.SQLException
getArray
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public java.sql.Blob getBlob(int p) throws java.sql.SQLException
getBlob
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public java.sql.Clob getClob(int p) throws java.sql.SQLException
getClob
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public java.sql.Ref getRef(int p) throws java.sql.SQLException
getRef
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public void registerOutParameter(int p, int t, java.lang.String n) throws java.sql.SQLException
registerOutParameter
in interface java.sql.CallableStatement
p
- parameter index, ignored.t
- SQL type, ignored.n
- user defined type name, ignored.
java.sql.SQLException
- not really.public java.sql.Array getArray(java.lang.String p) throws java.sql.SQLException
getArray
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic java.math.BigDecimal getBigDecimal(java.lang.String p) throws java.sql.SQLException
getBigDecimal
in interface java.sql.CallableStatement
p
- parameter name
java.sql.SQLException
- if a database error occurspublic java.sql.Blob getBlob(java.lang.String p) throws java.sql.SQLException
getBlob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic boolean getBoolean(java.lang.String p) throws java.sql.SQLException
getBoolean
in interface java.sql.CallableStatement
p
- parameter name
java.sql.SQLException
- if a database error occurspublic byte getByte(java.lang.String p) throws java.sql.SQLException
getByte
in interface java.sql.CallableStatement
p
- parameter name
java.sql.SQLException
- if a database error occurspublic byte[] getBytes(java.lang.String p) throws java.sql.SQLException
getBytes
in interface java.sql.CallableStatement
p
- parameter name
java.sql.SQLException
- if a database error occurspublic java.sql.Clob getClob(java.lang.String p) throws java.sql.SQLException
getClob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic java.sql.Date getDate(java.lang.String p) throws java.sql.SQLException
getDate
in interface java.sql.CallableStatement
p
- parameter name
java.sql.SQLException
- if a database error occurs.public java.sql.Date getDate(java.lang.String p, java.util.Calendar c) throws java.sql.SQLException
getDate
in interface java.sql.CallableStatement
p
- parameter namec
- Calendar object specifying time zone information
java.sql.SQLException
- if an error occurspublic double getDouble(java.lang.String p) throws java.sql.SQLException
getDouble
in interface java.sql.CallableStatement
p
- the parameter name
java.sql.SQLException
- if a database error occurs.public float getFloat(java.lang.String p) throws java.sql.SQLException
getFloat
in interface java.sql.CallableStatement
p
- the parameter name
java.sql.SQLException
- if a database error occurs.public int getInt(java.lang.String p) throws java.sql.SQLException
getInt
in interface java.sql.CallableStatement
p
- the parameter name
java.sql.SQLException
- if a database error occurs.public long getLong(java.lang.String p) throws java.sql.SQLException
getLong
in interface java.sql.CallableStatement
p
- the parameter name
java.sql.SQLException
- if a database error occurs.public java.lang.Object getObject(java.lang.String p) throws java.sql.SQLException
Get the value of a parameter as a Java object.
This method will return the value of the given column as a Java object. The type of the Java object will be the default Java Object type corresponding to the column's SQL type, following the mapping specified in the JDBC spec.
This method may also be used to read database-specific abstract data types.
getObject
in interface java.sql.CallableStatement
p
- the name of the parameter
java.sql.SQLException
- if a database error occurs.public java.lang.Object getObject(java.lang.String p, java.util.Map<java.lang.String,java.lang.Class<?>> m) throws java.sql.SQLException
getObject(int)
.
getObject
in interface java.sql.CallableStatement
p
- parameter namem
- the Map, ignored
java.sql.SQLException
- if an error occurspublic java.sql.Ref getRef(java.lang.String p) throws java.sql.SQLException
getRef
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic short getShort(java.lang.String p) throws java.sql.SQLException
getShort
in interface java.sql.CallableStatement
p
- the parameter name
java.sql.SQLException
- if a database error occurs.public java.lang.String getString(java.lang.String p) throws java.sql.SQLException
getString
in interface java.sql.CallableStatement
p
- the parameter name
java.sql.SQLException
- if a database error occurs.public java.sql.Time getTime(java.lang.String p) throws java.sql.SQLException
getTime
in interface java.sql.CallableStatement
p
- the parameter name
java.sql.SQLException
- if a database error occurs.public java.sql.Time getTime(java.lang.String p, java.util.Calendar c) throws java.sql.SQLException
getTime
in interface java.sql.CallableStatement
p
- parameter namec
- Calendar object specifying time zone information.
java.sql.SQLException
- if an error occurspublic java.sql.Timestamp getTimestamp(java.lang.String p) throws java.sql.SQLException
getTimestamp
in interface java.sql.CallableStatement
p
- the parameter name
java.sql.SQLException
- if a database error occurs.public java.sql.Timestamp getTimestamp(java.lang.String p, java.util.Calendar c) throws java.sql.SQLException
getTimestamp
in interface java.sql.CallableStatement
p
- parameter namec
- Calendar object specifying time zone information.
java.sql.SQLException
- if an error occurspublic java.net.URL getURL(int p) throws java.sql.SQLException
getURL
in interface java.sql.CallableStatement
p
- parameter name
java.sql.SQLException
- alwayspublic java.net.URL getURL(java.lang.String p) throws java.sql.SQLException
getURL
in interface java.sql.CallableStatement
p
- parameter name
java.sql.SQLException
- alwayspublic void registerOutParameter(java.lang.String p, int t) throws java.sql.SQLException
It is up to the procedure to ignore the input value.
registerOutParameter
in interface java.sql.CallableStatement
p
- parameter name.t
- SQL type.
java.sql.SQLException
- if an error occurs.public void registerOutParameter(java.lang.String p, int t, int s) throws java.sql.SQLException
registerOutParameter
in interface java.sql.CallableStatement
p
- parameter name.t
- SQL type.s
- scale.
java.sql.SQLException
- if an error occurs.public void registerOutParameter(java.lang.String p, int t, java.lang.String n) throws java.sql.SQLException
registerOutParameter
in interface java.sql.CallableStatement
p
- parameter name, ignored.t
- SQL type, ignored.n
- user defined type name, ignored.
java.sql.SQLException
- not really.public void setAsciiStream(java.lang.String p, java.io.InputStream in, int len) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setAsciiStream(int, InputStream, int)
setAsciiStream
in interface java.sql.CallableStatement
p
- parameter namein
- the java input stream which contains the ASCII parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if a database-access error occurs.public void setBigDecimal(java.lang.String p, java.math.BigDecimal v) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setBigDecimal(int, BigDecimal)
setBigDecimal
in interface java.sql.CallableStatement
p
- parameter namev
- the parameter value
java.sql.SQLException
- if value would be truncated.public void setBinaryStream(java.lang.String p, java.io.InputStream in, int len) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setBinaryStream(int, InputStream, int)
setBinaryStream
in interface java.sql.CallableStatement
p
- parameter namein
- the java input stream which contains the binary parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if a database-access error occurs.public void setBoolean(java.lang.String p, boolean v) throws java.sql.SQLException
setBoolean
in interface java.sql.CallableStatement
p
- parameter namev
- the parameter value
java.sql.SQLException
- (not really).public void setByte(java.lang.String p, byte v) throws java.sql.SQLException
setByte
in interface java.sql.CallableStatement
p
- parameter namev
- byte value
java.sql.SQLException
public void setBytes(java.lang.String p, byte[] v) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setBytes(int, byte[])
setBytes
in interface java.sql.CallableStatement
p
- parameter namev
- the parameter value
java.sql.SQLException
- (not really)public void setCharacterStream(java.lang.String p, java.io.Reader in, int len) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setCharacterStream(int, Reader, int)
setCharacterStream
in interface java.sql.CallableStatement
p
- parameter namein
- the input java.io.Readerlen
- number of characters
java.sql.SQLException
- if an error occurspublic void setDate(java.lang.String p, java.sql.Date v) throws java.sql.SQLException
setDate
in interface java.sql.CallableStatement
p
- parameter namev
- Date value
java.sql.SQLException
public void setDate(java.lang.String p, java.sql.Date v, java.util.Calendar c) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setDate(int, Date, Calendar)
setDate
in interface java.sql.CallableStatement
p
- parameter namev
- Date valuec
- Calendar object specifying time zone information
java.sql.SQLException
- if an error occurspublic void setDouble(java.lang.String p, double v) throws java.sql.SQLException
setDouble
in interface java.sql.CallableStatement
p
- parameter namev
- double value
java.sql.SQLException
public void setFloat(java.lang.String p, float v) throws java.sql.SQLException
setFloat
in interface java.sql.CallableStatement
p
- parameter namev
- float value
java.sql.SQLException
public void setInt(java.lang.String p, int v) throws java.sql.SQLException
setInt
in interface java.sql.CallableStatement
p
- parameter namev
- int value
java.sql.SQLException
public void setLong(java.lang.String p, long v) throws java.sql.SQLException
setLong
in interface java.sql.CallableStatement
p
- parameter namev
- long value
java.sql.SQLException
public void setNull(java.lang.String p, int sqlType) throws java.sql.SQLException
setNull
in interface java.sql.CallableStatement
p
- parameter namesqlType
- SQL type code defined by java.sql.Types
java.sql.SQLException
- if a database-access error occurs.public void setNull(java.lang.String p, int t, java.lang.String n) throws java.sql.SQLException
setNull(String, int)
.
setNull
in interface java.sql.CallableStatement
p
- parameter namet
- SQL type from java.sql.Typesn
- user defined type name, ignored
java.sql.SQLException
- if an error occurspublic void setObject(java.lang.String p, java.lang.Object o) throws java.sql.SQLException
The JDBC specification specifies a standard mapping from Java Object types to SQL types. The given argument java object will be converted to the corresponding IDMS SQL type before being sent to the database.
setObject
in interface java.sql.CallableStatement
p
- parameter nameo
- object containing the input parameter value
java.sql.SQLException
- if a database-access error occurs.setObject(String, Object, int, int)
public void setObject(java.lang.String p, java.lang.Object o, int type) throws java.sql.SQLException
setObject
in interface java.sql.CallableStatement
p
- parameter nameo
- object containing the input parameter valuetype
- JDBC SQL type.
java.sql.SQLException
- if a database-access error occurs.setObject(String, Object, int, int)
public void setObject(java.lang.String p, java.lang.Object o, int type, int scale) throws java.sql.SQLException
The given Java object will be converted to the IDMS type that corresponds the specified JDBC type before being sent to the database.
Use the java.lang equivalent objects for integral values.
Note that since there are no IDMS specific abstract data types specifying type = OTHER will cause an SQLException to be thrown.
setObject
in interface java.sql.CallableStatement
p
- parameter nameo
- object containing the input parameter valuetype
- SQL type (as defined in java.sql.Types) to be
sent to the database. The scale argument may
further qualify this type.scale
- number of digits after the decimal for DECIMAL
NUMERIC types, ignored for all other types.
java.sql.SQLException
- if a database-access error occurs.public void setShort(java.lang.String p, short v) throws java.sql.SQLException
setShort
in interface java.sql.CallableStatement
p
- parameter namev
- short value
java.sql.SQLException
public void setString(java.lang.String p, java.lang.String v) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setAsciiStream(int, InputStream, int)
setString
in interface java.sql.CallableStatement
p
- parameter namev
- String value
java.sql.SQLException
- if mixing ordinals with named parameterspublic void setTime(java.lang.String p, java.sql.Time v) throws java.sql.SQLException
setTime
in interface java.sql.CallableStatement
p
- parameter namev
- Time value
java.sql.SQLException
- alwayspublic void setTime(java.lang.String p, java.sql.Time v, java.util.Calendar c) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setTime(int, Time, Calendar)
setTime
in interface java.sql.CallableStatement
p
- parameter namev
- Time valuec
- Calendar object specifying time zone information
java.sql.SQLException
- if an error occurssetTime(int,java.sql.Time)
public void setTimestamp(java.lang.String p, java.sql.Timestamp v) throws java.sql.SQLException
setTimestamp
in interface java.sql.CallableStatement
p
- parameter namev
- Timestamp value
java.sql.SQLException
public void setTimestamp(java.lang.String p, java.sql.Timestamp v, java.util.Calendar c) throws java.sql.SQLException
This method determines the ordinal which corresponds to the parameter
name, then calls setTimestamp(int, Timestamp, Calendar)
setTimestamp
in interface java.sql.CallableStatement
p
- parameter namev
- Timestamp valuec
- Calendar object specifying time zone information
java.sql.SQLException
- if an error occurssetTimestamp(int,java.sql.Timestamp)
public void setURL(java.lang.String p, java.net.URL v) throws java.sql.SQLException
setURL
in interface java.sql.CallableStatement
p
- parameter name, ignoredv
- parameter value, ignored
java.sql.SQLException
- alwayspublic java.io.Reader getCharacterStream(int p) throws java.sql.SQLException
getCharacterStream
in interface java.sql.CallableStatement
p
- parameter number
java.sql.SQLException
- if an error occurspublic java.io.Reader getCharacterStream(java.lang.String p) throws java.sql.SQLException
getCharacterStream
in interface java.sql.CallableStatement
p
- parameter name
java.sql.SQLException
- if an error occurspublic java.io.Reader getNCharacterStream(int p) throws java.sql.SQLException
getNCharacterStream
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwayspublic java.io.Reader getNCharacterStream(java.lang.String p) throws java.sql.SQLException
getNCharacterStream
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic java.sql.NClob getNClob(int p) throws java.sql.SQLException
getNClob
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwayspublic java.sql.NClob getNClob(java.lang.String p) throws java.sql.SQLException
getNClob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic java.lang.String getNString(int p) throws java.sql.SQLException
getNString
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwayspublic java.lang.String getNString(java.lang.String p) throws java.sql.SQLException
getNString
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic java.sql.RowId getRowId(int p) throws java.sql.SQLException
getRowId
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwayspublic java.sql.RowId getRowId(java.lang.String p) throws java.sql.SQLException
getRowId
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic java.sql.SQLXML getSQLXML(int p) throws java.sql.SQLException
getSQLXML
in interface java.sql.CallableStatement
p
- parameter number, ignored
java.sql.SQLException
- alwayspublic java.sql.SQLXML getSQLXML(java.lang.String p) throws java.sql.SQLException
getSQLXML
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setAsciiStream(java.lang.String p, java.io.InputStream in) throws java.sql.SQLException
setAsciiStream(String, InputStream, int)
passing a length
which is the maximum size of a CHAR column in IDMS (32,760 bytes).
setAsciiStream
in interface java.sql.CallableStatement
p
- parameter namein
- the java input stream which contains the ASCII parameter value
java.sql.SQLException
- if a database-access error occurs.public void setAsciiStream(java.lang.String p, java.io.InputStream in, long len) throws java.sql.SQLException
setAsciiStream(String, InputStream, int)
passing either the
specified length, or the maximum size of a CHAR column in IDMS
(32,760 bytes), whichever is less.
setAsciiStream
in interface java.sql.CallableStatement
p
- parameter namein
- the java input stream which contains the ASCII parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if a database-access error occurs.public void setBinaryStream(java.lang.String p, java.io.InputStream in) throws java.sql.SQLException
setBinaryStream(String, InputStream, int)
passing a length
which is the maximum size of a BINARY column in IDMS (32,760 bytes).
setBinaryStream
in interface java.sql.CallableStatement
p
- parameter namein
- the java input stream which contains the binary parameter value
java.sql.SQLException
- if a database-access error occurs.public void setBinaryStream(java.lang.String p, java.io.InputStream in, long len) throws java.sql.SQLException
setBinaryStream(String, InputStream, int)
passing either the
specified length, or the maximum size of a BINARY value in IDMS
(32,760 bytes), whichever is less.
setBinaryStream
in interface java.sql.CallableStatement
p
- parameter namein
- the java input stream which contains the binary parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if a database-access error occurs.public void setBlob(java.lang.String p, java.sql.Blob v) throws java.sql.SQLException
setBlob
in interface java.sql.CallableStatement
v
- parameter value, ignored
java.sql.SQLException
- alwayspublic void setBlob(java.lang.String p, java.io.InputStream v) throws java.sql.SQLException
setBlob
in interface java.sql.CallableStatement
v
- parameter value, ignored
java.sql.SQLException
- alwayspublic void setBlob(java.lang.String p, java.io.InputStream arg1, long arg2) throws java.sql.SQLException
setBlob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setCharacterStream(java.lang.String p, java.io.Reader in) throws java.sql.SQLException
setCharacterStream(String, Reader, int)
passing a length which is the maximum size of a CHAR
column in IDMS (32,760 bytes).
setCharacterStream
in interface java.sql.CallableStatement
p
- parameter namein
- the java input stream which contains the character parameter value
java.sql.SQLException
- if a database-access error occurs.public void setCharacterStream(java.lang.String p, java.io.Reader in, long len) throws java.sql.SQLException
setCharacterStream(String, Reader, int)
passing
either the specified length, or the maximum size of a CHAR
column in IDMS (32,760 bytes), whichever is less.
setCharacterStream
in interface java.sql.CallableStatement
p
- parameter namein
- the java input stream which contains the character parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if a database-access error occurs.public void setClob(java.lang.String p, java.sql.Clob arg1) throws java.sql.SQLException
setClob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setClob(java.lang.String p, java.io.Reader arg1) throws java.sql.SQLException
setClob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setClob(java.lang.String p, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setClob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setNCharacterStream(java.lang.String p, java.io.Reader arg1) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setNCharacterStream(java.lang.String p, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setNClob(java.lang.String p, java.sql.NClob arg1) throws java.sql.SQLException
setNClob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setNClob(java.lang.String p, java.io.Reader arg1) throws java.sql.SQLException
setNClob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setNClob(java.lang.String p, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setNClob
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setNString(java.lang.String p, java.lang.String arg1) throws java.sql.SQLException
setNString
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setRowId(java.lang.String p, java.sql.RowId arg1) throws java.sql.SQLException
setRowId
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setSQLXML(java.lang.String p, java.sql.SQLXML arg1) throws java.sql.SQLException
setSQLXML
in interface java.sql.CallableStatement
p
- parameter name, ignored
java.sql.SQLException
- alwayspublic void setAsciiStream(int p, java.io.InputStream in, int len) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
setAsciiStream
in class IdmsPreparedStatement
p
- parameter index starting at 1in
- the java input stream which contains the ASCII parameter valuelen
- the maximum number of bytes in the stream
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setAsciiStream(int p, java.io.InputStream in) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
setAsciiStream
in class IdmsPreparedStatement
p
- parameter numberin
- the java input stream which contains the ASCII parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setAsciiStream(int p, java.io.InputStream in, long len) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
setAsciiStream
in class IdmsPreparedStatement
p
- parameter numberin
- the java input stream which contains the ASCII parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setBigDecimal(int p, java.math.BigDecimal v) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
setBigDecimal
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
value would be truncated, or a database error occurs.public void setBinaryStream(int p, java.io.InputStream in, int len) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
setBinaryStream
in class IdmsPreparedStatement
p
- parameter index starting at 1in
- the java input stream which contains the binary parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setBinaryStream(int p, java.io.InputStream in) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
setBinaryStream
in class IdmsPreparedStatement
p
- parameter numberin
- the java input stream which contains the binary parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setBinaryStream(int p, java.io.InputStream in, long len) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
setBinaryStream
in class IdmsPreparedStatement
p
- parameter namein
- the java input stream which contains the binary parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setByte(int p, byte v) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
setByte
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setBytes(int p, byte[] v) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
setBytes
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setCharacterStream(int p, java.io.Reader in, int len) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
setCharacterStream
in class IdmsPreparedStatement
p
- parameter numberin
- the input java.io.Readerlen
- number of characters
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setCharacterStream(int p, java.io.Reader in) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
setCharacterStream
in class IdmsPreparedStatement
p
- parameter numberin
- the java input stream which contains the character parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setCharacterStream(int p, java.io.Reader in, long len) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
setCharacterStream
in class IdmsPreparedStatement
p
- parameter numberin
- the java input stream which contains the character parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setDate(int p, java.sql.Date v) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
setDate
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.IdmsPreparedStatement.setDate(int,java.sql.Date,Calendar)
public void setDate(int p, java.sql.Date v, java.util.Calendar c) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
setDate
in class IdmsPreparedStatement
p
- parameter numberv
- Date valuec
- Calendar object specifying time zone information
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.IdmsPreparedStatement.setDate(int,java.sql.Date)
public void setDouble(int p, double v) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
setDouble
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setFloat(int p, float v) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
setFloat
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setInt(int p, int v) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
setInt
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setLong(int p, long v) throws java.sql.SQLException
setLong
in interface java.sql.PreparedStatement
setLong
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setNull(int p, int sqlType) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
setNull
in class IdmsPreparedStatement
p
- parameter index starting at 1sqlType
- SQL type code defined by java.sql.Types
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setNull(int p, int t, java.lang.String n) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
setNull
in class IdmsPreparedStatement
p
- parameter numbert
- SQL type from java.sql.Typesn
- user defined type name, ignored
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setObject(int p, java.lang.Object o) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
setObject
in class IdmsPreparedStatement
p
- parameter index starting at 1o
- object containing the input parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.IdmsPreparedStatement.setObject(int, Object, int, int)
public void setObject(int p, java.lang.Object o, int type) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
setObject
in class IdmsPreparedStatement
p
- parameter index starting at 1o
- object containing the input parameter valuetype
- JDBC SQL type.
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.IdmsPreparedStatement.setObject(int, Object, int, int)
public void setObject(int p, java.lang.Object o, int type, int scale) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
setObject
in class IdmsPreparedStatement
p
- parameter index starting at 1o
- object containing the input parameter valuetype
- SQL type (as defined in java.sql.Types) to be
sent to the database. The scale argument may
further qualify this type.scale
- number of digits after the decimal for DECIMAL
NUMERIC types, ignored for all other types.
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setRowId(int p, java.sql.RowId arg1) throws java.sql.SQLException
setRowId
in interface java.sql.PreparedStatement
setRowId
in class IdmsPreparedStatement
p
- parameter number, ignoredarg1
- the parameter value
java.sql.SQLException
- alwayspublic void setShort(int p, short v) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
setShort
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setString(int p, java.lang.String v) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
setString
in class IdmsPreparedStatement
p
- parameter number starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.public void setTime(int p, java.sql.Time v) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
setTime
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.IdmsPreparedStatement.setTime(int,java.sql.Time,Calendar)
public void setTime(int p, java.sql.Time v, java.util.Calendar c) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
setTime
in class IdmsPreparedStatement
p
- parameter numberv
- Time valuec
- Calendar object specifying time zone information
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.IdmsPreparedStatement.setTime(int,java.sql.Time)
public void setTimestamp(int p, java.sql.Timestamp v) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
setTimestamp
in class IdmsPreparedStatement
p
- parameter index starting at 1v
- the parameter value
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.IdmsPreparedStatement.setTimestamp(int,java.sql.Timestamp,Calendar)
public void setTimestamp(int p, java.sql.Timestamp v, java.util.Calendar c) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
setTimestamp
in class IdmsPreparedStatement
p
- parameter numberv
- Timestamp valuec
- Calendar object specifying time zone information
java.sql.SQLException
- if statement has been closed, p is out of bounds
or a database error occurs.IdmsPreparedStatement.setTimestamp(int,java.sql.Timestamp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |