public class SQLDataSetDefBuilderImpl extends AbstractDataSetDefBuilder<SQLDataSetDefBuilderImpl> implements SQLDataSetDefBuilder<SQLDataSetDefBuilderImpl>
def| Constructor and Description |
|---|
SQLDataSetDefBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected DataSetDef |
createDataSetDef() |
SQLDataSetDefBuilderImpl |
dataSource(String dataSource)
Set the data source where this data set is stored.
|
SQLDataSetDefBuilderImpl |
dbSchema(String dbSchema)
Set the database schema where the target table relies
|
SQLDataSetDefBuilderImpl |
dbSQL(String dbSQL,
boolean allColumns)
Specifies a custom SQL for the retrieval of the data set rows.
|
SQLDataSetDefBuilderImpl |
dbTable(String dbTable,
boolean allColumns)
Set the database table holding all the data set rows.
|
SQLDataSetDefBuilderImpl |
estimateSize(boolean estimateSize) |
buildDef, cacheOff, cacheOn, column, date, label, name, number, pushOff, pushOn, refreshOff, refreshOn, text, uuidprotected DataSetDef createDataSetDef()
createDataSetDef in class AbstractDataSetDefBuilder<SQLDataSetDefBuilderImpl>public SQLDataSetDefBuilderImpl dataSource(String dataSource)
SQLDataSetDefBuilderdataSource in interface SQLDataSetDefBuilder<SQLDataSetDefBuilderImpl>dataSource - the data source JNDI namepublic SQLDataSetDefBuilderImpl dbSchema(String dbSchema)
SQLDataSetDefBuilderdbSchema in interface SQLDataSetDefBuilder<SQLDataSetDefBuilderImpl>dbSchema - the schema namepublic SQLDataSetDefBuilderImpl dbTable(String dbTable, boolean allColumns)
SQLDataSetDefBuilderNOTE: You can either specify a DB table containing all the rows or provide a custom SQL (see the dbSQL method). The SQL settings has preference over the DB table. Therefore, calling to this method will have no effect if the method dbSQL has been previously invoked.
dbTable in interface SQLDataSetDefBuilder<SQLDataSetDefBuilderImpl>dbTable - the table nameallColumns - If true then all the DB table columns will be part of the data set.
If false then only the columns defined (see the DataSetDefBuilder column definition methods)public SQLDataSetDefBuilderImpl dbSQL(String dbSQL, boolean allColumns)
SQLDataSetDefBuilderdbSQL in interface SQLDataSetDefBuilder<SQLDataSetDefBuilderImpl>dbSQL - the data retrieval SQLallColumns - If true then all the column returned by the SQL will be part of the data set.
If false then only the columns defined (see the DataSetDefBuilder column definition methods)public SQLDataSetDefBuilderImpl estimateSize(boolean estimateSize)
Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.