public interface DataSetDefBuilder<T>
DataSetDef providerSettings = DataSetDefFactory.newSQLDataSetDef()
.uuid("all_employees")
.datasource("jndi/mydatasource")
.query("SELECT * FROM employee")
.label("id")
.build();
DataSetDef| 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.
|
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.
|
T uuid(String uuid)
uuid - The UUID of the DataSetDef that is being assembled.T name(String name)
name - The name of the DataSetDef that is being assembled.DataSetDef buildDef()
DataSetDefT pushOn(int pushMaxSize)
pushMaxSize - The maximum size (in kbytes) a data set may have in order to be pushed to clients.T pushOff()
T cacheOn(int maxRowsInCache)
maxRowsInCache - Max. rows the cache is able to handle. For higher values the cache is automatically disabled.T cacheOff()
T refreshOn(String refreshTime, boolean refreshAlways)
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.T refreshOff()
T number(String columnId)
T date(String columnId)
T column(String columnId, ColumnType type)
Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.