Constructor and Description |
---|
RowRecord(Row row,
MetaData metaData,
boolean columnCaseSensitive,
Properties pzConvertProps,
boolean strictNumericParse,
boolean upperCase,
boolean lowerCase,
boolean nullEmptyString) |
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,
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,
Supplier<Date> defaultSupplier)
Returns the date value of a specified column.
|
Date |
getDate(String column,
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,
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,
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,
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,
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.
|
public RowRecord(Row row, MetaData metaData, boolean columnCaseSensitive, Properties pzConvertProps, boolean strictNumericParse, boolean upperCase, boolean lowerCase, boolean nullEmptyString)
public boolean isRecordID(String recordID)
Record
isRecordID
in interface Record
public int getRowNo()
Record
public boolean isRowEmpty()
Record
isRowEmpty
in interface Record
public boolean contains(String column)
Record
public String[] getColumns()
Record
getColumns
in interface Record
public String[] getColumns(String recordID)
Record
getColumns
in interface Record
public Date getDate(String column, SimpleDateFormat sdf, Supplier<Date> defaultSupplier) throws ParseException
Record
getDate
in interface Record
column
- - Name of the columnsdf
- - SimpleDateFormat of the datedefaultSupplier
- for default value if result in column is null/emptyParseException
SimpleDateFormat
public Date getDate(String column, Supplier<Date> defaultSupplier) throws ParseException
Record
getDate
in interface Record
column
- - Name of the columndefaultSupplier
- for default value if result in column is null/emptyParseException
public Date getDate(String column) throws ParseException
Record
getDate
in interface Record
column
- - Name of the columnParseException
public Date getDate(String column, SimpleDateFormat sdf) throws ParseException
Record
getDate
in interface Record
column
- - Name of the columnsdf
- - SimpleDateFormat of the dateParseException
SimpleDateFormat
public double getDouble(String column, Supplier<Double> defaultSupplier)
Record
public double getDouble(String column)
Record
public int getInt(String column, Supplier<Integer> defaultSupplier)
Record
public int getInt(String column)
Record
public long getLong(String column, Supplier<Long> defaultSupplier)
Record
public long getLong(String column)
Record
public Object getObject(String column, Class<?> classToConvertTo)
Record
public BigDecimal getBigDecimal(String column, Supplier<BigDecimal> defaultSupplier)
Record
getBigDecimal
in interface Record
column
- - Name of the columndefaultSupplier
- for default value if result in column is null/emptypublic BigDecimal getBigDecimal(String column)
Record
getBigDecimal
in interface Record
column
- - Name of the columnpublic String getString(String column, Supplier<String> defaultSupplier)
Record
public String getString(String column)
Record
public String getRawData()
getRawData
in interface Record
Copyright © 2006–2016 Appendium - Portfolio Financing Platform. All rights reserved.