Class ResultSetReader
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.common.ResultSetReader
-
public class ResultSetReader extends java.lang.ObjectSimplifies 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.BigDecimalgetBigDecimal()Get a BigDecimal column value and increment the column indexjava.lang.DoublegetDouble()Get a Double column value and increment the column indexjava.lang.IntegergetInt()Get an Integer column value and increment the column indexjava.lang.LonggetLong()Get a Long column value and increment the column indexjava.lang.ShortgetShort()Get a Short column value and increment the column indexjava.lang.StringgetString()Get a string column value and increment the column indexjava.sql.TimestampgetTimestamp()Get a Timestamp column value and increment the column indexbooleannext()InvokeResultSet.next()
-
-
-
Method Detail
-
next
public boolean next() throws java.sql.SQLExceptionInvokeResultSet.next()- Returns:
- true if the ResultSet has a row
- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString() throws java.sql.SQLExceptionGet a string column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getShort
public java.lang.Short getShort() throws java.sql.SQLExceptionGet a Short column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getInt
public java.lang.Integer getInt() throws java.sql.SQLExceptionGet an Integer column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getLong
public java.lang.Long getLong() throws java.sql.SQLExceptionGet a Long column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal() throws java.sql.SQLExceptionGet a BigDecimal column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getDouble
public java.lang.Double getDouble() throws java.sql.SQLExceptionGet a Double column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp() throws java.sql.SQLExceptionGet a Timestamp column value and increment the column index- Returns:
- Throws:
java.sql.SQLException
-
-