|
||||||||||
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
public class IdmsPreparedStatement
Represents a CA IDMS prepared statement.
IdmsConnection
,
IdmsJdbcObject
,
IdmsStatement
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 | |
---|---|
void |
addBatch()
Adds a set of parameters to the list of batch updates. |
void |
clearParameters()
Clears the parameter buffer and associated descriptors. |
void |
close()
Indicates that the PreparedStatement is no longer prepared. |
boolean |
execute()
Executes a prepared statement. |
boolean |
execute(java.lang.String sql)
Hides super class method, which is invalid here. |
int[] |
executeBatch()
Executes the current set of batch updates. |
java.sql.ResultSet |
executeQuery()
Executes a prepared SQL query. |
java.sql.ResultSet |
executeQuery(java.lang.String sql)
Hides super class method, which is invalid here. |
int |
executeUpdate()
Executes a SQL INSERT, UPDATE or DELETE statement. |
int |
executeUpdate(java.lang.String sql)
Hides super class method, which is invalid here. |
protected java.lang.Object |
get(java.lang.reflect.Field f)
Overrides the default get method to allow the default snap method access to the value of a non-public variable. |
java.sql.ResultSetMetaData |
getMetaData()
Get result set descriptors, prepares the statement if needed. |
protected ca.idms.qcli.Sqlvar |
getNullType(int sqlType)
Gets the appropriate Sqlvar for a Null SQL type. |
java.sql.ParameterMetaData |
getParameterMetaData()
Gets a description of the statement's parameters. |
void |
setArray(int p,
java.sql.Array v)
IDMS does not support the ARRAY type. |
void |
setAsciiStream(int p,
java.io.InputStream in)
Sets a parameter to an ASCII stream value. |
void |
setAsciiStream(int p,
java.io.InputStream in,
int len)
Sets a parameter to an ASCII stream value. |
void |
setAsciiStream(int p,
java.io.InputStream in,
long len)
Sets a parameter to an ASCII stream value. |
void |
setBigDecimal(int p,
java.math.BigDecimal v)
Sets a parameter to a BigDecimal value. |
void |
setBinaryStream(int p,
java.io.InputStream in)
Sets a parameter to a Binary Stream value. |
void |
setBinaryStream(int p,
java.io.InputStream in,
int len)
Sets a parameter to a binary stream value. |
void |
setBinaryStream(int p,
java.io.InputStream in,
long len)
Sets a parameter to a Binary stream value. |
void |
setBlob(int p,
java.sql.Blob v)
IDMS does not support the BLOB type. |
void |
setBlob(int p,
java.io.InputStream arg1)
CA IDMS does not support Blob data type |
void |
setBlob(int p,
java.io.InputStream arg1,
long arg2)
CA IDMS does not support Blob data type |
void |
setBoolean(int p,
boolean v)
Sets a parameter to a Java boolean value. |
void |
setByte(int p,
byte v)
Sets a parameter to a Java byte value. |
void |
setBytes(int p,
byte[] v)
Sets a parameter to a Java array of bytes. |
void |
setCharacterStream(int p,
java.io.Reader in)
Sets a parameter to a Character Stream value. |
void |
setCharacterStream(int p,
java.io.Reader in,
int len)
Sets a parameter value from an input Reader. |
void |
setCharacterStream(int p,
java.io.Reader in,
long len)
Sets a parameter to a Character stream value. |
void |
setClob(int p,
java.sql.Clob v)
IDMS does not support the CLOB type. |
void |
setClob(int p,
java.io.Reader arg1)
CA IDMS does not support Clob data type |
void |
setClob(int p,
java.io.Reader arg1,
long arg2)
CA IDMS does not support Clob data type |
void |
setDate(int p,
java.sql.Date v)
Sets a parameter to a java.sql.Date value. |
void |
setDate(int p,
java.sql.Date v,
java.util.Calendar c)
Sets a parameter to a java.sql.Date value. |
void |
setDouble(int p,
double v)
Sets a parameter to a Java double value. |
void |
setFloat(int p,
float v)
Sets a parameter to a Java float value. |
void |
setInt(int p,
int v)
Sets a parameter to a Java int value. |
void |
setLong(int p,
long v)
Sets a parameter to a Java long value. |
void |
setNCharacterStream(int p,
java.io.Reader arg1)
CA IDMS does not support National Character Sets |
void |
setNCharacterStream(int p,
java.io.Reader arg1,
long arg2)
CA IDMS does not support National Character Sets |
void |
setNClob(int p,
java.sql.NClob arg1)
CA IDMS does not support National Character Sets or Clobs |
void |
setNClob(int p,
java.io.Reader arg1)
CA IDMS does not support National Character Sets or Clobs |
void |
setNClob(int p,
java.io.Reader arg1,
long arg2)
CA IDMS does not support National Character Sets or Clobs |
void |
setNString(int p,
java.lang.String arg1)
CA IDMS does not support National Character Sets |
void |
setNull(int p,
int sqlType)
Sets a parameter to SQL NULL. |
void |
setNull(int p,
int t,
java.lang.String n)
Sets an input parameter to NULL. |
void |
setObject(int p,
java.lang.Object o)
Sets a parameter to an object with implicit type and scale 0. |
void |
setObject(int p,
java.lang.Object o,
int type)
Sets a parameter to an object value with a scale of zero. |
void |
setObject(int p,
java.lang.Object o,
int type,
int scale)
Sets a parameter to an object value converted to the specified type. |
void |
setRef(int p,
java.sql.Ref v)
IDMS does not support the REFERENCE type. |
void |
setRowId(int p,
java.sql.RowId v)
Sets a parameter to a Java RowId type. |
void |
setShort(int p,
short v)
Sets a parameter to a Java short value. |
void |
setSQLXML(int p,
java.sql.SQLXML arg1)
CA IDMS does not support XML data type |
void |
setString(int p,
java.lang.String v)
Sets a parameter to a Java String value. |
void |
setTime(int p,
java.sql.Time v)
Sets a parameter to a java.sql.Time value. |
void |
setTime(int 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)
Sets a parameter to a java.sql.Timestamp value. |
void |
setTimestamp(int p,
java.sql.Timestamp v,
java.util.Calendar c)
Sets a parameter to a java.sql.Time value. |
void |
setUnicodeStream(int p,
java.io.InputStream in,
int len)
Deprecated. But required by PreparedStatement interface |
void |
setURL(int p,
java.net.URL v)
IDMS does not support the URL type. |
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.Statement |
---|
addBatch, cancel, clearBatch, clearWarnings, execute, execute, execute, 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 |
---|
protected java.lang.Object get(java.lang.reflect.Field f) throws java.lang.IllegalAccessException
get
in class IdmsStatement
f
- a Field returned by Class.getDeclaredFields
java.lang.IllegalAccessException
- should not
really happen, but Field.get requires itTraceObject.snap
,
TraceObject.snap()
public void close() throws java.sql.SQLException
close
in interface java.sql.Statement
close
in class IdmsStatement
java.sql.SQLException
- if a database-access error occurs.public boolean execute() throws java.sql.SQLException
execute
in interface java.sql.PreparedStatement
java.sql.SQLException
- if a database-access error occurs.IdmsStatement.execute(java.lang.String)
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
executeQuery
in interface java.sql.PreparedStatement
java.sql.SQLException
- if a database-access error occurs.public int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
- if a database-access error occurs.public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
executeQuery
in class IdmsStatement
sql
- invalid!.
java.sql.SQLException
- if called.public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
executeUpdate
in class IdmsStatement
sql
- invalid!.
java.sql.SQLException
- if called.public boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
execute
in class IdmsStatement
sql
- invalid!.
java.sql.SQLException
- if called.IdmsStatement.getResultSet()
,
IdmsStatement.getUpdateCount()
,
IdmsStatement.getMoreResults()
public void setNull(int p, int sqlType) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
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 setBoolean(int p, boolean v) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
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 setByte(int p, byte v) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
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 setShort(int p, short v) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
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
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
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
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 setDouble(int p, double v) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
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 setBigDecimal(int p, java.math.BigDecimal v) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
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 setString(int p, java.lang.String v) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
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 setBytes(int p, byte[] v) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
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 setDate(int p, java.sql.Date v) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
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.setDate(int,java.sql.Date,Calendar)
public void setTime(int p, java.sql.Time v) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
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.setTime(int,java.sql.Time,Calendar)
public void setTimestamp(int p, java.sql.Timestamp v) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
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.setTimestamp(int,java.sql.Timestamp,Calendar)
public void setAsciiStream(int p, java.io.InputStream in, int len) throws java.sql.SQLException
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. 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: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setAsciiStream
in interface java.sql.PreparedStatement
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 setUnicodeStream(int p, java.io.InputStream in, int len) throws java.sql.SQLException
When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.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.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setUnicodeStream
in interface java.sql.PreparedStatement
p
- parameter index starting at 1in
- the java input stream which contains the UNICODE 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, int len) throws java.sql.SQLException
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. JDBC will read the data from the stream as needed, until it reaches end-of-file.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setBinaryStream
in interface java.sql.PreparedStatement
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 clearParameters() throws java.sql.SQLException
clearParameters
in interface java.sql.PreparedStatement
java.sql.SQLException
- not!public void setObject(int 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.PreparedStatement
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 setObject(int p, java.lang.Object o, int type) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
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.setObject(int, Object, int, int)
public void setObject(int 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.PreparedStatement
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.setObject(int, Object, int, int)
public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
java.sql.SQLException
- if all parameters have not been setpublic int[] executeBatch() throws java.sql.SQLException
This method exploits the IDMS BULK feature to provide a performance advantage for INSERT commands if the CV is R14.0 or later. When an error occurs, the update counts for all batch elements remaining in the parameter buffer are set to EXECUTE_FAILED, but the driver continues to attempt to insert remaining batch elements. IDMS does not support BULK for UPDATE and DELETE, so these commands are sent to the server separately (as are INSERTs prior to R14.0)
Note that IDMS does not support host variables in DDL, so the Statement methods should be used for DDL commands.
executeBatch
in interface java.sql.Statement
executeBatch
in class IdmsStatement
java.sql.SQLException
- if not connected or the batch is empty
java.sql.BatchUpdateException
- if an error occurs processing a statementpublic java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
- if an error occurspublic void setArray(int p, java.sql.Array v) throws java.sql.SQLException
setArray
in interface java.sql.PreparedStatement
p
- parameter numberv
- the value, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public void setBlob(int p, java.sql.Blob v) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
p
- parameter numberv
- the value, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public void setCharacterStream(int p, java.io.Reader in, int len) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
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 setClob(int p, java.sql.Clob v) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
p
- parameter numberv
- the value, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public void setDate(int p, java.sql.Date v, java.util.Calendar c) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
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.setDate(int,java.sql.Date)
public void setNull(int p, int t, java.lang.String n) throws java.sql.SQLException
setNull(int,int)
.
setNull
in interface java.sql.PreparedStatement
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 setRef(int p, java.sql.Ref v) throws java.sql.SQLException
setRef
in interface java.sql.PreparedStatement
p
- parameter numberv
- the value, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public void setTime(int p, java.sql.Time v, java.util.Calendar c) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
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.setTime(int,java.sql.Time)
public void setTimestamp(int p, java.sql.Timestamp v, java.util.Calendar c) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
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.setTimestamp(int,java.sql.Timestamp)
public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException
getParameterMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
- if an error occurspublic void setURL(int p, java.net.URL v) throws java.sql.SQLException
setURL
in interface java.sql.PreparedStatement
p
- parameter numberv
- the value, ignored
java.sql.SQLException
- alwaysIdmsJdbcObject.fakeSupport
public void setAsciiStream(int p, java.io.InputStream in) throws java.sql.SQLException
setAsciiStream(int, InputStream, int)
passing a length
which is the maximum size of a CHAR column in IDMS (32,760 bytes).
setAsciiStream
in interface java.sql.PreparedStatement
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(int, 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.PreparedStatement
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 setBinaryStream(int p, java.io.InputStream in) throws java.sql.SQLException
setBinaryStream(int, InputStream, int)
passing a length
which is the maximum size of a BINARY column in IDMS (32,760 bytes).
setBinaryStream
in interface java.sql.PreparedStatement
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(int, 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.PreparedStatement
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 setBlob(int p, java.io.InputStream arg1) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setBlob(int p, java.io.InputStream arg1, long arg2) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setCharacterStream(int p, java.io.Reader in) throws java.sql.SQLException
setCharacterStream(int, Reader, int)
passing a length which is the maximum size of a CHAR
column in IDMS (32,760 bytes).
setCharacterStream
in interface java.sql.PreparedStatement
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(int, 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.PreparedStatement
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 setClob(int p, java.io.Reader arg1) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setClob(int p, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setNCharacterStream(int p, java.io.Reader arg1) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setNCharacterStream(int p, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setNClob(int p, java.sql.NClob arg1) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setNClob(int p, java.io.Reader arg1) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setNClob(int p, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setNString(int p, java.lang.String arg1) throws java.sql.SQLException
setNString
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwayspublic void setRowId(int p, java.sql.RowId v) throws java.sql.SQLException
setRowId
in interface java.sql.PreparedStatement
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 setSQLXML(int p, java.sql.SQLXML arg1) throws java.sql.SQLException
setSQLXML
in interface java.sql.PreparedStatement
java.sql.SQLException
- alwaysprotected ca.idms.qcli.Sqlvar getNullType(int sqlType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |