ResultSet getter Methods : ResultSet « Database SQL JDBC « Java

ResultSet getter Methods


Data Type                          Method

BigDecimal                         getBigDecimal(String columnName, int scale)

boolean                            getBoolean(String columnName)

byte                               getByte(String columnName)

byte[]                             getBytes(String columnName)

double                             getDouble(String columnName)

float                              getFloat(String columnName)

int                                getInt(String columnName)                getAsciiStream(String columnName)                getUnicodeStream(String columnName)                getBinaryStream(String columnName)

java.sql.Date                      getDate(String columnName)

java.sql.Time                      getTime(String columnName)

java.sql.Timestamp                 getTimestamp(String columnName)

long                               getLong(String columnName)

Object                             getObject(String columnName)

short                              getShort(String columnName)

String                             getString(String columnName)


Related examples in the same category

1.ResultSet Update 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.