Dashboard Builder CSV Provider 6.0.0.Beta1

org.jboss.dashboard.dataset.csv
Class CSVDataSet

java.lang.Object
  extended by org.jboss.dashboard.dataset.AbstractDataSet
      extended by org.jboss.dashboard.dataset.csv.CSVDataSet
All Implemented Interfaces:
DataSet

public class CSVDataSet
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  DateFormat _dateFormat
           
protected  DecimalFormat _numberFormat
           
protected  CSVDataLoader csvLoader
           
protected  au.com.bytecode.opencsv.CSVReader csvReader
           
protected static org.apache.commons.logging.Log log
          Logger
 
Fields inherited from class org.jboss.dashboard.dataset.AbstractDataSet
properties, propertyValues, propertyValuesFiltered, provider
 
Constructor Summary
CSVDataSet(DataProvider provider, CSVDataLoader loader)
           
 
Method Summary
 Domain calculateDomain(String value)
           
 CSVDataProperty createCSVProperty()
           
 void load()
           
 Object parseValue(CSVDataProperty prop, String value)
           
 
Methods inherited from class org.jboss.dashboard.dataset.AbstractDataSet
addProperty, addRowValue, addRowValues, clear, fillArrayWithRow, fillMapWithRow, filter, 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

csvReader

protected au.com.bytecode.opencsv.CSVReader csvReader

csvLoader

protected CSVDataLoader csvLoader

_dateFormat

protected transient DateFormat _dateFormat

_numberFormat

protected transient DecimalFormat _numberFormat

log

protected static transient org.apache.commons.logging.Log log
Logger

Constructor Detail

CSVDataSet

public CSVDataSet(DataProvider provider,
                  CSVDataLoader loader)
Method Detail

createCSVProperty

public CSVDataProperty createCSVProperty()

load

public void load()
          throws Exception
Throws:
Exception

calculateDomain

public Domain calculateDomain(String value)

parseValue

public Object parseValue(CSVDataProperty prop,
                         String value)
                  throws Exception
Throws:
Exception

Dashboard Builder CSV Provider 6.0.0.Beta1

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