public abstract class AbstractDataSetDefBuilder<T> extends Object implements DataSetDefBuilder<T>
| Modifier and Type | Field and Description |
|---|---|
protected DataSetDef |
def |
| Constructor and Description |
|---|
AbstractDataSetDefBuilder() |
| Modifier and Type | Method and Description |
|---|---|
DataSetDef |
buildDef() |
T |
cacheOff()
Disables the cache
|
T |
cacheOn(int maxRowsInCache)
Enables the cache for this data set
|
T |
column(String columnId,
ColumnType type)
Add an empty column of the specified type.
|
protected abstract DataSetDef |
createDataSetDef() |
T |
date(String columnId)
Add an empty column of type date.
|
T |
label(String columnId)
Add an empty column of type label.
|
T |
name(String name)
Set the DataSetDef name.
|
T |
number(String columnId)
Add an empty column of numeric type.
|
T |
pushOff()
Disable the ability to push remote data sets from server.
|
T |
pushOn(int pushMaxSize)
Enable the ability to push remote data sets from server.
|
T |
refreshOff()
Turns of the data set refresh mechanism.
|
T |
refreshOn(String refreshTime,
boolean refreshAlways)
Turns on the data set refresh mechanism.
|
T |
text(String columnId)
Add an empty column of type text.
|
T |
uuid(String uuid)
Set the DataSetDef UUID.
|
protected DataSetDef def
protected abstract DataSetDef createDataSetDef()
public T uuid(String uuid)
DataSetDefBuilderuuid in interface DataSetDefBuilder<T>uuid - The UUID of the DataSetDef that is being assembled.public T name(String name)
DataSetDefBuildername in interface DataSetDefBuilder<T>name - The name of the DataSetDef that is being assembled.public T pushOn(int pushMaxSize)
DataSetDefBuilderpushOn in interface DataSetDefBuilder<T>pushMaxSize - The maximum size (in kbytes) a data set may have in order to be pushed to clients.public T pushOff()
DataSetDefBuilderpushOff in interface DataSetDefBuilder<T>public T cacheOn(int maxRowsInCache)
DataSetDefBuildercacheOn in interface DataSetDefBuilder<T>maxRowsInCache - Max. rows the cache is able to handle. For higher values the cache is automatically disabled.public T cacheOff()
DataSetDefBuildercacheOff in interface DataSetDefBuilder<T>public T refreshOn(String refreshTime, boolean refreshAlways)
DataSetDefBuilderrefreshOn in interface DataSetDefBuilder<T>refreshTime - The amount of time between refresh intervals TimeAmountrefreshAlways - If false then the refresh will be only performed when the underlying data provider determines
that the data set has become stale. Otherwise the data set is always refreshed.
data set is outdated. This can be very useful to avoid refreshing unnecessarily.public T refreshOff()
DataSetDefBuilderrefreshOff in interface DataSetDefBuilder<T>public T label(String columnId)
DataSetDefBuilderlabel in interface DataSetDefBuilder<T>public T text(String columnId)
DataSetDefBuildertext in interface DataSetDefBuilder<T>public T number(String columnId)
DataSetDefBuildernumber in interface DataSetDefBuilder<T>public T date(String columnId)
DataSetDefBuilderdate in interface DataSetDefBuilder<T>public T column(String columnId, ColumnType type)
DataSetDefBuildercolumn in interface DataSetDefBuilder<T>public DataSetDef buildDef()
buildDef in interface DataSetDefBuilder<T>DataSetDefCopyright © 2017–2019 JBoss by Red Hat. All rights reserved.