Dashboard Builder CSV Provider 6.1.0.Beta4

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.


Nested Class Summary
 class CSVDataSet.CSVReadTrace
           
 
Field Summary
protected  DateFormat _dateFormat
           
protected  DecimalFormat _numberFormat
           
protected  CSVDataLoader csvLoader
           
protected  au.com.bytecode.opencsv.CSVReader csvReader
           
protected static org.slf4j.Logger log
          Logger
 
Fields inherited from class org.jboss.dashboard.dataset.AbstractDataSet
index, NON_NULL_ELEMENTS, ORACLE_TIMESTAMP, properties, propertyValues, provider
 
Constructor Summary
CSVDataSet(DataProvider provider, CSVDataLoader loader)
           
 
Method Summary
 Domain calculateDomain(String value)
           
 CSVDataProperty createCSVProperty()
           
 void load()
           
 Object parseValue(CSVDataProperty prop, String value)
           
protected  Object[] processLine(String[] line)
           
 
Methods inherited from class org.jboss.dashboard.dataset.AbstractDataSet
_filterInMemory, _transformValue, addProperty, addRowValue, addRowValues, calculateScalar, clear, fillArrayWithRow, fillMapWithRow, filter, 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
 

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.slf4j.Logger 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

processLine

protected Object[] processLine(String[] line)
                        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.1.0.Beta4

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