Package org.dashbuilder.dataset.impl
Class DataSetBuilderImpl
- java.lang.Object
-
- org.dashbuilder.dataset.impl.DataSetBuilderImpl
-
- All Implemented Interfaces:
DataSetBuilder
public class DataSetBuilderImpl extends Object implements DataSetBuilder
-
-
Constructor Summary
Constructors Constructor Description DataSetBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSetbuildDataSet()Build and get the resulting DataSet instance.DataSetBuilderImplcolumn(String columnId, ColumnType type)Add an empty column of the specified type.DataSetBuilderImpldate(String columnId)Add an empty column of type date.DataSetBuilderImpllabel(String columnId)Add an empty column of type label.DataSetBuilderImplnumber(String columnId)Add an empty column of numeric type.DataSetBuilderImplrow(Object... values)Add a row with the given values at the end of the data set.DataSetBuilderImpltext(String columnId)Add an empty column of type text.DataSetBuilderImpluuid(String uuid)Assigns an UUID to the data set
-
-
-
Field Detail
-
dataSet
protected DataSet dataSet
-
-
Method Detail
-
uuid
public DataSetBuilderImpl uuid(String uuid)
Description copied from interface:DataSetBuilderAssigns an UUID to the data set- Specified by:
uuidin interfaceDataSetBuilder
-
label
public DataSetBuilderImpl label(String columnId)
Description copied from interface:DataSetBuilderAdd an empty column of type label.- Specified by:
labelin interfaceDataSetBuilder
-
text
public DataSetBuilderImpl text(String columnId)
Description copied from interface:DataSetBuilderAdd an empty column of type text.- Specified by:
textin interfaceDataSetBuilder
-
number
public DataSetBuilderImpl number(String columnId)
Description copied from interface:DataSetBuilderAdd an empty column of numeric type.- Specified by:
numberin interfaceDataSetBuilder
-
date
public DataSetBuilderImpl date(String columnId)
Description copied from interface:DataSetBuilderAdd an empty column of type date.- Specified by:
datein interfaceDataSetBuilder
-
column
public DataSetBuilderImpl column(String columnId, ColumnType type)
Description copied from interface:DataSetBuilderAdd an empty column of the specified type.- Specified by:
columnin interfaceDataSetBuilder
-
row
public DataSetBuilderImpl row(Object... values)
Description copied from interface:DataSetBuilderAdd a row with the given values at the end of the data set.- Specified by:
rowin interfaceDataSetBuilder
-
buildDataSet
public DataSet buildDataSet()
Description copied from interface:DataSetBuilderBuild and get the resulting DataSet instance.- Specified by:
buildDataSetin interfaceDataSetBuilder
-
-