public interface Row
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getBigDecimalOrNull()
Note this method attempts to correct for "artifical" scale due to the database
representation.
|
BigDecimal |
getBigDecimalOrNull(int columnOneBased) |
BigDecimal |
getBigDecimalOrNull(String columnName) |
BigDecimal |
getBigDecimalOrZero() |
BigDecimal |
getBigDecimalOrZero(int columnOneBased) |
BigDecimal |
getBigDecimalOrZero(String columnName) |
byte[] |
getBlobBytesOrNull() |
byte[] |
getBlobBytesOrNull(int columnOneBased) |
byte[] |
getBlobBytesOrNull(String columnName) |
byte[] |
getBlobBytesOrZeroLen() |
byte[] |
getBlobBytesOrZeroLen(int columnOneBased) |
byte[] |
getBlobBytesOrZeroLen(String columnName) |
InputStream |
getBlobInputStreamOrEmpty() |
InputStream |
getBlobInputStreamOrEmpty(int columnOneBased) |
InputStream |
getBlobInputStreamOrEmpty(String columnName) |
InputStream |
getBlobInputStreamOrNull() |
InputStream |
getBlobInputStreamOrNull(int columnOneBased) |
InputStream |
getBlobInputStreamOrNull(String columnName) |
boolean |
getBooleanOrFalse()
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
boolean |
getBooleanOrFalse(int columnOneBased)
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
boolean |
getBooleanOrFalse(String columnName)
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
Boolean |
getBooleanOrNull()
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
Boolean |
getBooleanOrNull(int columnOneBased)
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
Boolean |
getBooleanOrNull(String columnName)
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
boolean |
getBooleanOrTrue()
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
boolean |
getBooleanOrTrue(int columnOneBased)
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
boolean |
getBooleanOrTrue(String columnName)
Boolean values are represented as strings
"Y" or "N" in the database,
typically in a CHAR(1) column. |
Reader |
getClobReaderOrEmpty() |
Reader |
getClobReaderOrEmpty(int columnOneBased) |
Reader |
getClobReaderOrEmpty(String columnName) |
Reader |
getClobReaderOrNull() |
Reader |
getClobReaderOrNull(int columnOneBased) |
Reader |
getClobReaderOrNull(String columnName) |
String |
getClobStringOrEmpty() |
String |
getClobStringOrEmpty(int columnOneBased) |
String |
getClobStringOrEmpty(String columnName) |
String |
getClobStringOrNull() |
String |
getClobStringOrNull(int columnOneBased) |
String |
getClobStringOrNull(String columnName) |
String[] |
getColumnLabels()
Obtain the names of the columns in the database.
|
Date |
getDateOrNull()
Return the millisecond precision Date, which should be represented as a TIMESTAMP
in the database.
|
Date |
getDateOrNull(int columnOneBased)
Return the millisecond precision Date, which should be represented as a TIMESTAMP
in the database.
|
Date |
getDateOrNull(String columnName) |
Double |
getDoubleOrNull() |
Double |
getDoubleOrNull(int columnOneBased) |
Double |
getDoubleOrNull(String columnName) |
double |
getDoubleOrZero() |
double |
getDoubleOrZero(int columnOneBased) |
double |
getDoubleOrZero(String columnName) |
Float |
getFloatOrNull() |
Float |
getFloatOrNull(int columnOneBased) |
Float |
getFloatOrNull(String columnName) |
float |
getFloatOrZero() |
float |
getFloatOrZero(int columnOneBased) |
float |
getFloatOrZero(String columnName) |
Integer |
getIntegerOrNull() |
Integer |
getIntegerOrNull(int columnOneBased) |
Integer |
getIntegerOrNull(String columnName) |
int |
getIntegerOrZero() |
int |
getIntegerOrZero(int columnOneBased) |
int |
getIntegerOrZero(String columnName) |
Long |
getLongOrNull() |
Long |
getLongOrNull(int columnOneBased) |
Long |
getLongOrNull(String columnName) |
long |
getLongOrZero() |
long |
getLongOrZero(int columnOneBased) |
long |
getLongOrZero(String columnName) |
ResultSetMetaData |
getMetadata()
Get raw access to the underlying JDBC metadata.
|
String |
getStringOrEmpty() |
String |
getStringOrEmpty(int columnOneBased) |
String |
getStringOrEmpty(String columnName) |
String |
getStringOrNull() |
String |
getStringOrNull(int columnOneBased) |
String |
getStringOrNull(String columnName) |
@Nonnull String[] getColumnLabels()
@Nonnull ResultSetMetaData getMetadata()
@Nullable Boolean getBooleanOrNull()
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to Boolean or null as appropriate.
This is a short-hand method that reads columns in order, starting with the first, and automatically incrementing the column index.
If you call one of the methods using an explicit column index or column name before calling this method, it will pick up at the next column following the explicit one. For example:
getX(); // column 1
getX(5); // or getX("foo") if foo is column 5
getX(); // column 6
DatabaseException - if the value was something other than Y, N, or null@Nullable Boolean getBooleanOrNull(int columnOneBased)
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to Boolean or null as appropriate.columnOneBased - column number to read (1 is the first column)DatabaseException - if the value was something other than Y, N, or null@Nullable Boolean getBooleanOrNull(String columnName)
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to Boolean or null as appropriate.columnName - SQL alias of the column to read (use all lowercase)DatabaseException - if the value was something other than Y, N, or nullboolean getBooleanOrFalse()
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to a boolean. If the value is null, it will be converted to false.
This is a short-hand method that reads columns in order, starting with the first, and automatically incrementing the column index.
If you call one of the methods using an explicit column index or column name before calling this method, it will pick up at the next column following the explicit one. For example:
getX(); // column 1
getX(5); // or getX("foo") if foo is column 5
getX(); // column 6
DatabaseException - if the value was something other than Y, N, or nullboolean getBooleanOrFalse(int columnOneBased)
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to a boolean. If the value is null, it will be converted to false.
This is a short-hand method that reads columns in order, starting with the first, and automatically incrementing the column index.
columnOneBased - column number to read (1 is the first column)DatabaseException - if the value was something other than Y, N, or nullboolean getBooleanOrFalse(String columnName)
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to a boolean. If the value is null, it will be converted to false.
This is a short-hand method that reads columns in order, starting with the first, and automatically incrementing the column index.
columnName - SQL alias of the column to read (use all lowercase)DatabaseException - if the value was something other than Y, N, or nullboolean getBooleanOrTrue()
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to a boolean. If the value is null, it will be converted to true.
This is a short-hand method that reads columns in order, starting with the first, and automatically incrementing the column index.
If you call one of the methods using an explicit column index or column name before calling this method, it will pick up at the next column following the explicit one. For example:
getX(); // column 1
getX(5); // or getX("foo") if foo is column 5
getX(); // column 6
DatabaseException - if the value was something other than Y, N, or nullboolean getBooleanOrTrue(int columnOneBased)
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to a boolean. If the value is null, it will be converted to true.
This is a short-hand method that reads columns in order, starting with the first, and automatically incrementing the column index.
columnOneBased - column number to read (1 is the first column)DatabaseException - if the value was something other than Y, N, or nullboolean getBooleanOrTrue(String columnName)
"Y" or "N" in the database,
typically in a CHAR(1) column. This reads the value and converts it
to a boolean. If the value is null, it will be converted to true.
This is a short-hand method that reads columns in order, starting with the first, and automatically incrementing the column index.
columnName - SQL alias of the column to read (use all lowercase)DatabaseException - if the value was something other than Y, N, or nullint getIntegerOrZero()
int getIntegerOrZero(int columnOneBased)
int getIntegerOrZero(String columnName)
long getLongOrZero()
long getLongOrZero(int columnOneBased)
long getLongOrZero(String columnName)
float getFloatOrZero()
float getFloatOrZero(int columnOneBased)
float getFloatOrZero(String columnName)
double getDoubleOrZero()
double getDoubleOrZero(int columnOneBased)
double getDoubleOrZero(String columnName)
@Nullable BigDecimal getBigDecimalOrNull()
@Nullable BigDecimal getBigDecimalOrNull(int columnOneBased)
@Nullable BigDecimal getBigDecimalOrNull(String columnName)
@Nonnull BigDecimal getBigDecimalOrZero()
@Nonnull BigDecimal getBigDecimalOrZero(int columnOneBased)
@Nonnull BigDecimal getBigDecimalOrZero(String columnName)
@Nullable String getStringOrNull()
@Nullable String getStringOrNull(int columnOneBased)
@Nullable String getStringOrNull(String columnName)
@Nonnull String getStringOrEmpty()
@Nonnull String getStringOrEmpty(int columnOneBased)
@Nonnull String getStringOrEmpty(String columnName)
@Nullable String getClobStringOrNull()
@Nullable String getClobStringOrNull(int columnOneBased)
@Nullable String getClobStringOrNull(String columnName)
@Nonnull String getClobStringOrEmpty()
@Nonnull String getClobStringOrEmpty(int columnOneBased)
@Nonnull String getClobStringOrEmpty(String columnName)
@Nullable Reader getClobReaderOrNull()
@Nullable Reader getClobReaderOrNull(int columnOneBased)
@Nullable Reader getClobReaderOrNull(String columnName)
@Nonnull Reader getClobReaderOrEmpty()
@Nonnull Reader getClobReaderOrEmpty(int columnOneBased)
@Nonnull Reader getClobReaderOrEmpty(String columnName)
@Nullable byte[] getBlobBytesOrNull()
@Nullable byte[] getBlobBytesOrNull(int columnOneBased)
@Nonnull byte[] getBlobBytesOrZeroLen()
@Nonnull byte[] getBlobBytesOrZeroLen(int columnOneBased)
@Nullable InputStream getBlobInputStreamOrNull()
@Nullable InputStream getBlobInputStreamOrNull(int columnOneBased)
@Nullable InputStream getBlobInputStreamOrNull(String columnName)
@Nonnull InputStream getBlobInputStreamOrEmpty()
@Nonnull InputStream getBlobInputStreamOrEmpty(int columnOneBased)
@Nonnull InputStream getBlobInputStreamOrEmpty(String columnName)
@Nullable Date getDateOrNull()
@Nullable Date getDateOrNull(int columnOneBased)
Copyright © 2016. All rights reserved.