com.stimulsoft.report.dictionary.dataSources
Class StiDataStoreSource

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
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, IStiEnumerator, IStiInherited, IStiStateSaveRestore, java.lang.Cloneable
Direct Known Subclasses:
StiCsvSource, StiDataTableSource, StiUserSource

public abstract class StiDataStoreSource
extends StiDataSource

Describes the base class for access to data in DataStore.


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
StiDataStoreSource()
          Creates a new object of the type StiDataStoreSource.
StiDataStoreSource(java.lang.String nameInSource, java.lang.String name)
          Creates a new object of the type StiDataTableSource.
StiDataStoreSource(java.lang.String nameInSource, java.lang.String name, java.lang.String alias)
          Creates a new object of the type StiDataStoreSource.
 
Method Summary
 void connect()
           
 void connect(java.lang.Boolean fillTable)
           
 DataTable createNewTable()
           
 void disconnect()
           
 java.lang.String GetCategoryName()
          Returns the name to categories of the Data Source.
 java.lang.String getDataName()
          Deprecated. 
 java.lang.String getNameInSource()
          Gets or sets the name of Data Source in source of data.
 java.lang.String getQuery()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setDataName(java.lang.String value)
          Deprecated. 
 void setNameInSource(java.lang.String value)
           
 
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, getDatabaseClass, 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

StiDataStoreSource

public StiDataStoreSource()
Creates a new object of the type StiDataStoreSource.


StiDataStoreSource

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

Parameters:
dataName - Name of data in the DataStore.
name - Data Source name.

StiDataStoreSource

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

Parameters:
dataName - Name of data in the DataStore.
name - Data Source name.
alias - Data Source alias.
Method Detail

GetCategoryName

public java.lang.String GetCategoryName()
Returns the name to categories of the Data Source.

Overrides:
GetCategoryName in class StiDataSource

getNameInSource

public java.lang.String getNameInSource()
Gets or sets the name of Data Source in source of data.


setNameInSource

public void setNameInSource(java.lang.String value)

connect

public void connect()
             throws StiException
Specified by:
connect in class StiDataSource
Throws:
StiException

connect

public void connect(java.lang.Boolean fillTable)
             throws StiException
Specified by:
connect in class StiDataSource
Throws:
StiException

disconnect

public void disconnect()
Overrides:
disconnect in class StiDataSource

getDataName

@Deprecated
public java.lang.String getDataName()
Deprecated. 

Gets or sets the name of Data Source in source of data.


setDataName

@Deprecated
public void setDataName(java.lang.String value)
Deprecated. 


createNewTable

public DataTable createNewTable()

getQuery

public java.lang.String getQuery()

SaveToJsonObject

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

LoadFromJsonObject

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