Inherits com.dbSpaces.jdb.Base.
Public Member Functions | |
void | addBatch () throws DatabaseException |
void | addBatch (String stmt) throws DatabaseException |
void | clearBatch () |
boolean | isClosed () |
ResultSet | execute () throws DatabaseException |
long | executeUpdate () throws DatabaseException |
int[] | executeBatch () throws DatabaseException |
ResultSet | executeDirect (String sql) throws DatabaseException |
void | prepare (String sqlStmt) throws DatabaseException |
void | cancel () throws DatabaseException |
boolean | close () throws DatabaseException |
void | setInt (int parameterIndex, int parameterValue) throws DatabaseException |
void | setLong (int parameterIndex, long parameterValue) throws DatabaseException |
void | setShort (int parameterIndex, short parameterValue) throws DatabaseException |
void | setString (int parameterIndex, String parameterValue) throws DatabaseException |
void | setTime (int parameterIndex, Time parameterValue) throws DatabaseException |
void | setTime (int parameterIndex, Time[] parameterValue) throws DatabaseException |
void | setTimestamp (int parameterIndex, Timestamp parameterValue) throws DatabaseException |
void | setTimestamp (int parameterIndex, Timestamp[] parameterValue) throws DatabaseException |
void | setFloat (int parameterIndex, float parameterValue) throws DatabaseException |
void | setDouble (int parameterIndex, double parameterValue) throws DatabaseException |
void | setDate (int parameterIndex, Date parameterValue) throws DatabaseException |
void | setDate (int parameterIndex, Date[] parameterValue) throws DatabaseException |
void | setBytes (int parameterIndex, byte[] parameterValue) throws DatabaseException |
void | setByte (int parameterIndex, byte parameterValue) throws DatabaseException |
void | setBoolean (int parameterIndex, boolean parameterValue) throws DatabaseException |
void | setArray (int parameterIndex, com.dbSpaces.types.Array parameterValue) throws DatabaseException |
void | setBlob (int parameterIndex, Blob parameterValue) throws DatabaseException |
void | setClob (int parameterIndex, Clob parameterValue) throws DatabaseException |
void | setBigDecimal (int parameterIndex, BigDecimal parameterValue) throws DatabaseException |
void | setBinaryStream (int parameterIndex, InputStream parameterValue, int len) throws DatabaseException |
void | setCharacterStream (int parameterIndex, Reader parameterValue, int len) throws DatabaseException |
void | setNull (int parameterIndex, byte storageClass) throws DatabaseException |
void | setAsciiStream (int parameterIndex, InputStream parameterValue, int len) throws DatabaseException |
void | setUnicodeStream (int parameterIndex, InputStream parameterValue, int len) throws DatabaseException |
void | setInt (int parameterIndex, int[] parameterValue) throws DatabaseException |
void | setShort (int parameterIndex, short[] parameterValue) throws DatabaseException |
void | setBoolean (int parameterIndex, boolean[] parameterValue) throws DatabaseException |
void | setString (int parameterIndex, String[] parameterValue) throws DatabaseException |
void | setLong (int parameterIndex, long[] parameterValue) throws DatabaseException |
void | setFloat (int parameterIndex, float[] parameterValue) throws DatabaseException |
void | setDouble (int parameterIndex, double[] parameterValue) throws DatabaseException |
void | registerOutParameter (int parameterIndex, byte storageClass) throws DatabaseException |
void | registerOutParameter (int parameterIndex, byte storageClass, int scale) throws DatabaseException |
void | registerOutParameter (int parameterIndex, byte storageClass, String typeName) throws DatabaseException |
void | clearParameters () throws DatabaseException |
boolean | wasNull () throws DatabaseException |
boolean | wasNull (int lastParam) |
ResultSet | getMoreResults () throws DatabaseException |
int | getFetchSize () throws DatabaseException |
int | getMaxRows () throws DatabaseException |
dtRtnStatus | setMaxRows (int rows) throws DatabaseException |
dtRtnStatus | setFetchSize (int rows) throws DatabaseException |
ResultSet | getResultSet () throws DatabaseException |
String | getCursorName () |
int | getNumberResultColumns () throws DatabaseException |
long | getRowCount () throws DatabaseException |
String | getString (int parameterIndex) throws DatabaseException |
String | getString (String parameterName) throws DatabaseException |
boolean | getBoolean (int parameterIndex) throws DatabaseException |
boolean | getBoolean (String parameterName) throws DatabaseException |
byte | getByte (int parameterIndex) throws DatabaseException |
byte | getByte (String parameterName) throws DatabaseException |
short | getShort (int parameterIndex) throws DatabaseException |
short | getShort (String parameterName) throws DatabaseException |
int | getInt (int parameterIndex) throws DatabaseException |
int | getInt (String parameterName) throws DatabaseException |
long | getLong (int parameterIndex) throws DatabaseException |
long | getLong (String parameterName) throws DatabaseException |
float | getFloat (int parameterIndex) throws DatabaseException |
float | getFloat (String parameterName) throws DatabaseException |
double | getDouble (int parameterIndex) throws DatabaseException |
double | getDouble (String parameterName) throws DatabaseException |
BigDecimal | getBigDecimal (int parameterIndex, int scale) throws DatabaseException |
byte[] | getBytes (int parameterIndex) throws DatabaseException |
Date | getDate (int parameterIndex) throws DatabaseException |
Date | getDate (String parameterName) throws DatabaseException |
Time | getTime (int parameterIndex) throws DatabaseException |
Time | getTime (String parameterName) throws DatabaseException |
Timestamp | getTimestamp (int parameterIndex) throws DatabaseException |
Timestamp | getTimestamp (String parameterName) throws DatabaseException |
Object | getObject (int parameterIndex) throws DatabaseException |
Object | getObject (String parameterName) throws DatabaseException |
BigDecimal | getBigDecimal (int parameterIndex) throws DatabaseException |
BigDecimal | getBigDecimal (String parameterName) throws DatabaseException |
Array | getArray (int parameterIndex) throws DatabaseException |
Array | getArray (String parameterName) throws DatabaseException |
Protected Member Functions | |
Statement (Connection connection) throws DatabaseException | |
Statement (Connection connection, String cursorName) throws DatabaseException | |
long | getHandle () |
A Statement object is used for executing a static/dynamic SQL statement and obtaining the results produced by it.
Only one ResultSet per Statement can be open at any point in time. Therefore, if the reading of one ResultSet is interleaved with the reading of another, each must have been generated by different Statements. All statement execute methods implicitly close a statment's current ResultSet if an open one exists.
A DatabaseException will be thrown if a database error occurs and exceptions are enabled. If exceptions are not enabled the following error methods can be used to get information about the error;
ResultSet
|
protected |
Constructor.
connection |
|
DatabaseException | (if exceptions are enabled) when a database error occurs. |
|
protected |
Constructor.
connection |
|
name |
|
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.addBatch | ( | ) | throws DatabaseException |
Start a new batch of SQL statements.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.addBatch | ( | String | stmt | ) | throws DatabaseException |
Add a SQL statement to a batch of SQL statements.
stmt | SQL statement. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.cancel | ( | ) | throws DatabaseException |
Cancel an executing SQL statement.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.clearBatch | ( | ) |
Clear any batch SQL statements.
void com.dbSpaces.jdb.Statement.clearParameters | ( | ) | throws DatabaseException |
Clear any existing statement parameters.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
boolean com.dbSpaces.jdb.Statement.close | ( | ) | throws DatabaseException |
Close the statement resources.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
ResultSet com.dbSpaces.jdb.Statement.execute | ( | ) | throws DatabaseException |
Execute the prepared statement and return a ResultSet object.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
int[] com.dbSpaces.jdb.Statement.executeBatch | ( | ) | throws DatabaseException |
Execute the batched statements.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
ResultSet com.dbSpaces.jdb.Statement.executeDirect | ( | String | sql | ) | throws DatabaseException |
Execute a SQL statement immediately without first preparing and then executing it.
sql | SQL statement. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
long com.dbSpaces.jdb.Statement.executeUpdate | ( | ) | throws DatabaseException |
Execute the prepared update statement.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
Array com.dbSpaces.jdb.Statement.getArray | ( | int | parameterIndex | ) | throws DatabaseException |
Get an Array OUT parameter.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public Array com.dbSpaces.jdb.Statement.getArray | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
BigDecimal com.dbSpaces.jdb.Statement.getBigDecimal | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a NUMERIC parameter as a java.math.BigDecimal object.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
BigDecimal com.dbSpaces.jdb.Statement.getBigDecimal | ( | int | parameterIndex, |
int | scale | ||
) | throws DatabaseException |
Get the value of a NUMERIC parameter as a java.math.BigDecimal object.
parameterIndex | The first parameter is 1, the second is 2, ... |
scale | a value greater than or equal to zero representing the desired number of digits to the right of the decimal point. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public BigDecimal com.dbSpaces.jdb.Statement.getBigDecimal | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
boolean com.dbSpaces.jdb.Statement.getBoolean | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a BIT parameter as a Java boolean.
parameterIndex | The first parameter is 1, the second is 2, ... |
false
. DatabaseException | (if exceptions are enabled) when a database error occurs. |
public boolean com.dbSpaces.jdb.Statement.getBoolean | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
byte com.dbSpaces.jdb.Statement.getByte | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a TINYINT parameter as a Java byte.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public byte com.dbSpaces.jdb.Statement.getByte | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
byte[] com.dbSpaces.jdb.Statement.getBytes | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a SQL BINARY or VARBINARY parameter as a Java byte[]
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
String com.dbSpaces.jdb.Statement.getCursorName | ( | ) |
Get the statement's cursor name.
Date com.dbSpaces.jdb.Statement.getDate | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a SQL DATE parameter as a java.sql.Date object
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public Date com.dbSpaces.jdb.Statement.getDate | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
double com.dbSpaces.jdb.Statement.getDouble | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a DOUBLE parameter as a Java double.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
double com.dbSpaces.jdb.Statement.getDouble | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
int com.dbSpaces.jdb.Statement.getFetchSize | ( | ) | throws DatabaseException |
Get the fetch size for returning rows with the ResultSet object.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
float com.dbSpaces.jdb.Statement.getFloat | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a FLOAT parameter as a Java float.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public float com.dbSpaces.jdb.Statement.getFloat | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
protected |
Get the statement handle.
int com.dbSpaces.jdb.Statement.getInt | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of an INTEGER parameter as a Java int.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public int com.dbSpaces.jdb.Statement.getInt | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
long com.dbSpaces.jdb.Statement.getLong | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a BIGINT parameter as a Java long.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public long com.dbSpaces.jdb.Statement.getLong | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
int com.dbSpaces.jdb.Statement.getMaxRows | ( | ) | throws DatabaseException |
Get the maximum rows that can be returned in a ReesultSet
object.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
ResultSet com.dbSpaces.jdb.Statement.getMoreResults | ( | ) | throws DatabaseException |
Get the next ResultSet object if the query generated multiple ResultSets.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
int com.dbSpaces.jdb.Statement.getNumberResultColumns | ( | ) | throws DatabaseException |
Get the number of columns that make up the ResultSet.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
Object com.dbSpaces.jdb.Statement.getObject | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a parameter as a Java object.
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.
The behavior of method getObject() is extended to materialize data of SQL user-defined types. When the OUT parameter @index is a UDT value, the behavior of this method is as if it were a call to: getObject(index, this.getConnection().getTypeMap())
parameterIndex | The parameter index starting from 1. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public Object com.dbSpaces.jdb.Statement.getObject | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
ResultSet com.dbSpaces.jdb.Statement.getResultSet | ( | ) | throws DatabaseException |
Get the current ResultSet object.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
long com.dbSpaces.jdb.Statement.getRowCount | ( | ) | throws DatabaseException |
Get the row count for the number of rows processed for either an insert, delete or update request.
DatabaseException | (if exceptions are enabled) when a database error occurs. |
short com.dbSpaces.jdb.Statement.getShort | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a SMALLINT parameter as a Java short.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public short com.dbSpaces.jdb.Statement.getShort | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
String com.dbSpaces.jdb.Statement.getString | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a CHAR, VARCHAR, or LONGVARCHAR parameter as a Java String.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public String com.dbSpaces.jdb.Statement.getString | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Time com.dbSpaces.jdb.Statement.getTime | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a TIME parameter as Time object.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public Time com.dbSpaces.jdb.Statement.getTime | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Timestamp com.dbSpaces.jdb.Statement.getTimestamp | ( | int | parameterIndex | ) | throws DatabaseException |
Get the value of a TIMESTAMP parameter as a Timestamp object.
parameterIndex | The first parameter is 1, the second is 2, ... |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
public Timestamp com.dbSpaces.jdb.Statement.getTimestamp | ( | String | parameterName | ) | throws DatabaseException |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
boolean com.dbSpaces.jdb.Statement.isClosed | ( | ) |
Is the Statement closed?
true
if closed; false
if otherwise. void com.dbSpaces.jdb.Statement.prepare | ( | String | sqlStmt | ) | throws DatabaseException |
Prepare a SQL statement.
sqlStmt | The SQL statement to prepare. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.registerOutParameter | ( | int | parameterIndex, |
byte | storageClass | ||
) | throws DatabaseException |
Register an output statement parameter.
parameterIndex | The parameter index of output parameter. |
storageClass | The storage class that represents the output parameter. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.registerOutParameter | ( | int | parameterIndex, |
byte | storageClass, | ||
int | scale | ||
) | throws DatabaseException |
Register an output Statement parameter.
parameterIndex | The parameter index of output parameter. |
storageClass | The storage class that represents the output parameter. |
scale | The scale of the storage class. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.registerOutParameter | ( | int | parameterIndex, |
byte | storageClass, | ||
String | typeName | ||
) | throws DatabaseException |
Register an output statement parameter.
parameterIndex | The parameter index of output parameter. |
storageClass | The storage class that represents the output parameter. |
typeName | Fully qualified SQL type name. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setArray | ( | int | parameterIndex, |
com.dbSpaces.types.Array | parameterValue | ||
) | throws DatabaseException |
Set an array input parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setAsciiStream | ( | int | parameterIndex, |
InputStream | parameterValue, | ||
int | len | ||
) | throws DatabaseException |
Set a ascii stream parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
len | Then length of the value. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setBigDecimal | ( | int | parameterIndex, |
BigDecimal | parameterValue | ||
) | throws DatabaseException |
Set a bigdecimal parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setBinaryStream | ( | int | parameterIndex, |
InputStream | parameterValue, | ||
int | len | ||
) | throws DatabaseException |
Set a binary stream parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
len | The length of the value. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setBlob | ( | int | parameterIndex, |
Blob | parameterValue | ||
) | throws DatabaseException |
\Set a blob parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setBoolean | ( | int | parameterIndex, |
boolean | parameterValue | ||
) | throws DatabaseException |
Set a boolean parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setBoolean | ( | int | parameterIndex, |
boolean[] | parameterValue | ||
) | throws DatabaseException |
Set a boolean array parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setByte | ( | int | parameterIndex, |
byte | parameterValue | ||
) | throws DatabaseException |
Set a byte parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setBytes | ( | int | parameterIndex, |
byte[] | parameterValue | ||
) | throws DatabaseException |
Set an array of byte parameter values.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setCharacterStream | ( | int | parameterIndex, |
Reader | parameterValue, | ||
int | len | ||
) | throws DatabaseException |
Set a character stream parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
len | The length of the value. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setClob | ( | int | parameterIndex, |
Clob | parameterValue | ||
) | throws DatabaseException |
Set a clob parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setDate | ( | int | parameterIndex, |
Date | parameterValue | ||
) | throws DatabaseException |
Set a date parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setDate | ( | int | parameterIndex, |
Date[] | parameterValue | ||
) | throws DatabaseException |
Set an array of Date object parameter values.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setDouble | ( | int | parameterIndex, |
double | parameterValue | ||
) | throws DatabaseException |
Set a double parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setDouble | ( | int | parameterIndex, |
double[] | parameterValue | ||
) | throws DatabaseException |
Set a double array parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
dtRtnStatus com.dbSpaces.jdb.Statement.setFetchSize | ( | int | rows | ) | throws DatabaseException |
Set the fetch size for the number of rows returned to the ResultSet object.
size | The new fetch size. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setFloat | ( | int | parameterIndex, |
float | parameterValue | ||
) | throws DatabaseException |
Set a float parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setFloat | ( | int | parameterIndex, |
float[] | parameterValue | ||
) | throws DatabaseException |
Set a long array parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setInt | ( | int | parameterIndex, |
int | parameterValue | ||
) | throws DatabaseException |
Set a integer parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setInt | ( | int | parameterIndex, |
int[] | parameterValue | ||
) | throws DatabaseException |
Set an int array parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setLong | ( | int | parameterIndex, |
long | parameterValue | ||
) | throws DatabaseException |
Set a long parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setLong | ( | int | parameterIndex, |
long[] | parameterValue | ||
) | throws DatabaseException |
Set a long array parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
dtRtnStatus com.dbSpaces.jdb.Statement.setMaxRows | ( | int | rows | ) | throws DatabaseException |
Set the maximum rows that can be returned in a resultset.
rows | The new maximum rows. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setNull | ( | int | parameterIndex, |
byte | storageClass | ||
) | throws DatabaseException |
Set a parameter value to be null.
parameterIndex | The first parameter is 1, the second is 2, ... |
storageClass | The storage class of the parameter. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setShort | ( | int | parameterIndex, |
short | parameterValue | ||
) | throws DatabaseException |
Set a short parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setShort | ( | int | parameterIndex, |
short[] | parameterValue | ||
) | throws DatabaseException |
Set a short array parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setString | ( | int | parameterIndex, |
String | parameterValue | ||
) | throws DatabaseException |
Set a string parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setString | ( | int | parameterIndex, |
String[] | parameterValue | ||
) | throws DatabaseException |
Set a string array parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setTime | ( | int | parameterIndex, |
Time | parameterValue | ||
) | throws DatabaseException |
Set a time parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setTime | ( | int | parameterIndex, |
Time[] | parameterValue | ||
) | throws DatabaseException |
Set an array of time parameter values.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setTimestamp | ( | int | parameterIndex, |
Timestamp | parameterValue | ||
) | throws DatabaseException |
Set a timestamp parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setTimestamp | ( | int | parameterIndex, |
Timestamp[] | parameterValue | ||
) | throws DatabaseException |
Set an array of timestamp parameter values.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
void com.dbSpaces.jdb.Statement.setUnicodeStream | ( | int | parameterIndex, |
InputStream | parameterValue, | ||
int | len | ||
) | throws DatabaseException |
Set a unicode parameter value.
parameterIndex | The first parameter is 1, the second is 2, ... |
parameterValue | The parameter value to set. |
len | The length of the value. |
DatabaseException | (if exceptions are enabled) when a database error occurs. |
boolean com.dbSpaces.jdb.Statement.wasNull | ( | ) | throws DatabaseException |
An OUT parameter may have the value of SQL NULL; wasNull reports whether the last value read has this special value.
Note: You must first call getXXX on a parameter to read its value and then call wasNull() to see if the value was SQL NULL.
true
if the last parameter read was SQL NULL; false
if otherwise. DatabaseException | (if exceptions are enabled) when a database error occurs. |
boolean com.dbSpaces.jdb.Statement.wasNull | ( | int | lastParam | ) |
An OUT parameter may have the value of SQL NULL; wasNull reports whether the last value read has this special value.
parameterIndex | The parameter index to test. |
true
if the last parameter read was SQL NULL; false
if otherwise. DatabaseException | (if exceptions are enabled) when a database error occurs. |