T
- Type of objects.public final class TypedDataSet<T> extends DataSet
JDBDT.data(DataSource, Conversion)
,
Conversion
Constructor and Description |
---|
TypedDataSet(DataSource ds,
Conversion<T> conv)
Construct a typed data set.
|
Modifier and Type | Method and Description |
---|---|
TypedDataSet<T> |
row(T rowObj)
Add row to the data set.
|
TypedDataSet<T> |
rows(Collection<? extends T> rows)
Add rows in a collection to the data set.
|
TypedDataSet<T> |
rows(T... rows)
Add rows to the data set.
|
public TypedDataSet(DataSource ds, Conversion<T> conv)
ds
- Data source.conv
- Conversion function.public TypedDataSet<T> row(T rowObj)
rowObj
- Row object.@SafeVarargs public final TypedDataSet<T> rows(T... rows)
rows
- Objects to map onto row values.public TypedDataSet<T> rows(Collection<? extends T> rows)
rows
- Collection of row objects.Copyright © 2016–2021 JDBDT. All rights reserved.