|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.as400.access.AS400JDBCRowSet
The AS400JDBCRowSet class represents a connected rowset that encapsulates an JDBC result set. The database connection is maintained while in use.
Either the url or dataSourceName property must be set to specify how the database connection is established. The command property must be set to specify how to create the PreparedStatement.
This example creates an AS400JDBCRowSet object, populates it, and then updates its contents.
DriverManager.registerDriver(new AS400JDBCDriver()); AS400JDBCRowSet rowset = new AS400JDBCRowSet("jdbc:as400://mySystem","myUser", "myPassword"); // Set the command used to populate the list. rowset.setCommand("SELECT * FROM MYLIB.DATABASE"); // Populate the rowset. rowset.execute(); // Update the customer balances. while (rowset.next()) { double newBalance = rowset.getDouble("BALANCE") + july_statements.getPurchases(rowset.getString("CUSTNUM")); rowset.updateDouble("BALANCE", newBalance); rowset.updateRow(); }
This example creates an AS400JDBCRowSet object, sets the data source and command parameters and then populates it.
// Get the data source that is registered in JNDI (assumes JNDI environment is set). Context context = new InitialContext(); AS400JDBCDataSource dataSource = (AS400JDBCDataSource) context.lookup("jdbc/customer"); AS400JDBCRowSet rowset = new AS400JDBCRowSet(); rowset.setDataSourceName("jdbc/customer"); rowset.setUsername("myuser"); rowset.setPassword("myPasswd"); // Set the prepared statement and initialize the parameters. rowset.setCommand("SELECT * FROM MYLIBRARY.MYTABLE WHERE STATE = ? AND BALANCE > ?"); rowset.setString(1, "MINNESOTA"); rowset.setDouble(2, MAXIMUM_LIMIT); // Populate the rowset. rowset.execute();
AS400JDBCRowSet objects generate the following events:
Constructor Summary | |
AS400JDBCRowSet()
Constructs a default AS400JDBCRowSet object. |
|
AS400JDBCRowSet(java.lang.String dataSourceName)
Constructs an AS400JDBCRowset with the specified dataSourceName. |
|
AS400JDBCRowSet(java.lang.String url,
java.lang.String username,
java.lang.String password)
Constructs an AS400JDBCRowSet with the specified parameters. |
Method Summary | |
boolean |
absolute(int rowNumber)
Positions the cursor to an absolute row number. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addRowSetListener(javax.sql.RowSetListener listener)
Adds a RowSetListener to the list. |
void |
afterLast()
Positions the cursor after the last row. |
void |
beforeFirst()
Positions the cursor before the first row. |
void |
cancelRowUpdates()
Cancels all pending updates that have been made since the last call to updateRow(). |
void |
clearParameters()
Clears the columns for the current row and releases all associated resources. |
void |
clearWarnings()
Clears all warnings that have been reported for the result set. |
void |
close()
Releases the rowset resources immediately instead of waiting for them to be automatically released. |
void |
deleteRow()
Deletes the current row from the result set and the database. |
void |
execute()
Executes the command and fills the rowset with data. |
protected void |
finalize()
Closes the Statement and Connection. |
int |
findColumn(java.lang.String columnName)
Returns the column index for the specified column name. |
boolean |
first()
Positions the cursor to the first row. |
java.sql.Array |
getArray(int columnIndex)
Returns the value of a column as an Array object. |
java.sql.Array |
getArray(java.lang.String columnName)
Returns the value of a column as an Array object. |
java.io.InputStream |
getAsciiStream(int columnIndex)
Returns the value of a column as a stream of ASCII characters. |
java.io.InputStream |
getAsciiStream(java.lang.String columnName)
Returns the value of a column as a stream of ASCII characters. |
java.math.BigDecimal |
getBigDecimal(int columnIndex)
Returns the value of a column as a BigDecimal object. |
java.math.BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Deprecated. Use getBigDecimal(int) instead. |
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName)
Returns the value of a column as a BigDecimal object. |
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName,
int scale)
Deprecated. Use getBigDecimal(String) instead. |
java.io.InputStream |
getBinaryStream(int columnIndex)
Returns the value of a column as a stream of uninterpreted bytes. |
java.io.InputStream |
getBinaryStream(java.lang.String columnName)
Returns the value of a column as a stream of uninterpreted bytes. |
java.sql.Blob |
getBlob(int columnIndex)
Returns the value of a column as a Blob object. |
java.sql.Blob |
getBlob(java.lang.String columnName)
Returns the value of a column as a Blob object. |
boolean |
getBoolean(int columnIndex)
Returns the value of a column as a Java boolean value. |
boolean |
getBoolean(java.lang.String columnName)
Returns the value of a column as a Java boolean value. |
byte |
getByte(int columnIndex)
Returns the value of a column as a Java byte value. |
byte |
getByte(java.lang.String columnName)
Returns the value of a column as a Java byte value. |
byte[] |
getBytes(int columnIndex)
Returns the value of a column as a Java byte array. |
byte[] |
getBytes(java.lang.String columnName)
Returns the value of a column as a Java byte array. |
java.io.Reader |
getCharacterStream(int columnIndex)
Returns the value of a column as a character stream. |
java.io.Reader |
getCharacterStream(java.lang.String columnName)
Returns the value of a column as a character stream. |
java.sql.Clob |
getClob(int columnIndex)
Returns the value of a column as a Clob object. |
java.sql.Clob |
getClob(java.lang.String columnName)
Returns the value of a column as a Clob object. |
java.lang.String |
getCommand()
Returns the command used by the statement the generate the rowset. |
int |
getConcurrency()
Returns the result set concurrency. |
javax.naming.Context |
getContext()
Returns the JNDI naming context which provides name-to-object bindings and methods for retrieving and updating naming and directory services. |
java.lang.String |
getCursorName()
Returns the name of the SQL cursor in use by the result set. |
java.lang.String |
getDataSourceName()
Returns the name of the AS/400 data source as identified in JNDI. |
java.sql.Date |
getDate(int columnIndex)
Returns the value of a column as a java.sql.Date object using the default calendar. |
java.sql.Date |
getDate(int columnIndex,
java.util.Calendar calendar)
Returns the value of a column as a java.sql.Date object using a calendar other than the default. |
java.sql.Date |
getDate(java.lang.String columnName)
Returns the value of a column as a java.sql.Date object using the default calendar. |
java.sql.Date |
getDate(java.lang.String columnName,
java.util.Calendar calendar)
Returns the value of a column as a java.sql.Date object using a calendar other than the default. |
double |
getDouble(int columnIndex)
Returns the value of a column as a Java double value. |
double |
getDouble(java.lang.String columnName)
Returns the value of a column as a Java double value. |
java.util.Hashtable |
getEnvironment()
Returns a hashtable of standard JNDI environment properties. |
boolean |
getEscapeProcessing()
Indicates if escape processing is enabled (default). |
int |
getFetchDirection()
Returns the fetch direction. |
int |
getFetchSize()
Returns the number of rows to be fetched from the database when more rows are needed. |
float |
getFloat(int columnIndex)
Returns the value of a column as a Java float value. |
float |
getFloat(java.lang.String columnName)
Returns the value of a column as a Java float value. |
int |
getInt(int columnIndex)
Returns the value of a column as a Java int value. |
int |
getInt(java.lang.String columnName)
Returns the value of a column as a Java int value. |
long |
getLong(int columnIndex)
Returns the value of a column as a Java long value. |
long |
getLong(java.lang.String columnName)
Returns the value of a column as a Java long value. |
int |
getMaxFieldSize()
Returns the maximum column size. |
int |
getMaxRows()
Returns the maximum number of rows for the rowset. |
java.sql.ResultSetMetaData |
getMetaData()
Returns the ResultSetMetaData object that describes the result set's columns. |
java.lang.Object |
getObject(int columnIndex)
Returns the value of a column as a Java Object. |
java.lang.Object |
getObject(int columnIndex,
java.util.Map typeMap)
Returns the value of a column as a Java Object. |
java.lang.Object |
getObject(java.lang.String columnName)
Returns the value of a column as a Java Object. |
java.lang.Object |
getObject(java.lang.String columnName,
java.util.Map typeMap)
Returns the value of a column as a Java Object. |
java.lang.String |
getPassword()
Returns the password used to create the connection. |
int |
getQueryTimeout()
Returns the maximum wait time in seconds for a statement to execute. |
java.sql.Ref |
getRef(int columnIndex)
Returns the value of a column as a Ref object. |
java.sql.Ref |
getRef(java.lang.String columnName)
Returns the value of a column as a Ref object. |
int |
getRow()
Returns the current row number. |
short |
getShort(int columnIndex)
Returns the value of a column as a Java short value. |
short |
getShort(java.lang.String columnName)
Returns the value of a column as a Java short value. |
java.sql.Statement |
getStatement()
Returns the statement for this result set. |
java.lang.String |
getString(int columnIndex)
Returns the value of a column as a String object. |
java.lang.String |
getString(java.lang.String columnName)
Returns the value of a column as a String object. |
java.sql.Time |
getTime(int columnIndex)
Returns the value of a column as a java.sql.Time object using the default calendar. |
java.sql.Time |
getTime(int columnIndex,
java.util.Calendar calendar)
Returns the value of a column as a java.sql.Time object using a calendar other than the default. |
java.sql.Time |
getTime(java.lang.String columnName)
Returns the value of a column as a java.sql.Time object using the default calendar. |
java.sql.Time |
getTime(java.lang.String columnName,
java.util.Calendar calendar)
Returns the value of a column as a java.sql.Time object using a calendar other than the default. |
java.sql.Timestamp |
getTimestamp(int columnIndex)
Returns the value of a column as a java.sql.Timestamp object using the default calendar. |
java.sql.Timestamp |
getTimestamp(int columnIndex,
java.util.Calendar calendar)
Returns the value of a column as a java.sql.Timestamp object using a calendar other than the default. |
java.sql.Timestamp |
getTimestamp(java.lang.String columnName)
Returns the value of a column as a java.sql.Timestamp object using the default calendar. |
java.sql.Timestamp |
getTimestamp(java.lang.String columnName,
java.util.Calendar calendar)
Returns the value of a column as a java.sql.Timestamp object using a calendar other than the default. |
int |
getTransactionIsolation()
Returns the transaction isolation level. |
int |
getType()
Returns the result set type. |
java.util.Map |
getTypeMap()
Returns the type map. |
java.io.InputStream |
getUnicodeStream(int columnIndex)
Deprecated. Use getCharacterStream(int) instead. |
java.io.InputStream |
getUnicodeStream(java.lang.String columnName)
Deprecated. Use getCharacterStream(String) instead. |
java.lang.String |
getUrl()
Returns the url used in getting a connection. |
java.lang.String |
getUsername()
Returns the user used to create the connection. |
java.sql.SQLWarning |
getWarnings()
Returns the first warning reported for the result set. |
void |
insertRow()
Inserts the contents of the insert row into the result set and the database. |
boolean |
isAfterLast()
Indicates if the cursor is positioned after the last row. |
boolean |
isBeforeFirst()
Indicates if the cursor is positioned before the first row. |
boolean |
isFirst()
Indicates if the cursor is positioned on the first row. |
boolean |
isLast()
Indicates if the cursor is positioned on the last row. |
boolean |
isReadOnly()
Indicates if the rowset is read-only. |
boolean |
isUseDataSource()
Indicates if the data source is used to make a connection to the database. |
boolean |
last()
Positions the cursor to the last row. |
void |
moveToCurrentRow()
Positions the cursor to the current row. |
void |
moveToInsertRow()
Positions the cursor to the insert row. |
boolean |
next()
Positions the cursor to the next row. |
boolean |
previous()
Positions the cursor to the previous row. |
void |
refreshRow()
Refreshes the current row from the database and cancels all pending updates that have been made since the last call to updateRow(). |
boolean |
relative(int rowNumber)
Positions the cursor to a relative row number. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener. |
void |
removeRowSetListener(javax.sql.RowSetListener listener)
Removes the RowSetListener from the list. |
boolean |
rowDeleted()
Indicates if the current row has been deleted. |
boolean |
rowInserted()
Indicates if the current row has been inserted. |
boolean |
rowUpdated()
Indicates if the current row has been updated. |
void |
setArray(int parameterIndex,
java.sql.Array value)
Sets the array value at the specified parameterIndex. |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream inputStream,
int length)
Sets the inputStream at the specified parameterIndex. |
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal value)
Sets the BigDecimal value at the specified parameterIndex. |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream inputStream,
int length)
Sets the binary stream value using a inputStream at the specified parameterIndex. |
void |
setBlob(int parameterIndex,
java.sql.Blob value)
Sets the Blob value at the specified parameterIndex. |
void |
setBoolean(int parameterIndex,
boolean value)
Sets the boolean value at the specified parameterIndex. |
void |
setByte(int parameterIndex,
byte value)
Sets the byte value at the specified parameterIndex. |
void |
setBytes(int parameterIndex,
byte[] value)
Sets the byte array value at the specified parameterIndex. |
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader,
int length)
Sets a column in the current row using a Reader value. |
void |
setClob(int parameterIndex,
java.sql.Clob value)
Sets the Clob value at the specified parameterIndex. |
void |
setCommand(java.lang.String command)
Sets the command used by the execute statement to populate the rowset. |
void |
setConcurrency(int concurrency)
Sets the concurrency type for the result set. |
void |
setContext(javax.naming.Context context)
Sets the JNDI naming context which provides name-to-object bindings and methods for retrieving and updating naming and directory services. |
void |
setDataSourceName(java.lang.String dataSourceName)
Sets the name of the AS/400 data source. |
void |
setDate(int parameterIndex,
java.sql.Date value)
Sets the Date value at the specified parameterIndex. |
void |
setDate(int parameterIndex,
java.sql.Date value,
java.util.Calendar calendar)
Sets the Date value at the specified parameterIndex. |
void |
setDouble(int parameterIndex,
double value)
Sets the double value at the specified parameterIndex. |
void |
setEnvironment(java.util.Hashtable environment)
Sets the standard JNDI environment properties. |
void |
setEscapeProcessing(boolean enable)
Sets whether the escape scanning is enabled for escape substitution processing. |
void |
setFetchDirection(int fetchDirection)
Sets the direction in which the rows in a result set are processed. |
void |
setFetchSize(int fetchSize)
Sets the number of rows to be fetched from the database when more rows are needed. |
void |
setFloat(int parameterIndex,
float value)
Sets the float value at the specified parameterIndex. |
void |
setInt(int parameterIndex,
int value)
Sets the integer value at the specified parameterIndex. |
void |
setLong(int parameterIndex,
long value)
Sets the long value at the specified parameterIndex. |
void |
setMaxFieldSize(int maxFieldSize)
Sets the maximum column size. |
void |
setMaxRows(int maxRows)
Sets the maximum row limit for the rowset. |
void |
setNull(int parameterIndex,
int sqlType)
Sets the type at the specified parameterIndex to SQL NULL. |
void |
setNull(int parameterIndex,
int sqlType,
java.lang.String typeName)
Sets the user-named type or REF type at the specified parameterIndex to SQL NULL. |
void |
setObject(int parameterIndex,
java.lang.Object value)
Sets the object value at the specified parameterIndex. |
void |
setObject(int parameterIndex,
java.lang.Object value,
int targetSqlType)
Sets the object value at the specified parameterIndex. |
void |
setObject(int parameterIndex,
java.lang.Object value,
int targetSqlType,
int scale)
Sets the object value at the specified parameterIndex. |
void |
setPassword(java.lang.String password)
Sets the password used to make the connection. |
void |
setQueryTimeout(int timeout)
Sets the maximum wait time in seconds for a statement to execute. |
void |
setReadOnly(boolean readOnly)
Sets whether the rowset is read-only. |
void |
setRef(int parameterIndex,
java.sql.Ref value)
Sets Ref value at the specified parameterIndex. |
void |
setShort(int parameterIndex,
short value)
Sets the short value at the specified parameterIndex. |
void |
setString(int parameterIndex,
java.lang.String value)
Sets the string value at the specified parameterIndex. |
void |
setTime(int parameterIndex,
java.sql.Time value)
Sets the time value at the specified parameterIndex. |
void |
setTime(int parameterIndex,
java.sql.Time value,
java.util.Calendar calendar)
Sets the time value at the specified parameterIndex. |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp value)
Sets the timestamp value at the specified parameterIndex. |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp value,
java.util.Calendar calendar)
Sets the timestamp value at the specified parameterIndex. |
void |
setTransactionIsolation(int level)
Sets the transaction isolation level. |
void |
setType(int type)
Sets the result set type. |
void |
setTypeMap(java.util.Map map)
Sets the type map to be used for distinct and structured types. |
void |
setUrl(java.lang.String url)
Sets the URL used for getting a connection. |
void |
setUseDataSource(boolean useDataSource)
Sets whether the data source is used to make a connection to the database. |
void |
setUsername(java.lang.String username)
Sets the user name used to make the connection. |
java.lang.String |
toString()
Returns the name of the SQL cursor in use by the result set. |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream columnValue,
int length)
Updates a column in the current row using an ASCII stream value. |
void |
updateAsciiStream(java.lang.String columnName,
java.io.InputStream columnValue,
int length)
Updates a column in the current row using an ASCII stream value. |
void |
updateBigDecimal(int columnIndex,
java.math.BigDecimal columnValue)
Updates a column in the current row using a BigDecimal value. |
void |
updateBigDecimal(java.lang.String columnName,
java.math.BigDecimal columnValue)
Updates a column in the current row using a BigDecimal value. |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream columnValue,
int length)
Updates a column in the current row using a binary stream value. |
void |
updateBinaryStream(java.lang.String columnName,
java.io.InputStream columnValue,
int length)
Updates a column in the current row using a binary stream value. |
void |
updateBoolean(int columnIndex,
boolean columnValue)
Updates a column in the current row using a Java boolean value. |
void |
updateBoolean(java.lang.String columnName,
boolean columnValue)
Updates a column in the current row using a Java boolean value. |
void |
updateByte(int columnIndex,
byte columnValue)
Updates a column in the current row using a Java byte value. |
void |
updateByte(java.lang.String columnName,
byte columnValue)
Updates a column in the current row using a Java byte value. |
void |
updateBytes(int columnIndex,
byte[] columnValue)
Updates a column in the current row using a Java byte array value. |
void |
updateBytes(java.lang.String columnName,
byte[] columnValue)
Updates a column in the current row using a Java byte array value. |
void |
updateCharacterStream(int columnIndex,
java.io.Reader columnValue,
int length)
Updates a column in the current row using a Reader value. |
void |
updateCharacterStream(java.lang.String columnName,
java.io.Reader columnValue,
int length)
Updates a column in the current row using a Reader value. |
void |
updateDate(int columnIndex,
java.sql.Date columnValue)
Updates a column in the current row using a java.sql.Date value. |
void |
updateDate(java.lang.String columnName,
java.sql.Date columnValue)
Updates a column in the current row using a java.sql.Date value. |
void |
updateDouble(int columnIndex,
double columnValue)
Updates a column in the current row using a Java double value. |
void |
updateDouble(java.lang.String columnName,
double columnValue)
Updates a column in the current row using a Java double value. |
void |
updateFloat(int columnIndex,
float columnValue)
Updates a column in the current row using a Java float value. |
void |
updateFloat(java.lang.String columnName,
float columnValue)
Updates a column in the current row using a Java float value. |
void |
updateInt(int columnIndex,
int columnValue)
Updates a column in the current row using a Java int value. |
void |
updateInt(java.lang.String columnName,
int columnValue)
Updates a column in the current row using a Java int value. |
void |
updateLong(int columnIndex,
long columnValue)
Updates a column in the current row using a Java long value. |
void |
updateLong(java.lang.String columnName,
long columnValue)
Updates a column in the current row using a Java long value. |
void |
updateNull(int columnIndex)
Updates a column in the current row using SQL NULL. |
void |
updateNull(java.lang.String columnName)
Updates a column in the current row using SQL NULL. |
void |
updateObject(int columnIndex,
java.lang.Object columnValue)
Updates a column in the current row using an Object value. |
void |
updateObject(int columnIndex,
java.lang.Object columnValue,
int scale)
Updates a column in the current row using an Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object columnValue)
Updates a column in the current row using an Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object columnValue,
int scale)
Updates a column in the current row using an Object value. |
void |
updateRow()
Updates the database with the new contents of the current row. |
void |
updateShort(int columnIndex,
short columnValue)
Updates a column in the current row using a Java short value. |
void |
updateShort(java.lang.String columnName,
short columnValue)
Updates a column in the current row using a Java short value. |
void |
updateString(int columnIndex,
java.lang.String columnValue)
Updates a column in the current row using a String value. |
void |
updateString(java.lang.String columnName,
java.lang.String columnValue)
Updates a column in the current row using a String value. |
void |
updateTime(int columnIndex,
java.sql.Time columnValue)
Updates a column in the current row using a java.sql.Time value. |
void |
updateTime(java.lang.String columnName,
java.sql.Time columnValue)
Updates a column in the current row using a java.sql.Time value. |
void |
updateTimestamp(int columnIndex,
java.sql.Timestamp columnValue)
Updates a column in the current row using a java.sql.Timestamp value. |
void |
updateTimestamp(java.lang.String columnName,
java.sql.Timestamp columnValue)
Updates a column in the current row using a java.sql.Timestamp value. |
boolean |
wasNull()
Indicates if the last column read has the value of SQL NULL. |
Constructor Detail |
public AS400JDBCRowSet()
public AS400JDBCRowSet(java.lang.String dataSourceName)
dataSourceName
- The name of the data source used to make the connection.public AS400JDBCRowSet(java.lang.String url, java.lang.String username, java.lang.String password)
url
- The url used to make the connection.username
- The user name.password
- The password.Method Detail |
public boolean absolute(int rowNumber) throws java.sql.SQLException
Attempting to move beyond the first row positions the cursor before the first row. Attempting to move beyond the last row positions the cursor after the last row.
If an InputStream from the current row is open, it is implicitly closed. In addition, all warnings and pending updates are cleared.
rowNumber
- The absolute row number (1-based). If the absolute row
number is positive, this positions the cursor
with respect to the beginning of the result set.
If the absolute row number is negative, this
positions the cursor with respect to the end
of result set.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void addRowSetListener(javax.sql.RowSetListener listener)
listener
- The RowSetListener object.public void afterLast() throws java.sql.SQLException
public void beforeFirst() throws java.sql.SQLException
public void cancelRowUpdates() throws java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
public void close() throws java.sql.SQLException
public void deleteRow() throws java.sql.SQLException
public void execute() throws java.sql.SQLException
protected void finalize() throws java.sql.SQLException
public int findColumn(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public boolean first() throws java.sql.SQLException
public java.sql.Array getArray(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.sql.Array getArray(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.io.InputStream getAsciiStream(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.io.InputStream getAsciiStream(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.math.BigDecimal getBigDecimal(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.math.BigDecimal getBigDecimal(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.math.BigDecimal getBigDecimal(int columnIndex, int scale) throws java.sql.SQLException
columnIndex
- The column index (1-based).scale
- The number of digits after the decimal.getBigDecimal(int)
public java.math.BigDecimal getBigDecimal(java.lang.String columnName, int scale) throws java.sql.SQLException
columnName
- The column name.scale
- The number of digits after the decimal.getBigDecimal(String)
public java.io.InputStream getBinaryStream(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.io.InputStream getBinaryStream(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.sql.Blob getBlob(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.sql.Blob getBlob(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public boolean getBoolean(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public boolean getBoolean(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public byte getByte(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public byte getByte(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public byte[] getBytes(int columnIndex) throws java.sql.SQLException
This can also be used to get values from columns with other types. The values are returned in their native AS/400 format. This is not supported for result sets returned by a DatabaseMetaData object.
columnIndex
- The column index (1-based).public byte[] getBytes(java.lang.String columnName) throws java.sql.SQLException
This can also be used to get values from columns with other types. The values are returned in their native AS/400 format. This is not supported for result sets returned by a DatabaseMetaData object.
columnName
- The column name.public java.io.Reader getCharacterStream(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.io.Reader getCharacterStream(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.sql.Clob getClob(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.sql.Clob getClob(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.lang.String getCommand()
public int getConcurrency() throws java.sql.SQLException
public javax.naming.Context getContext()
public java.lang.String getCursorName() throws java.sql.SQLException
public java.lang.String getDataSourceName()
public java.sql.Date getDate(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.sql.Date getDate(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.sql.Date getDate(int columnIndex, java.util.Calendar calendar) throws java.sql.SQLException
columnIndex
- The column index (1-based).calendar
- The calendar.public java.sql.Date getDate(java.lang.String columnName, java.util.Calendar calendar) throws java.sql.SQLException
columnName
- The column name.calendar
- The calendar.public double getDouble(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public double getDouble(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.util.Hashtable getEnvironment()
public boolean getEscapeProcessing()
public int getFetchDirection() throws java.sql.SQLException
public int getFetchSize() throws java.sql.SQLException
public float getFloat(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public float getFloat(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public int getInt(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public int getInt(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public long getLong(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public long getLong(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public int getMaxFieldSize() throws java.sql.SQLException
public int getMaxRows() throws java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
public java.lang.Object getObject(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.lang.Object getObject(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.lang.Object getObject(int columnIndex, java.util.Map typeMap) throws java.sql.SQLException
columnIndex
- The column index (1-based).typeMap
- The type map. This is not used.public java.lang.Object getObject(java.lang.String columnName, java.util.Map typeMap) throws java.sql.SQLException
columnName
- The column name.typeMap
- The type map. This is not used.public java.lang.String getPassword()
public int getQueryTimeout() throws java.sql.SQLException
public java.sql.Ref getRef(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.sql.Ref getRef(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public int getRow() throws java.sql.SQLException
public short getShort(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public short getShort(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.sql.Statement getStatement() throws java.sql.SQLException
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.lang.String getString(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.sql.Time getTime(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.sql.Time getTime(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.sql.Time getTime(int columnIndex, java.util.Calendar calendar) throws java.sql.SQLException
columnIndex
- The column index (1-based).calendar
- The calendar.public java.sql.Time getTime(java.lang.String columnName, java.util.Calendar calendar) throws java.sql.SQLException
columnName
- The column name.calendar
- The calendar.public java.sql.Timestamp getTimestamp(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).public java.sql.Timestamp getTimestamp(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.public java.sql.Timestamp getTimestamp(int columnIndex, java.util.Calendar calendar) throws java.sql.SQLException
columnIndex
- The column index (1-based).calendar
- The calendar.public java.sql.Timestamp getTimestamp(java.lang.String columnName, java.util.Calendar calendar) throws java.sql.SQLException
columnName
- The column name.calendar
- The calendar.public int getTransactionIsolation()
public int getType() throws java.sql.SQLException
public java.util.Map getTypeMap() throws java.sql.SQLException
public java.io.InputStream getUnicodeStream(int columnIndex) throws java.sql.SQLException
columnIndex
- The column index (1-based).getCharacterStream(int)
public java.io.InputStream getUnicodeStream(java.lang.String columnName) throws java.sql.SQLException
columnName
- The column name.getCharacterStream(String)
public java.lang.String getUrl()
public java.lang.String getUsername()
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
public void insertRow() throws java.sql.SQLException
public boolean isAfterLast() throws java.sql.SQLException
public boolean isBeforeFirst() throws java.sql.SQLException
public boolean isFirst() throws java.sql.SQLException
public boolean isLast() throws java.sql.SQLException
public boolean isReadOnly()
public boolean isUseDataSource()
public boolean last() throws java.sql.SQLException
public void moveToCurrentRow() throws java.sql.SQLException
If an InputStream from the current row is open, it is implicitly closed. In addition, all warnings and pending updates are cleared.
public void moveToInsertRow() throws java.sql.SQLException
public boolean next() throws java.sql.SQLException
public boolean previous() throws java.sql.SQLException
public void refreshRow() throws java.sql.SQLException
public boolean relative(int rowNumber) throws java.sql.SQLException
Attempting to move beyond the first row positions the cursor before the first row. Attempting to move beyond the last row positions the cursor after the last row.
If an InputStream from the current row is open, it is implicitly closed. In addition, all warnings and pending updates are cleared.
rowNumber
- The relative row number. If the relative row
number is positive, this positions the cursor
after the current position. If the relative
row number is negative, this positions the
cursor before the current position. If the
relative row number is 0, then the cursor
position does not change.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removeRowSetListener(javax.sql.RowSetListener listener)
listener
- The RowSetListener object.public boolean rowDeleted() throws java.sql.SQLException
public boolean rowInserted() throws java.sql.SQLException
public boolean rowUpdated() throws java.sql.SQLException
public void setArray(int parameterIndex, java.sql.Array value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Array object.public void setAsciiStream(int parameterIndex, java.io.InputStream inputStream, int length) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).inputStream
- The input stream or null to update the value to SQL NULL.length
- The number of bytes in the stream.public void setBigDecimal(int parameterIndex, java.math.BigDecimal value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The BigDecimal object.public void setBinaryStream(int parameterIndex, java.io.InputStream inputStream, int length) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).inputStream
- The input stream or null to update the value to SQL NULL.length
- The number of bytes in the stream.public void setBlob(int parameterIndex, java.sql.Blob value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Blob object.public void setBoolean(int parameterIndex, boolean value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The boolean value.public void setByte(int parameterIndex, byte value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The byte value.public void setBytes(int parameterIndex, byte[] value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The byte array.public void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).reader
- The reader or null to update the value to SQL NULL.length
- The number of characters in the stream.public void setClob(int parameterIndex, java.sql.Clob value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Clob object.public void setCommand(java.lang.String command) throws java.sql.SQLException
command
- The command.public void setConcurrency(int concurrency)
concurrency
- The concurrency type.public void setContext(javax.naming.Context context)
context
- A JNDI naming context.public void setDataSourceName(java.lang.String dataSourceName)
dataSourceName
- The AS/400 data source name.public void setDate(int parameterIndex, java.sql.Date value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Date object.public void setDate(int parameterIndex, java.sql.Date value, java.util.Calendar calendar) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Date object.calendar
- The Calendar object.public void setDouble(int parameterIndex, double value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The double value.public void setEnvironment(java.util.Hashtable environment)
environment
- A Hashtable of JNDI environment properties.public void setEscapeProcessing(boolean enable) throws java.sql.SQLException
enable
- true if enabled; false otherwise. The default value is true.public void setFetchDirection(int fetchDirection) throws java.sql.SQLException
fetchDirection
- The fetch direction for processing rows.
Valid values are:
public void setFetchSize(int fetchSize) throws java.sql.SQLException
This setting only affects statements that meet the criteria specified in the "block criteria" property. The fetch size is only used if the "block size" property is set to "0".
fetchSize
- The number of rows. This must be greater than
or equal to 0 and less than or equal to the
maximum rows limit. The default is the
statement's fetch size.public void setFloat(int parameterIndex, float value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The float value.public void setInt(int parameterIndex, int value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The integer value.public void setLong(int parameterIndex, long value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The long value.public void setMaxFieldSize(int maxFieldSize) throws java.sql.SQLException
maxFieldSize
- The maximum column size.public void setMaxRows(int maxRows) throws java.sql.SQLException
maxRows
- The maximum number of rows.public void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).sqlType
- The SQL type.public void setNull(int parameterIndex, int sqlType, java.lang.String typeName) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).sqlType
- The SQL type.typeName
- The fully qualified name of an SQL user-named type. This parameter is not used if the type is REF.public void setObject(int parameterIndex, java.lang.Object value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Object value.public void setObject(int parameterIndex, java.lang.Object value, int targetSqlType) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Object value.targetSqlType
- The SQL type.public void setObject(int parameterIndex, java.lang.Object value, int targetSqlType, int scale) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Object value.targetSqlType
- The SQL type.scale
- The number of digits after the decimal point. This parameter is used only for SQL types Decimal or Numeric.public void setPassword(java.lang.String password)
password
- The password.public void setQueryTimeout(int timeout) throws java.sql.SQLException
timeout
- The timeout value in seconds. The default value is zero indicating no maximum value.public void setReadOnly(boolean readOnly) throws java.sql.SQLException
readOnly
- true if read-only; false otherwise.public void setRef(int parameterIndex, java.sql.Ref value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Ref object.public void setShort(int parameterIndex, short value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The short value.public void setString(int parameterIndex, java.lang.String value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The String object.public void setTime(int parameterIndex, java.sql.Time value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Time object.public void setTime(int parameterIndex, java.sql.Time value, java.util.Calendar calendar) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Time object.calendar
- The Calendar object.public void setTimestamp(int parameterIndex, java.sql.Timestamp value) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Timestamp object.public void setTimestamp(int parameterIndex, java.sql.Timestamp value, java.util.Calendar calendar) throws java.sql.SQLException
parameterIndex
- The parameter index (1-based).value
- The Timestamp object.calendar
- The Calendar object.public void setTransactionIsolation(int level) throws java.sql.SQLException
level
- The transaction isolation level.
Possible values are:
public void setType(int type) throws java.sql.SQLException
type
- The type.public void setTypeMap(java.util.Map map) throws java.sql.SQLException
map
- The type map.public void setUrl(java.lang.String url)
The
- URL.setUseDataSource(boolean)
public void setUseDataSource(boolean useDataSource)
useDataSource
- true if the data source is used; false if the URL is used.
The default value is true.public void setUsername(java.lang.String username)
username
- The user name.public java.lang.String toString()
public void updateAsciiStream(int columnIndex, java.io.InputStream columnValue, int length) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update the value to SQL NULL.length
- The length.public void updateAsciiStream(java.lang.String columnName, java.io.InputStream columnValue, int length) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update the value to SQL NULL.length
- The length.public void updateBigDecimal(int columnIndex, java.math.BigDecimal columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update the value to SQL NULL.public void updateBigDecimal(java.lang.String columnName, java.math.BigDecimal columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update the value to SQL NULL.public void updateBinaryStream(int columnIndex, java.io.InputStream columnValue, int length) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update the value to SQL NULL.length
- The length.public void updateBinaryStream(java.lang.String columnName, java.io.InputStream columnValue, int length) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update
the value to SQL NULL.length
- The length.public void updateBoolean(int columnIndex, boolean columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value.public void updateBoolean(java.lang.String columnName, boolean columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value.public void updateByte(int columnIndex, byte columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value.public void updateByte(java.lang.String columnName, byte columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value.public void updateBytes(int columnIndex, byte[] columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update
the value to SQL NULL.public void updateBytes(java.lang.String columnName, byte[] columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update
the value to SQL NULL.public void updateCharacterStream(int columnIndex, java.io.Reader columnValue, int length) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update
the value to SQL NULL.length
- The length.public void updateCharacterStream(java.lang.String columnName, java.io.Reader columnValue, int length) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update
the value to SQL NULL.length
- The length.public void updateDate(int columnIndex, java.sql.Date columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update
the value to SQL NULL.public void updateDate(java.lang.String columnName, java.sql.Date columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update the value to SQL NULL.public void updateDouble(int columnIndex, double columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value.public void updateDouble(java.lang.String columnName, double columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value.public void updateFloat(int columnIndex, float columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value.public void updateFloat(java.lang.String columnName, float columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value.public void updateInt(int columnIndex, int columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value.public void updateInt(java.lang.String columnName, int columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value.public void updateLong(int columnIndex, long columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value.public void updateLong(java.lang.String columnName, long columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value.public void updateNull(int columnIndex) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).public void updateNull(java.lang.String columnName) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.public void updateObject(int columnIndex, java.lang.Object columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update
the value to SQL NULL.public void updateObject(java.lang.String columnName, java.lang.Object columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update
the value to SQL NULL.public void updateObject(int columnIndex, java.lang.Object columnValue, int scale) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update
the value to SQL NULL.scale
- The number of digits after the decimal
if SQL type is DECIMAL or NUMERIC.public void updateObject(java.lang.String columnName, java.lang.Object columnValue, int scale) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update
the value to SQL NULL.scale
- The number of digits after the decimal
if SQL type is DECIMAL or NUMERIC.public void updateRow() throws java.sql.SQLException
public void updateShort(int columnIndex, short columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value.public void updateShort(java.lang.String columnName, short columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value.public void updateString(int columnIndex, java.lang.String columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update
the value to SQL NULL.public void updateString(java.lang.String columnName, java.lang.String columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update
the value to SQL NULL.public void updateTime(int columnIndex, java.sql.Time columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update
the value to SQL NULL.public void updateTime(java.lang.String columnName, java.sql.Time columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update
the value to SQL NULL.public void updateTimestamp(int columnIndex, java.sql.Timestamp columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnIndex
- The column index (1-based).columnValue
- The column value or null to update
the value to SQL NULL.public void updateTimestamp(java.lang.String columnName, java.sql.Timestamp columnValue) throws java.sql.SQLException
This does not update the database directly. Instead, it updates a copy of the data in memory. Call updateRow() or insertRow() to update the database.
columnName
- The column name.columnValue
- The column value or null to update
the value to SQL NULL.public boolean wasNull() throws java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |