public class DataSetList extends AbstractList<Map<String,Object>> implements net.sf.flatpack.DataSet
DataSetList
wraps the DataSet
as a Java List
type so the data can easily be iterated.
You can access the DataSet
API from this DataSetList
as it implements DataSet
.modCount
Constructor and Description |
---|
DataSetList(net.sf.flatpack.DataSet dataSet) |
Modifier and Type | Method and Description |
---|---|
void |
absolute(int localPointer) |
void |
clearAll() |
void |
clearErrors() |
void |
clearRows() |
boolean |
contains(String column) |
Map<String,Object> |
get(int index) |
BigDecimal |
getBigDecimal(String column) |
String[] |
getColumns() |
String[] |
getColumns(String recordID) |
Date |
getDate(String column) |
Date |
getDate(String column,
SimpleDateFormat sdf) |
double |
getDouble(String column) |
int |
getErrorCount() |
List |
getErrors() |
int |
getIndex() |
int |
getInt(String column) |
long |
getLong(String column) |
Object |
getObject(String column,
Class<?> classToConvertTo) |
String |
getRawData() |
net.sf.flatpack.Record |
getRecord() |
int |
getRowCount() |
int |
getRowNo() |
String |
getString(String column) |
void |
goBottom() |
void |
goTop() |
boolean |
isAnError(int lineNo) |
boolean |
isRecordID(String recordID) |
boolean |
isRowEmpty() |
Iterator<Map<String,Object>> |
iterator() |
boolean |
next() |
void |
orderRows(net.sf.flatpack.ordering.OrderBy ob) |
boolean |
previous() |
void |
remove() |
void |
setLowerCase() |
void |
setPZConvertProps(Properties props) |
void |
setStrictNumericParse(boolean strictNumericParse) |
void |
setUpperCase() |
void |
setValue(String column,
String value) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public int size()
public void goTop()
goTop
in interface net.sf.flatpack.DataSet
public void goBottom()
goBottom
in interface net.sf.flatpack.DataSet
public boolean previous()
previous
in interface net.sf.flatpack.DataSet
public List getErrors()
getErrors
in interface net.sf.flatpack.DataSet
public void remove()
remove
in interface net.sf.flatpack.DataSet
public int getIndex()
getIndex
in interface net.sf.flatpack.DataSet
public int getRowCount()
getRowCount
in interface net.sf.flatpack.DataSet
public int getErrorCount()
getErrorCount
in interface net.sf.flatpack.DataSet
public boolean isAnError(int lineNo)
isAnError
in interface net.sf.flatpack.DataSet
public void orderRows(net.sf.flatpack.ordering.OrderBy ob)
orderRows
in interface net.sf.flatpack.DataSet
public void setLowerCase()
setLowerCase
in interface net.sf.flatpack.DataSet
public void setUpperCase()
setUpperCase
in interface net.sf.flatpack.DataSet
public void absolute(int localPointer)
absolute
in interface net.sf.flatpack.DataSet
public void setStrictNumericParse(boolean strictNumericParse)
setStrictNumericParse
in interface net.sf.flatpack.DataSet
public void setPZConvertProps(Properties props)
setPZConvertProps
in interface net.sf.flatpack.DataSet
public void setValue(String column, String value)
setValue
in interface net.sf.flatpack.DataSet
public void clearRows()
clearRows
in interface net.sf.flatpack.DataSet
public void clearErrors()
clearErrors
in interface net.sf.flatpack.DataSet
public void clearAll()
clearAll
in interface net.sf.flatpack.DataSet
public String getString(String column)
getString
in interface net.sf.flatpack.Record
public double getDouble(String column)
getDouble
in interface net.sf.flatpack.Record
public BigDecimal getBigDecimal(String column)
getBigDecimal
in interface net.sf.flatpack.Record
public int getInt(String column)
getInt
in interface net.sf.flatpack.Record
public long getLong(String column)
getLong
in interface net.sf.flatpack.Record
public Date getDate(String column) throws ParseException
getDate
in interface net.sf.flatpack.Record
ParseException
public Date getDate(String column, SimpleDateFormat sdf) throws ParseException
getDate
in interface net.sf.flatpack.Record
ParseException
public Object getObject(String column, Class<?> classToConvertTo)
getObject
in interface net.sf.flatpack.Record
public String[] getColumns()
getColumns
in interface net.sf.flatpack.Record
public String[] getColumns(String recordID)
getColumns
in interface net.sf.flatpack.Record
public int getRowNo()
getRowNo
in interface net.sf.flatpack.Record
public boolean isRecordID(String recordID)
isRecordID
in interface net.sf.flatpack.Record
public boolean contains(String column)
contains
in interface net.sf.flatpack.Record
public boolean isRowEmpty()
isRowEmpty
in interface net.sf.flatpack.Record
public String getRawData()
getRawData
in interface net.sf.flatpack.Record
public boolean next()
next
in interface net.sf.flatpack.RecordDataSet
public net.sf.flatpack.Record getRecord()
getRecord
in interface net.sf.flatpack.RecordDataSet
Apache Camel