Modifier and Type | Class and Description |
---|---|
class |
TypedDataSet<T>
Typed data set.
|
Modifier and Type | Method and Description |
---|---|
DataSet |
DataSet.add(DataSet other)
Add rows of given data set to this data set.
|
static DataSet |
DataSet.copyOf(DataSet data)
Create data set with the same contents of given data set.
|
DataSet |
DataSetBuilder.data()
Get data set this builder associates to.
|
static DataSet |
JDBDT.data(DataSource dataSource)
Create a new data set.
|
static DataSet |
JDBDT.empty(DataSource dataSource)
Get empty data set constant for given data source.
|
static DataSet |
DataSet.first(DataSet data,
int count)
Create sub-set with the first
n rows. |
static DataSet |
DataSet.join(DataSet... dataSets)
Create data set that results from joining
several data sets.
|
static DataSet |
DataSet.last(DataSet data,
int n)
Create sub-set with the last
n rows. |
static DataSet |
JDBDT.read(DataSource source,
CSV.Format format,
File file)
Read data set from CSV file.
|
DataSet |
DataSet.row(Object... columnValues)
Add a row to the data set.
|
DataSet |
DataSet.rows(Object[][] rows)
Add rows to the data set.
|
static DataSet |
DataSet.singleton(DataSet data,
int index)
Create a data set with only one row from the given
data set.
|
static DataSet |
DataSet.subset(DataSet data,
int startIndex,
int count)
Create a subset of the rows of given data set.
|
static DataSet |
JDBDT.takeSnapshot(DataSource dataSource)
Take a database snapshot.
|
Modifier and Type | Method and Description |
---|---|
DataSet |
DataSet.add(DataSet other)
Add rows of given data set to this data set.
|
static void |
JDBDT.assertDeleted(DataSet... dataSets)
Assert that database changed by removal of given data sets.
|
static void |
JDBDT.assertDeleted(DataSet dataSet)
Assert that database changed by removal of given
data set.
|
static void |
JDBDT.assertDeleted(String message,
DataSet... dataSets)
Assert that database changed by removal of given
data sets (error message variant).
|
static void |
JDBDT.assertDeleted(String message,
DataSet dataSet)
Assert that database changed only by removal of a given
data set (error message variant).
|
static void |
JDBDT.assertDelta(DataSet oldData,
DataSet newData)
Assert database delta expressed by 'old' and 'new' data sets.
|
static void |
JDBDT.assertDelta(String message,
DataSet oldData,
DataSet newData)
Assert database delta expressed by 'old' and 'new' data sets (error message variant).
|
static void |
JDBDT.assertEquals(DataSet expected,
DataSet actual)
Assert that two data sets are equivalent.
|
static void |
JDBDT.assertEquals(String message,
DataSet expected,
DataSet actual)
Assert that two data sets are equivalent (error message variant).
|
static void |
JDBDT.assertInserted(DataSet... dataSets)
Assert that database changed only by addition of given data sets.
|
static void |
JDBDT.assertInserted(DataSet dataSet)
Assert that database changed only by insertion of a given data set.
|
static void |
JDBDT.assertInserted(String message,
DataSet... dataSets)
Assert that database changed only by insertion of given
data sets (error message variant).
|
static void |
JDBDT.assertInserted(String message,
DataSet dataSet)
Assert that database changed only by insertion of a given
data set (error message variant).
|
static void |
JDBDT.assertState(DataSet... dataSets)
Assert that the database state matches the given data sets.
|
static void |
JDBDT.assertState(DataSet dataSet)
Assert that the database state matches the given data set.
|
static void |
JDBDT.assertState(String message,
DataSet... dataSets)
Assert that the database state matches the given data sets (error message variant)
|
static void |
JDBDT.assertState(String message,
DataSet dataSet)
Assert that the database state matches the given data set (error message variant).
|
static DataSet |
DataSet.copyOf(DataSet data)
Create data set with the same contents of given data set.
|
static void |
JDBDT.delete(DataSet... dataSets)
Delete data sets from the database.
|
static void |
JDBDT.delete(DataSet data)
Delete data set from the database.
|
static void |
JDBDT.dump(DataSet data,
File outputFile)
Dump the contents of a data set (output file variant).
|
static void |
JDBDT.dump(DataSet data,
PrintStream out)
Dump the contents of a data set.
|
static DataSet |
DataSet.first(DataSet data,
int count)
Create sub-set with the first
n rows. |
static void |
JDBDT.insert(DataSet... dataSets)
Insert data sets into the database.
|
static void |
JDBDT.insert(DataSet data)
Insert a data set into the database.
|
static DataSet |
DataSet.join(DataSet... dataSets)
Create data set that results from joining
several data sets.
|
static DataSet |
DataSet.last(DataSet data,
int n)
Create sub-set with the last
n rows. |
static void |
JDBDT.populate(DataSet... dataSets)
Populate database with given data sets.
|
static void |
JDBDT.populate(DataSet data)
Populate database with given data set.
|
static void |
JDBDT.populateIfChanged(DataSet... dataSets)
Populate database with given data sets if the associated
tables are seen as changed.
|
static void |
JDBDT.populateIfChanged(DataSet data)
Populate database with given data set if the associated
table is seen as changed.
|
static DataSet |
DataSet.singleton(DataSet data,
int index)
Create a data set with only one row from the given
data set.
|
static DataSet |
DataSet.subset(DataSet data,
int startIndex,
int count)
Create a subset of the rows of given data set.
|
static void |
JDBDT.update(DataSet... dataSets)
Update database according to given data sets.
|
static void |
JDBDT.update(DataSet data)
Update database according to given data set.
|
static void |
JDBDT.write(DataSet dataSet,
CSV.Format format,
File file)
Write data set to CSV file.
|
Constructor and Description |
---|
DataSetBuilder(DataSet data)
Constructs a new data set builder backed by an existing data set.
|
Copyright © 2016–2021 JDBDT. All rights reserved.