ResultSet Update Methods : ResultSet « Database SQL JDBC « Java

ResultSet Update Methods


Data Type                        Method

BigDecimal                       updateBigDecimal(String columnName, BigDecimal x)

boolean                          updateBoolean(String columnName, boolean x)

byte                             updateByte(String columnName, byte x)

byte[]                           updateBytes(String columnName, byte[] x)

double                           updateDouble(String columnName, double x)

float                            updateFloat(String columnName, float x)

int                              updateInt(String columnName, int x)              updateAsciiStream(String columnName, InputStream x, int length)              updateUnicodeStream(String columnName, InputStream x, int length)              updateBinaryStream(String columnName, InputStream x, int length)

java.sql.Date                    updateDate(String columnName, Date x)

java.sql.Time                    updateTime(String columnName, Time x)

java.sql.Timestamp               updateTimestamp(String columnName, Timestamp x)

long                             updateLong(String columnName, long x)

Object                           updateObject(String columnName, Object x)

Object                           updateObject(String columnName, Object x, int scale)

short                            updateShort(String columnName, short x)

String                           updateString(String columnName, String x)

NULL                             updateNull(String columnName)


Related examples in the same category

1.ResultSet getter Methods
2.Get Column Count In ResultSet
3.Get available ResultSet types
4.Get BLOB data from resultset
5.ResultSet Update
6.Results Decorator XML
7.Results Decorator Text
8.Results Decorator SQL
9.Print ResultSet in HTML
10.Demonstrate simple use of the CachedRowSet
11.Metadata for ResultSet
12.Scrollable ResultSet
13.Concurrency in ResultSet
14.SQL statement: ResultSet and ResultSetMetaData
15.Output data from table
16.Convert a ResultSet to XML
17.Retrieve a rowcount from a ResultSet
18.Wraps a ResultSet in an Iterator.
19.Wraps a ResultSet to trim strings returned by the getString() and getObject() methods.
20.Decorates a ResultSet with checks for a SQL NULL value on each getXXX method.