public interface SQLDataSetDefBuilder<T extends DataSetDefBuilder> extends DataSetDefBuilder<T>
DataSetDef dataSetDef = DataSetDefFactory.newSQLDataSetDef()
.uuid("all_employees")
.dataSource("java:comp/jdbc/test")
.dbTable("employees")
.buildDef();
| Modifier and Type | Method and Description |
|---|---|
T |
dataSource(String dataSource)
Set the data source where this data set is stored.
|
T |
dbSchema(String dbSchema)
Set the database schema where the target table relies
|
T |
dbSQL(String dbSQL,
boolean allColumns)
Specifies a custom SQL for the retrieval of the data set rows.
|
T |
dbTable(String dbTable,
boolean allColumns)
Set the database table holding all the data set rows.
|
T dataSource(String dataSource)
dataSource - the data source JNDI nameT dbSchema(String dbSchema)
dbSchema - the schema nameT dbTable(String dbTable, boolean allColumns)
NOTE: 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 - 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)T dbSQL(String dbSQL, boolean allColumns)
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)Copyright © 2017–2020 JBoss by Red Hat. All rights reserved.