Dashboard Builder JDBC/SQL Provider 6.0.0.Beta2

org.jboss.dashboard.dataset.sql
Class SQLDataSet

java.lang.Object
  extended by org.jboss.dashboard.dataset.AbstractDataSet
      extended by 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.


Field Summary
protected  String dataSource
          Where the data comes from.
protected  SQLStatement lastExecutedStmt
          The last executed SQL statement
protected  String sqlQuery
          The SQL query that retrieves the data from the data source.
 
Fields inherited from class org.jboss.dashboard.dataset.AbstractDataSet
properties, propertyValues, propertyValuesFiltered, provider
 
Constructor Summary
SQLDataSet(DataProvider provider, SQLDataLoader loader)
           
 
Method Summary
 SQLDataProperty createSQLProperty()
           
 SQLStatement createSQLStatament()
           
 void filter(DataFilter filter)
           
 String getDataSource()
           
 String getSQLQuery()
           
 void load()
           
 
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
 

Field Detail

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

Constructor Detail

SQLDataSet

public SQLDataSet(DataProvider provider,
                  SQLDataLoader loader)
Method Detail

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

Dashboard Builder JDBC/SQL Provider 6.0.0.Beta2

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.