org.jboss.dashboard.dataset.sql
Class SQLDataSet
java.lang.Object
org.jboss.dashboard.dataset.AbstractDataSet
org.jboss.dashboard.dataset.sql.SQLDataSet
- All Implemented Interfaces:
- DataSet
public class SQLDataSet
- extends AbstractDataSet
A data set implementation that holds as a matrix in-memory all the rows returned by a given SQL query executed
against a local or remote database.
| Methods inherited from class org.jboss.dashboard.dataset.AbstractDataSet |
_filterInMemory, _transformValue, addProperty, addRowValue, addRowValues, calculateScalar, clear, fillArrayWithRow, fillMapWithRow, formatXMLProperties, getDataProvider, getDataSetIndex, getProperties, getPropertyByColumn, getPropertyById, getPropertyColumn, getPropertyValues, getPropertyValues, getRowAsMap, getRowAt, getRowCount, getValueAt, getValuesAt, groupBy, groupBy, groupByLabel, parseXMLProperties, preProcessFilter, printIndent, setDataProvider, setPropertySize, sizeOf, sort |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataSource
protected String dataSource
- Where the data comes from.
sqlQuery
protected String sqlQuery
- The SQL query that retrieves the data from the data source.
lastExecutedStmt
protected transient SQLStatement lastExecutedStmt
- The last executed SQL statement
SQLDataSet
public SQLDataSet(DataProvider provider,
SQLDataLoader loader)
SQLDataSet
public SQLDataSet(DataProvider provider,
String dataSource,
String sqlQuery)
getDataSource
public String getDataSource()
getSQLQuery
public String getSQLQuery()
createSQLProperty
public SQLDataProperty createSQLProperty()
createSQLStatament
public SQLStatement createSQLStatament()
throws Exception
- Throws:
Exception
load
public void load()
throws Exception
- Throws:
Exception
filter
public DataSet filter(DataFilter filter)
throws Exception
- Specified by:
filter in interface DataSet- Overrides:
filter in class AbstractDataSet
- Throws:
Exception
_filterInDB
public DataSet _filterInDB(DataFilter filter)
throws Exception
- Throws:
Exception
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.