| Modifier and Type | Class and Description |
|---|---|
static class |
SQLRecord.Column
Represents a column in a
SQLRecord |
| Modifier and Type | Method and Description |
|---|---|
Optional<BigDecimal> |
getBigDecimal(String column)
Get an optional
BigDecimal from this record |
Optional<Blob> |
getBlob(String column)
Get an optional
Blob from this record |
Optional<Boolean> |
getBoolean(String column)
Get an optional Boolean from this record
|
Optional<byte[]> |
getBytes(String column)
Get an optional byte array from this record
|
Optional<Clob> |
getClob(String column)
Get an optional
Clob from this record |
List<SQLRecord.Column> |
getColumns()
Get the available columns from this record
|
<E extends Enum<E>> |
getEnum(String column,
Class<E> type)
Get an optional Enum from this record.
|
Optional<Float> |
getFloat(String column)
Get an optional Float from this record
|
Optional<Instant> |
getInstant(String column)
Get an optional
Instant from this record |
Optional<Integer> |
getInteger(String column)
Get an optional Integer from this record
|
Optional<LocalDate> |
getLocalDate(String column)
Get an optional
LocalDate from this record |
Optional<LocalTime> |
getLocalTime(String column)
Get an optional
LocalTime from this record |
Optional<Long> |
getLong(String column)
Get an optional Long from this record
|
Optional<Short> |
getShort(String column)
Get an optional Short from this record
|
Optional<String> |
getString(String column)
Get an optional String from this record
|
public List<SQLRecord.Column> getColumns() throws SQLFaultException
SQLFaultException - If the columns names cannot be returnedpublic Optional<String> getString(String column) throws SQLFaultException
column - The column containing the StringSQLFaultException - If the column is unknown or if the value cannot be returnedpublic <E extends Enum<E>> Optional<E> getEnum(String column, Class<E> type) throws SQLFaultException
E - The enum typecolumn - The column containing the Enumtype - The enum typeSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<Blob> getBlob(String column) throws SQLFaultException
Blob from this recordcolumn - The column containing the BlobSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<Clob> getClob(String column) throws SQLFaultException
Clob from this recordcolumn - The column containing the ClobSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<BigDecimal> getBigDecimal(String column) throws SQLFaultException
BigDecimal from this recordcolumn - The column containing the BigDecimalSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<byte[]> getBytes(String column) throws SQLFaultException
column - The column containing the byte arraySQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<Integer> getInteger(String column) throws SQLFaultException
column - The column containing the IntegerSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<Float> getFloat(String column) throws SQLFaultException
column - The column containing the FloatSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<Long> getLong(String column) throws SQLFaultException
column - The column containing the LongSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<Short> getShort(String column) throws SQLFaultException
column - The column containing the ShortSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<LocalDate> getLocalDate(String column) throws SQLFaultException
LocalDate from this recordcolumn - The column containing the LocalDateSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<Instant> getInstant(String column) throws SQLFaultException
Instant from this recordcolumn - The column containing the InstantSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<LocalTime> getLocalTime(String column) throws SQLFaultException
LocalTime from this recordcolumn - The column containing the LocalTimeSQLFaultException - If the column is unknown or if the value cannot be returnedpublic Optional<Boolean> getBoolean(String column) throws SQLFaultException
column - The column containing the BooleanSQLFaultException - If the column is unknown or if the value cannot be returnedCopyright © 2018. All rights reserved.