Package io.github.spartatech.sqljson.vo
Class JsonResultSet
- java.lang.Object
-
- io.github.spartatech.sqljson.vo.JsonResultSet
-
public class JsonResultSet extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonResultSet.JsonResultSetBuilderBuilder class to create JsonResultSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfindColumn(String columnLabel)ResultRowgetAllColumns()InputStreamgetAsciiStream(int columnIndex)InputStreamgetAsciiStream(String columnLabel)BigDecimalgetBigDecimal(int columnIndex)BigDecimalgetBigDecimal(int columnIndex, int scale)BigDecimalgetBigDecimal(String columnLabel)BigDecimalgetBigDecimal(String columnLabel, int scale)InputStreamgetBinaryStream(int columnIndex)InputStreamgetBinaryStream(String columnLabel)booleangetBoolean(int columnIndex)booleangetBoolean(String columnLabel)bytegetByte(int columnIndex)bytegetByte(String columnLabel)byte[]getBytes(int columnIndex)byte[]getBytes(String columnLabel)com.fasterxml.jackson.databind.JsonNodegetColumn(int columnIndex)com.fasterxml.jackson.databind.JsonNodegetColumn(String columnLabel)LinkedHashSet<String>getColumnNames()DategetDate(int columnIndex)DategetDate(String columnLabel)doublegetDouble(int columnIndex)doublegetDouble(String columnLabel)floatgetFloat(int columnIndex)floatgetFloat(String columnLabel)intgetInt(int columnIndex)intgetInt(String columnLabel)longgetLong(int columnIndex)LonggetLong(String columnLabel)ResultRowgetRow(int rowNumber)shortgetShort(int columnIndex)shortgetShort(String columnLabel)StringgetString(int columnIndex)StringgetString(String columnLabel)TimegetTime(int columnIndex)TimegetTime(String columnLabel)TimestampgetTimestamp(int columnIndex)TimestampgetTimestamp(String columnLabel)InputStreamgetUnicodeStream(int columnIndex)InputStreamgetUnicodeStream(String columnLabel)booleannext()booleanprevious()intsize()
-
-
-
Method Detail
-
next
public boolean next()
-
previous
public boolean previous()
-
getRow
public ResultRow getRow(int rowNumber)
-
getColumn
public com.fasterxml.jackson.databind.JsonNode getColumn(int columnIndex)
-
getColumn
public com.fasterxml.jackson.databind.JsonNode getColumn(String columnLabel) throws SQLException
- Throws:
SQLException
-
getColumnNames
public LinkedHashSet<String> getColumnNames()
-
getAllColumns
public ResultRow getAllColumns()
-
size
public int size()
-
getString
public String getString(int columnIndex)
-
getBoolean
public boolean getBoolean(int columnIndex)
-
getByte
public byte getByte(int columnIndex)
-
getShort
public short getShort(int columnIndex)
-
getInt
public int getInt(int columnIndex)
-
getLong
public long getLong(int columnIndex)
-
getFloat
public float getFloat(int columnIndex)
-
getDouble
public double getDouble(int columnIndex)
-
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex, int scale)
-
getBytes
public byte[] getBytes(int columnIndex)
-
getDate
public Date getDate(int columnIndex) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(int columnIndex) throws SQLException
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int columnIndex) throws SQLException
- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream(int columnIndex) throws SQLException
- Throws:
SQLException
-
getUnicodeStream
public InputStream getUnicodeStream(int columnIndex)
-
getBinaryStream
public InputStream getBinaryStream(int columnIndex)
-
getString
public String getString(String columnLabel) throws SQLException
- Throws:
SQLException
-
getBoolean
public boolean getBoolean(String columnLabel) throws SQLException
- Throws:
SQLException
-
getByte
public byte getByte(String columnLabel) throws SQLException
- Throws:
SQLException
-
getShort
public short getShort(String columnLabel) throws SQLException
- Throws:
SQLException
-
getInt
public int getInt(String columnLabel) throws SQLException
- Throws:
SQLException
-
getLong
public Long getLong(String columnLabel) throws SQLException
- Throws:
SQLException
-
getFloat
public float getFloat(String columnLabel) throws SQLException
- Throws:
SQLException
-
getDouble
public double getDouble(String columnLabel) throws SQLException
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException
- Throws:
SQLException
-
getBytes
public byte[] getBytes(String columnLabel) throws SQLException
- Throws:
SQLException
-
getDate
public Date getDate(String columnLabel) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(String columnLabel) throws SQLException
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(String columnLabel) throws SQLException
- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream(String columnLabel) throws SQLException
- Throws:
SQLException
-
getUnicodeStream
public InputStream getUnicodeStream(String columnLabel) throws SQLException
- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(String columnLabel) throws SQLException
- Throws:
SQLException
-
findColumn
public int findColumn(String columnLabel) throws SQLException
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex) throws SQLException
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(String columnLabel) throws SQLException
- Throws:
SQLException
-
-