com.stimulsoft.report.dictionary.dataSources
Class StiCsvSource

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.report.dictionary.dataSources.StiDataSource
          extended by com.stimulsoft.report.dictionary.dataSources.StiDataStoreSource
              extended by com.stimulsoft.report.dictionary.dataSources.StiCsvSource
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, IStiEnumerator, IStiInherited, IStiStateSaveRestore, java.lang.Cloneable

public class StiCsvSource
extends StiDataStoreSource

Describes the Data Source realizing access to OleDb.


Field Summary
 
Fields inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataSource
columns, connectOnStart, detailRows, initForSubreport, RowToLevel
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiCsvSource()
          Creates a new object of the type StiDataViewSource.
StiCsvSource(java.lang.String nameInSource, java.lang.String name)
          Creates a new object of the type StiOleDbSource.
StiCsvSource(java.lang.String nameInSource, java.lang.String name, java.lang.String alias)
          Creates a new object of the type StiOleDbSource.
 
Method Summary
 int getCodePage()
           
 java.lang.Class<? extends StiDatabase> getDatabaseClass()
           
 java.lang.String getPath()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setCodePage(int codePage)
           
 void setPath(java.lang.String path)
           
 
Methods inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataStoreSource
connect, connect, createNewTable, disconnect, GetCategoryName, getDataName, getNameInSource, getQuery, setDataName, setNameInSource
 
Methods inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataSource
CheckColumnsIndexs, clearAllStates, ClearAllStates, First, get, getAlias, GetChildDataSource, GetChildRelations, GetColumnIndex, getColumns, GetConditions, getConnectionOrder, getConnectOnStart, getCount, GetData, getData, GetData, GetDataRow, getDataTable, getDictionary, getInherited, getIsBof, getIsConnected, getIsEmpty, getIsEof, getItem, getKey, GetLevel, getName, getParameters, GetParentData, GetParentDataSource, GetParentRelations, getPosition, getPositionValue, getRealCount, getRelations, getRows, getVariableParameterByName, getVariableParameters, isEmpty, Last, Next, prepareData, Prior, ResetData, ResetDetailsRows, restoreState, RestoreState, saveState, setAlias, setColumns, setConnectionOrder, setConnectOnStart, setCorrectName, SetData, setDataTable, SetDetails, setDictionary, SetFilter, setInherited, setIsBof, setIsEof, setKey, setName, setParameters, setPosition, setPositionValue, setRows, SetSort, setVariableParameters, size, toString
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
getReference, setReference
 

Constructor Detail

StiCsvSource

public StiCsvSource()
Creates a new object of the type StiDataViewSource.


StiCsvSource

public StiCsvSource(java.lang.String nameInSource,
                    java.lang.String name)
Creates a new object of the type StiOleDbSource.

Parameters:
nameInSource - Name of OleDbConnection in the DataStore.
name - Data Source name.

StiCsvSource

public StiCsvSource(java.lang.String nameInSource,
                    java.lang.String name,
                    java.lang.String alias)
Creates a new object of the type StiOleDbSource.

Parameters:
nameInSource - Name of OleDbConnection in the DataStore.
name - Data Source name.
alias - Data Source alias.
Method Detail

setCodePage

public void setCodePage(int codePage)

getCodePage

public int getCodePage()

setPath

public void setPath(java.lang.String path)

getPath

public java.lang.String getPath()

getDatabaseClass

public java.lang.Class<? extends StiDatabase> getDatabaseClass()
Specified by:
getDatabaseClass in class StiDataSource

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Overrides:
SaveToJsonObject in class StiDataStoreSource
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Overrides:
LoadFromJsonObject in class StiDataStoreSource
Throws:
JSONException