Try OpenEdge Now
skip to main content
Java Open Clients
Using SmartDataObjects from Java Clients : Working with SDOResultSet objects : Updating SDOResultSet objects : Updating column values
Updating column values
The following methods modify a column in an SDOResultSet according to the specified data type. All column access methods in SDOResultSet use the flat model (see OpenEdge Development: Open Client Introduction and Programming). The column is specified by name (columnName) or number (columnIndex) and is set to the specified value (value), as follows:
*void updateBigDecimal(int columnIndex , BigDecimal value )
*void updateBigDecimal(String columnName , BigDecimal value )
*void updateBlob(int columnIndex , java.sql.Blob value )
*void updateBlob(String columnName , java.sql.Blob value )
*void updateBoolean(int columnIndex , boolean value )
*void updateBoolean(String columnName , boolean value )
*void updateBytes(int columnIndex , byte x[])
*void updateBytes(String columnName , byte x[])
*void updateClob(int columnIndex , java.sql.Clob value )
*void updateClob(String columnName , java.sql.Clob value )
*void updateDate(int columnIndex , java.sql.Date value )
*void updateDate(String columnName , java.sql.Date value )
*void updateDouble(int columnIndex , double value )
*void updateDouble(String columnName , double value )
*void updateInt(int columnIndex , int value )
*void updateInt(String columnName , int value )
*void updateLong(int columnIndex , long value )
*void updateLong(String columnName , long value )
*void updateNull(int columnIndex )
*void updateNull(String columnName )
*void updateObject(int columnIndex , Object value )
*void updateObject(String columnName , Object value )
*void updateString(int columnIndex , String value )
*void updateString(String columnName , String value )
*void updateTimestamp(int columnIndex , java.sql.TimeStamp value )
*void updateTimestamp(String columnName , java.sql.TimeStamp value )
Some java.util.Date and java.sql.Date methods are being deprecated by JavaSoft in favor of using the more robust java.util.GregorianCalendar. These are the methods that update column values with instances of this class:
*void updateGregorianCalendar(String columnName , GregorianCalendar date ) [Extension]
*void updateGregorianCalendar(int columnIndex , GregorianCalendar date ) [Extension]
For more information on the mapping between ABL and Java data types for SQL ResultSet applications, see Passing Temp-tables as SQL ResultSet Parameters.