Class ResultSetReader
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.common.ResultSetReader
-
public class ResultSetReader extends java.lang.Object
Simplifies reading values from aResultSet
-
-
Constructor Summary
Constructors Constructor Description ResultSetReader(java.sql.ResultSet rs)
Canonical constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
getBigDecimal()
Get a BigDecimal column value and increment the column indexjava.lang.Double
getDouble()
Get a Double column value and increment the column indexjava.lang.Integer
getInt()
Get an Integer column value and increment the column indexjava.lang.Long
getLong()
Get a Long column value and increment the column indexjava.lang.Short
getShort()
Get a Short column value and increment the column indexjava.lang.String
getString()
Get a string column value and increment the column indexjava.sql.Timestamp
getTimestamp()
Get a Timestamp column value and increment the column indexboolean
next()
InvokeResultSet.next()
-
-
-
Method Detail
-
next
public boolean next() throws java.sql.SQLException
InvokeResultSet.next()
- Returns:
- true if the ResultSet has a row
- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString() throws java.sql.SQLException
Get a string column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getShort
public java.lang.Short getShort() throws java.sql.SQLException
Get a Short column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getInt
public java.lang.Integer getInt() throws java.sql.SQLException
Get an Integer column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getLong
public java.lang.Long getLong() throws java.sql.SQLException
Get a Long column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal() throws java.sql.SQLException
Get a BigDecimal column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getDouble
public java.lang.Double getDouble() throws java.sql.SQLException
Get a Double column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp() throws java.sql.SQLException
Get a Timestamp column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
-