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 |
addProperty, addRowValue, addRowValues, clear, fillArrayWithRow, fillMapWithRow, formatXMLProperties, getDataProvider, getProperties, getPropertyById, getPropertyByIndex, getPropertyColumn, getPropertyValues, getPropertyValues, getRowAsMap, getRowAt, getRowCount, getValueAt, getValuesAt, groupBy, parseXMLProperties, printIndent, setDataProvider, setPropertySize, 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)
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 void filter(DataFilter filter)
throws Exception
- Specified by:
filter in interface DataSet- Overrides:
filter in class AbstractDataSet
- Throws:
Exception
Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.