|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.dictionary.dataSources.StiDataSource
public abstract class StiDataSource
Field Summary | |
---|---|
StiDataColumnsCollection |
columns
|
boolean |
connectOnStart
|
java.util.ArrayList<DataRow> |
detailRows
|
boolean |
initForSubreport
|
java.util.Hashtable |
RowToLevel
|
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef |
---|
REFERENCE_EMPTY, REFERENCE_REPORT |
Constructor Summary | |
---|---|
StiDataSource()
|
|
StiDataSource(java.lang.String name,
java.lang.String alias)
Creates a new Data Source. |
Method Summary | |
---|---|
void |
CheckColumnsIndexs()
Internal use only. |
void |
clearAllStates()
Clear all states. |
void |
ClearAllStates()
Clear all earlier saved object states. |
abstract void |
connect()
|
abstract void |
connect(java.lang.Boolean fillTable)
|
void |
disconnect()
|
void |
First()
Sets a position at the beginning. |
java.lang.Object |
get(java.lang.String columnName)
|
java.lang.String |
getAlias()
Gets or sets of the Data Source alias. |
java.lang.String |
GetCategoryName()
Returns the name to categories of the Data Source. |
StiDataSource |
GetChildDataSource(java.lang.String relationName)
Returns the child Data Source by the relation name. |
StiDataRelationsCollection |
GetChildRelations()
Returns a collection of Child relations. |
int |
GetColumnIndex(java.lang.String columnName)
Returns the index of a column in the data source. |
StiDataColumnsCollection |
getColumns()
Gets or sets the column collection. |
java.lang.Object[][][] |
GetConditions(StiDataBand dataBand)
|
int |
getConnectionOrder()
Gets or sets value which indicates in which order that datasource will be connect to the data. |
boolean |
getConnectOnStart()
Gets or sets value which indicates that datasource not connect to the data automatically. |
int |
getCount()
Gets count of elements. |
java.lang.Object |
GetData(java.lang.String columnName)
Returns the value by the column name and the current position in the Data Source. |
java.lang.Object |
getData(java.lang.String columnName,
int rowIndex)
|
java.lang.Object |
GetData(java.lang.String columnName,
int rowIndex)
Returns the value by the column name and index of row in the Data Source. |
abstract java.lang.Class<? extends StiDatabase> |
getDatabaseClass()
|
DataRow |
GetDataRow(int index)
|
DataTable |
getDataTable()
Gets DataTable. |
StiDictionary |
getDictionary()
Gets or sets the dictionary in which this Data Source is located. |
boolean |
getInherited()
|
boolean |
getIsBof()
Gets value indicates that this position specifies to the beginning of data. |
boolean |
getIsConnected()
Gets value indicates which Data Source is connected with data. |
boolean |
getIsEmpty()
Gets value indicates that no data. |
boolean |
getIsEof()
Gets value indicates that this position specifies to the data end. |
java.lang.Object |
getItem(java.lang.String columnName)
Indexer to work with the current row of data. |
java.lang.String |
getKey()
|
int |
GetLevel()
Returns level of data in hierarchical band. |
java.lang.String |
getName()
Gets or sets of the Data Source name. |
StiDataParametersCollection |
getParameters()
Gets or sets the parameter collection. |
StiDataRow |
GetParentData(java.lang.String relationName)
Returns the parent row with data for the indicated relation. |
StiDataSource |
GetParentDataSource(java.lang.String relationName)
Returns the parent Data Source by the relation name. |
StiDataRelationsCollection |
GetParentRelations()
Returns the colection of Parent relations. |
int |
getPosition()
Gets the current position. |
int |
getPositionValue()
|
int |
getRealCount()
|
StiDataRelation |
getRelations(java.lang.String relationName)
|
StiRowsCollection |
getRows()
Gets or sets rows collection. |
StiDataParameter |
getVariableParameterByName(java.lang.String name)
|
java.util.List<StiDataParameter> |
getVariableParameters()
|
boolean |
isEmpty()
|
void |
Last()
Sets a position on the last element. |
void |
LoadFromJsonObject(JSONObject jObject)
|
void |
Next()
Sets a position on the next element. |
void |
prepareData()
|
void |
Prior()
Sets a position on the previous element. |
void |
ResetData()
|
void |
ResetDetailsRows()
|
void |
restoreState(java.lang.String stateName)
Restores the earlier saved object state. |
void |
RestoreState(java.lang.String stateName)
Restores the earlier saved object state. |
void |
saveState(java.lang.String stateName)
Saves the current state of an object. |
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode)
|
void |
setAlias(java.lang.String value)
|
void |
setColumns(StiDataColumnsCollection value)
|
void |
setConnectionOrder(int value)
|
void |
setConnectOnStart(boolean value)
|
void |
setCorrectName(java.lang.String correctName)
|
void |
SetData(StiDataBand dataBand,
java.lang.String relationName,
java.lang.Object filterMethod,
java.util.ArrayList<java.lang.String> sortColumns,
boolean reinit,
StiComponent component)
|
void |
setDataTable(DataTable value)
|
void |
SetDetails(java.lang.String relationName)
Set the details data for Data Source. |
void |
setDictionary(StiDictionary value)
|
void |
SetFilter(java.lang.Object filterMethod)
Apply filter to data. |
void |
setInherited(boolean value)
|
void |
setIsBof(boolean value)
|
void |
setIsEof(boolean value)
|
void |
setKey(java.lang.String key)
|
void |
setName(java.lang.String value)
|
void |
setParameters(StiDataParametersCollection value)
|
void |
setPosition(int value)
|
void |
setPositionValue(int positionValue)
|
void |
setRows(StiRowsCollection value)
|
void |
SetSort(java.lang.Object[][][] conditions,
java.util.ArrayList<java.lang.String> sortColumns,
StiComponent component,
StiDataBand databand,
java.util.ArrayList<StiGroupHeaderBand> groupHeaders)
Sorts data. |
void |
setVariableParameters(java.util.List<StiDataParameter> variableParameters)
|
int |
size()
|
java.lang.String |
toString()
Returns the text view of the Data Source. |
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 |
Field Detail |
---|
public boolean initForSubreport
public java.util.ArrayList<DataRow> detailRows
public java.util.Hashtable RowToLevel
public boolean connectOnStart
public StiDataColumnsCollection columns
Constructor Detail |
---|
public StiDataSource()
public StiDataSource(java.lang.String name, java.lang.String alias)
name
- Data Source name.alias
- Data Source alias.Method Detail |
---|
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- the key to setpublic final boolean getInherited()
getInherited
in interface IStiInherited
public final void setInherited(boolean value)
setInherited
in interface IStiInherited
public abstract java.lang.Class<? extends StiDatabase> getDatabaseClass()
public final java.lang.String getName()
getName
in interface IStiName
public final void setName(java.lang.String value)
setName
in interface IStiName
public void setCorrectName(java.lang.String correctName)
public int getPosition()
getPosition
in interface IStiEnumerator
public void setPosition(int value)
setPosition
in interface IStiEnumerator
public final int getRealCount()
public final int getCount()
getCount
in interface IStiEnumerator
public boolean getIsBof()
getIsBof
in interface IStiEnumerator
public void setIsBof(boolean value)
setIsBof
in interface IStiEnumerator
public boolean getIsEof()
getIsEof
in interface IStiEnumerator
public void setIsEof(boolean value)
setIsEof
in interface IStiEnumerator
public boolean getIsEmpty()
getIsEmpty
in interface IStiEnumerator
public void First()
First
in interface IStiEnumerator
public void Prior()
Prior
in interface IStiEnumerator
public void Next()
Next
in interface IStiEnumerator
public void Last()
Last
in interface IStiEnumerator
public void saveState(java.lang.String stateName)
saveState
in interface IStiStateSaveRestore
stateName
- A name of the state being saved.public void ClearAllStates()
public final void SetData(StiDataBand dataBand, java.lang.String relationName, java.lang.Object filterMethod, java.util.ArrayList<java.lang.String> sortColumns, boolean reinit, StiComponent component)
public final java.lang.Object[][][] GetConditions(StiDataBand dataBand)
public final void SetDetails(java.lang.String relationName)
relationName
- Relation to find Parent of the Data Source.public StiDataRelation getRelations(java.lang.String relationName)
public final void SetFilter(java.lang.Object filterMethod)
filterMethod
- public final void SetSort(java.lang.Object[][][] conditions, java.util.ArrayList<java.lang.String> sortColumns, StiComponent component, StiDataBand databand, java.util.ArrayList<StiGroupHeaderBand> groupHeaders)
columns
- Parameters of sorting. Example: new string[] {"ASC", "Company", "DESC",
"ParentRelation", "DATE"}sortColumns
- Array with group conditions. 0 dimension - data rows, 1 dimension - group
condition, 2 dimension - sort directionpublic final void ResetDetailsRows()
public final void ResetData()
public final DataRow GetDataRow(int index)
public final StiDataRow GetParentData(java.lang.String relationName)
relationName
- Relation name.
public StiDataRelationsCollection GetParentRelations()
public StiDataRelationsCollection GetChildRelations()
public StiDataSource GetParentDataSource(java.lang.String relationName)
relationName
- Relation name.
public StiDataSource GetChildDataSource(java.lang.String relationName)
relationName
- Relation name.
public void prepareData()
public void disconnect()
public final boolean getIsConnected()
public StiDataParametersCollection getParameters()
public void setParameters(StiDataParametersCollection value)
public java.lang.Object getItem(java.lang.String columnName)
public final java.lang.Object GetData(java.lang.String columnName)
columnName
- Column name.
public final java.lang.Object GetData(java.lang.String columnName, int rowIndex)
columnName
- Column name.rowIndex
- Index of row in the Data Source.
public final int GetColumnIndex(java.lang.String columnName)
columnName
- Column name.
public final StiRowsCollection getRows()
public final void setRows(StiRowsCollection value)
public final void CheckColumnsIndexs()
public java.lang.String toString()
toString
in class java.lang.Object
public final int GetLevel()
public java.lang.String GetCategoryName()
public boolean getConnectOnStart()
public void setConnectOnStart(boolean value)
public int getConnectionOrder()
public void setConnectionOrder(int value)
public final DataTable getDataTable()
public abstract void connect() throws StiException
StiException
public abstract void connect(java.lang.Boolean fillTable) throws StiException
StiException
public final void setDataTable(DataTable value)
public final StiDictionary getDictionary()
public final void setDictionary(StiDictionary value)
public final java.lang.String getAlias()
public final void setAlias(java.lang.String value)
public StiDataColumnsCollection getColumns()
public void setColumns(StiDataColumnsCollection value)
public java.lang.Object getData(java.lang.String columnName, int rowIndex)
public void restoreState(java.lang.String stateName)
IStiStateSaveRestore
restoreState
in interface IStiStateSaveRestore
stateName
- A name of the state being restored.public void RestoreState(java.lang.String stateName)
stateName
- A name of the state being restored.public void clearAllStates()
IStiStateSaveRestore
clearAllStates
in interface IStiStateSaveRestore
public boolean isEmpty()
public java.lang.Object get(java.lang.String columnName)
public void setPositionValue(int positionValue)
public int getPositionValue()
public int size()
public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject
in interface IStiJsonReportObject
JSONException
public void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject
in interface IStiJsonReportObject
JSONException
public java.util.List<StiDataParameter> getVariableParameters()
public void setVariableParameters(java.util.List<StiDataParameter> variableParameters)
variableParameters
- the variableParameters to setpublic StiDataParameter getVariableParameterByName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |