it.eng.spagobi.tools.dataset.common.datastore
Class DataStore

java.lang.Object
  extended by it.eng.spagobi.tools.dataset.common.datastore.DataStore
All Implemented Interfaces:
IDataStore

public class DataStore
extends java.lang.Object
implements IDataStore


Constructor Summary
DataStore()
           
 
Method Summary
 void appendRecord(IRecord record)
           
 java.util.List findRecords(int fieldIndex, java.lang.Object fieldValue)
           
 java.util.List findRecords(IRecordMatcher matcher)
           
 java.util.List findRecords(java.util.List fieldIndexes, java.util.List fieldValues)
           
 java.util.Set getFieldDistinctValues(int fieldIndex)
           
 java.util.List getFieldValues(int fieldIndex)
           
 IDataStoreMetaData getMetaData()
           
 IRecord getRecordAt(int i)
           
 IRecord getRecordByID(java.lang.Object value)
           
 java.util.List getRecords()
           
 void insertRecord(int position, IRecord record)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 void prependRecord(IRecord record)
           
 void setMetaData(IDataStoreMetaData metaData)
           
 void setRecords(java.util.List records)
           
 void sortRecords(java.util.Comparator recordComparator)
           
 void sortRecords(int fieldIndex)
           
 void sortRecords(int fieldIndex, java.util.Comparator filedComparator)
           
 it.eng.spago.base.SourceBean toSourceBean()
           
 java.lang.String toXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataStore

public DataStore()
Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface IDataStore

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface IDataStore

appendRecord

public void appendRecord(IRecord record)
Specified by:
appendRecord in interface IDataStore

prependRecord

public void prependRecord(IRecord record)
Specified by:
prependRecord in interface IDataStore

insertRecord

public void insertRecord(int position,
                         IRecord record)
Specified by:
insertRecord in interface IDataStore

getRecordAt

public IRecord getRecordAt(int i)
Specified by:
getRecordAt in interface IDataStore

getRecordByID

public IRecord getRecordByID(java.lang.Object value)
Specified by:
getRecordByID in interface IDataStore

findRecords

public java.util.List findRecords(int fieldIndex,
                                  java.lang.Object fieldValue)
Specified by:
findRecords in interface IDataStore

findRecords

public java.util.List findRecords(java.util.List fieldIndexes,
                                  java.util.List fieldValues)
Specified by:
findRecords in interface IDataStore

findRecords

public java.util.List findRecords(IRecordMatcher matcher)
Specified by:
findRecords in interface IDataStore

getMetaData

public IDataStoreMetaData getMetaData()
Specified by:
getMetaData in interface IDataStore

setMetaData

public void setMetaData(IDataStoreMetaData metaData)

getFieldValues

public java.util.List getFieldValues(int fieldIndex)
Specified by:
getFieldValues in interface IDataStore

getFieldDistinctValues

public java.util.Set getFieldDistinctValues(int fieldIndex)
Specified by:
getFieldDistinctValues in interface IDataStore

sortRecords

public void sortRecords(int fieldIndex)
Specified by:
sortRecords in interface IDataStore

sortRecords

public void sortRecords(int fieldIndex,
                        java.util.Comparator filedComparator)
Specified by:
sortRecords in interface IDataStore

sortRecords

public void sortRecords(java.util.Comparator recordComparator)
Specified by:
sortRecords in interface IDataStore

getRecords

public java.util.List getRecords()

setRecords

public void setRecords(java.util.List records)

toSourceBean

public it.eng.spago.base.SourceBean toSourceBean()
                                          throws it.eng.spago.base.SourceBeanException
Specified by:
toSourceBean in interface IDataStore
Throws:
it.eng.spago.base.SourceBeanException

toXml

public java.lang.String toXml()
Specified by:
toXml in interface IDataStore