public interface Record
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String column)
Does this DataSet contain a column with the given name?
|
BigDecimal |
getBigDecimal(String column)
Returns the BigDecimal value of a specified column
|
BigDecimal |
getBigDecimal(String column,
java.util.function.Supplier<BigDecimal> defaultSupplier)
Returns the BigDecimal value of a specified column
|
String[] |
getColumns()
Returns a String array of column names in the DataSet.
|
String[] |
getColumns(String recordID)
Returns a String array of column names in the DataSet for a given
<RECORD> id
|
Date |
getDate(String column)
Returns the date value of a specified column.
|
Date |
getDate(String column,
SimpleDateFormat sdf)
Returns the date value of a specified column.
|
Date |
getDate(String column,
SimpleDateFormat sdf,
java.util.function.Supplier<Date> defaultSupplier)
Returns the date value of a specified column.
|
Date |
getDate(String column,
java.util.function.Supplier<Date> defaultSupplier)
Returns the date value of a specified column.
|
double |
getDouble(String column)
Returns the double value of a specified column
|
double |
getDouble(String column,
java.util.function.Supplier<Double> defaultSupplier)
Returns the double value of a specified column
|
int |
getInt(String column)
Returns the integer value of a specified column
|
int |
getInt(String column,
java.util.function.Supplier<Integer> defaultSupplier)
Returns the integer value of a specified column
|
long |
getLong(String column)
Returns the long value of a specified column
|
long |
getLong(String column,
java.util.function.Supplier<Long> defaultSupplier)
Returns the long value of a specified column
|
Object |
getObject(String column,
Class<?> classToConvertTo)
Returns the value of the column with the type of object specified
|
String |
getRawData() |
int |
getRowNo()
Returns the line number the pointer is on.
|
String |
getString(String column)
Returns the string value of a specified column
|
String |
getString(String column,
java.util.function.Supplier<String> defaultSupplier)
Returns the string value of a specified column
|
boolean |
isRecordID(String recordID)
Checks to see if the row has the given <RECORD> id
|
boolean |
isRowEmpty()
Checks to see if there was no data on the row which was parsed.
|
String getString(String column)
column - - Name of the columnNoSuchElementExceptionString getString(String column, java.util.function.Supplier<String> defaultSupplier)
column - - Name of the columndefaultSupplier - for default value if result in column is null/emptyNoSuchElementException - if col does not existdouble getDouble(String column, java.util.function.Supplier<Double> defaultSupplier)
column - - Name of the columndefaultSupplier - for default value if result in column is null/emptyNoSuchElementExceptionNumberFormatExceptiondouble getDouble(String column)
column - - Name of the columnNoSuchElementExceptionNumberFormatExceptionBigDecimal getBigDecimal(String column, java.util.function.Supplier<BigDecimal> defaultSupplier)
column - - Name of the columndefaultSupplier - for default value if result in column is null/emptyNoSuchElementExceptionNumberFormatExceptionBigDecimal getBigDecimal(String column)
column - - Name of the columnNoSuchElementExceptionNumberFormatExceptionint getInt(String column, java.util.function.Supplier<Integer> defaultSupplier)
column - - Name of the columndefaultSupplier - for default value if result in column is null/emptyNoSuchElementExceptionNumberFormatExceptionint getInt(String column)
column - - Name of the columnNoSuchElementExceptionNumberFormatExceptionlong getLong(String column, java.util.function.Supplier<Long> defaultSupplier)
column - - Name of the columndefaultSupplier - for default value if result in column is null/emptyNoSuchElementExceptionNumberFormatExceptionlong getLong(String column)
column - - Name of the columnNoSuchElementExceptionNumberFormatExceptionDate getDate(String column, java.util.function.Supplier<Date> defaultSupplier) throws ParseException
column - - Name of the columndefaultSupplier - for default value if result in column is null/emptyParseExceptionDate getDate(String column) throws ParseException
column - - Name of the columnParseExceptionDate getDate(String column, SimpleDateFormat sdf, java.util.function.Supplier<Date> defaultSupplier) throws ParseException
column - - Name of the columnsdf - - SimpleDateFormat of the datedefaultSupplier - for default value if result in column is null/emptyParseExceptionSimpleDateFormatDate getDate(String column, SimpleDateFormat sdf) throws ParseException
column - - Name of the columnsdf - - SimpleDateFormat of the dateParseExceptionSimpleDateFormatObject getObject(String column, Class<?> classToConvertTo)
column - Name of the columnclassToConvertTo - Class type to convert toString[] getColumns()
String[] getColumns(String recordID)
recordID - int getRowNo()
NoSuchElementExceptionNumberFormatExceptionboolean isRecordID(String recordID)
recordID - boolean contains(String column)
column - Column name to check forboolean isRowEmpty()
String getRawData()
Copyright © 2006–2015 Appendium - Portfolio Financing Platform. All rights reserved.