Packagestimulsoft.report.dictionary.dataSources
Classpublic class StiDataSource
InheritanceStiDataSource Inheritance StiObject Inheritance Object
Implements IStiName, IStiInherited, IStiEnumerator, IStiRef, IStiSerializable, IStiClonable
Subclasses StiDataStoreSource



Public Properties
 PropertyDefined By
  alias : String
Gets or sets of the Data Source alias.
StiDataSource
  columns : StiDataColumnsCollection
Gets or sets the column collection.
StiDataSource
  connectionOrder : int
Gets or sets value which indicates in which order that datasource will be connect to the data.
StiDataSource
  connectOnStart : Boolean
Gets or sets value which indicates that datasource not connect to the data automatically.
StiDataSource
  count : int
[read-only] Gets count of elements.
StiDataSource
  dataTable : DataTable
Gets DataTable.
StiDataSource
  detailRows : Array = null
StiDataSource
  dictionary : StiDictionary
Gets or sets the dictionary in which this Data Source is located.
StiDataSource
  inherited : Boolean
StiDataSource
  initForSubreport : Boolean = false
StiDataSource
  isBof : Boolean
Gets value indicates that this position specifies to the beginning of data.
StiDataSource
  isConnected : Boolean
[read-only] Gets value indicates which Data Source is connected with data.
StiDataSource
  isEmpty : Boolean
[read-only] Gets value indicates that no data.
StiDataSource
  isEof : Boolean
Gets value indicates that this position specifies to the data end.
StiDataSource
  isInited : Boolean = false
StiDataSource
  name : String
Gets or sets of the Data Source name.
StiDataSource
  parameters : StiDataParametersCollection
Gets or sets the parameter collection.
StiDataSource
  position : int
Gets the current position.
StiDataSource
  realCount : int
[read-only]
StiDataSource
  ref : int
StiDataSource
  rows : StiRowsCollection
StiDataSource
  rowToLevel : StiHashtable = null
StiDataSource
  states : StiStatesManager
[read-only] Gets the component states manager.
StiDataSource
Protected Properties
 PropertyDefined By
  columnsIndexs : StiHashtable
StiDataSource
  dataAdapterService : StiDataAdapterService = null
StiDataSource
  isBofValue : Boolean = false
StiDataSource
  isEofValue : Boolean = false
StiDataSource
  positionValue : int = 0
StiDataSource
Public Methods
 MethodDefined By
  
StiDataSource(name:String = DataSource, alias:String = DataSource)
StiDataSource
  
StiDataSource
  
Clear all earlier saved object states.
StiDataSource
  
clone(... args):Object
[override]
StiDataSource
  
connect(datas:StiDataCollection = null, loadData:Boolean = true):void
Connect Data Source to data.
StiDataSource
  
disconnect():void
StiDataSource
  
equals(object:Object):Boolean
[override]
StiDataSource
  
first():void
Sets a position at the beginning.
StiDataSource
  
Returns the name to categories of the Data Source.
StiDataSource
  
getChildDataSource(relationName:String):StiDataSource
Returns the child Data Source by the relation name.
StiDataSource
  
Returns a collection of Child relations.
StiDataSource
  
getColumnIndex(columnName:String):int
StiDataSource
  
getConditions(dataBand:StiDataBand):Array
StiDataSource
  
getData(columnName:String, index:int = -1):Object
StiDataSource
  
StiDataSource
  
StiDataSource
  
getLabel():String
StiDataSource
  
getLevel():int
StiDataSource
  
getParentData(relationName:String):StiDataRow
Returns the parent row with data for the indicated relation.
StiDataSource
  
getParentDataSource(relationName:String):StiDataSource
Returns the parent Data Source by the relation name.
StiDataSource
  
Returns the colection of Parent relations.
StiDataSource
 Inherited
Get a short object type name (without library path).
StiObject
 Inherited
getType():Class
StiObject
 Inherited
getTypeName():String
StiObject
 Inherited
isSimple(object:*):Boolean
[static]
StiObject
  
last():void
Sets a position on the last element.
StiDataSource
  
[override]
StiDataSource
  
next():void
Sets a position on the next element.
StiDataSource
  
prior():void
Sets a position on the previous element.
StiDataSource
  
resetData():void
StiDataSource
  
StiDataSource
  
restoreState(stateName:String):void
Restores the earlier saved object state.
StiDataSource
  
saveState(stateName:String):void
Saves the current state of an object.
StiDataSource
  
setData(dataBand:StiDataBand, relationName:String, filterMethod:Object, sortColumns:Array, reinit:Boolean, component:StiComponent):void
StiDataSource
  
setDetails(relationName:String):void
Set the details data for Data Source.
StiDataSource
  
setFilter(filterMethod:Object):void
Apply filter to data.
StiDataSource
  
setSort(conditions:Array, sortColumns:Array, component:StiComponent, databand:StiDataBand, groupHeaders:StiComponentsCollection):void
Sorts data.
StiDataSource
  
StiDataSource
  
toString():String
StiDataSource
Protected Methods
 MethodDefined By
  
StiDataSource
  
StiDataSource
Property Detail
aliasproperty
alias:String

Gets or sets of the Data Source alias.


Implementation
    public function get alias():String
    public function set alias(value:String):void
columnsproperty 
columns:StiDataColumnsCollection

Gets or sets the column collection.


Implementation
    public function get columns():StiDataColumnsCollection
    public function set columns(value:StiDataColumnsCollection):void
columnsIndexsproperty 
protected var columnsIndexs:StiHashtable

connectionOrderproperty 
connectionOrder:int

Gets or sets value which indicates in which order that datasource will be connect to the data.


Implementation
    public function get connectionOrder():int
    public function set connectionOrder(value:int):void
connectOnStartproperty 
connectOnStart:Boolean

Gets or sets value which indicates that datasource not connect to the data automatically.


Implementation
    public function get connectOnStart():Boolean
    public function set connectOnStart(value:Boolean):void
countproperty 
count:int  [read-only]

Gets count of elements.


Implementation
    public function get count():int
dataAdapterServiceproperty 
protected var dataAdapterService:StiDataAdapterService = null

dataTableproperty 
dataTable:DataTable

Gets DataTable.


Implementation
    public function get dataTable():DataTable
    public function set dataTable(value:DataTable):void
detailRowsproperty 
public var detailRows:Array = null

dictionaryproperty 
dictionary:StiDictionary

Gets or sets the dictionary in which this Data Source is located.


Implementation
    public function get dictionary():StiDictionary
    public function set dictionary(value:StiDictionary):void
inheritedproperty 
inherited:Boolean


Implementation
    public function get inherited():Boolean
    public function set inherited(value:Boolean):void
initForSubreportproperty 
public var initForSubreport:Boolean = false

isBofproperty 
isBof:Boolean

Gets value indicates that this position specifies to the beginning of data.


Implementation
    public function get isBof():Boolean
    public function set isBof(value:Boolean):void
isBofValueproperty 
protected var isBofValue:Boolean = false

isConnectedproperty 
isConnected:Boolean  [read-only]

Gets value indicates which Data Source is connected with data.


Implementation
    public function get isConnected():Boolean
isEmptyproperty 
isEmpty:Boolean  [read-only]

Gets value indicates that no data.


Implementation
    public function get isEmpty():Boolean
isEofproperty 
isEof:Boolean

Gets value indicates that this position specifies to the data end.


Implementation
    public function get isEof():Boolean
    public function set isEof(value:Boolean):void
isEofValueproperty 
protected var isEofValue:Boolean = false

isInitedproperty 
public var isInited:Boolean = false

nameproperty 
name:String

Gets or sets of the Data Source name.


Implementation
    public function get name():String
    public function set name(value:String):void
parametersproperty 
parameters:StiDataParametersCollection

Gets or sets the parameter collection.


Implementation
    public function get parameters():StiDataParametersCollection
    public function set parameters(value:StiDataParametersCollection):void
positionproperty 
position:int

Gets the current position.


Implementation
    public function get position():int
    public function set position(value:int):void
positionValueproperty 
protected var positionValue:int = 0

realCountproperty 
realCount:int  [read-only]


Implementation
    public function get realCount():int
refproperty 
ref:int


Implementation
    public function get ref():int
    public function set ref(value:int):void
rowsproperty 
rows:StiRowsCollection


Implementation
    public function get rows():StiRowsCollection
    public function set rows(value:StiRowsCollection):void
rowToLevelproperty 
public var rowToLevel:StiHashtable = null

statesproperty 
states:StiStatesManager  [read-only]

Gets the component states manager.


Implementation
    public function get states():StiStatesManager
Constructor Detail
StiDataSource()Constructor
public function StiDataSource(name:String = DataSource, alias:String = DataSource)



Parameters
name:String (default = DataSource)
 
alias:String (default = DataSource)
Method Detail
checkColumnsIndexs()method
public function checkColumnsIndexs():void

clearAllStates()method 
public function clearAllStates():void

Clear all earlier saved object states.

clone()method 
override public function clone(... args):Object

Parameters

... args

Returns
Object
connect()method 
public function connect(datas:StiDataCollection = null, loadData:Boolean = true):void

Connect Data Source to data. It is necessary to call the parent of the method(super.connect).

Parameters

datas:StiDataCollection (default = null)
 
loadData:Boolean (default = true)

disconnect()method 
public function disconnect():void

equals()method 
override public function equals(object:Object):Boolean

Parameters

object:Object

Returns
Boolean
first()method 
public function first():void

Sets a position at the beginning.

getCategoryName()method 
public function getCategoryName():String

Returns the name to categories of the Data Source.

Returns
String
getChildDataSource()method 
public function getChildDataSource(relationName:String):StiDataSource

Returns the child Data Source by the relation name.

Parameters

relationName:String

Returns
StiDataSource
getChildRelations()method 
public function getChildRelations():StiDataRelationsCollection

Returns a collection of Child relations.

Returns
StiDataRelationsCollection
getColumnIndex()method 
public function getColumnIndex(columnName:String):int

Parameters

columnName:String

Returns
int
getConditions()method 
public function getConditions(dataBand:StiDataBand):Array

Parameters

dataBand:StiDataBand

Returns
Array
getData()method 
public function getData(columnName:String, index:int = -1):Object

Parameters

columnName:String
 
index:int (default = -1)

Returns
Object
getDataAdapter()method 
public function getDataAdapter():StiDataAdapterService

Returns
StiDataAdapterService
getDataTable()method 
public function getDataTable(table:DataTable = null):DataTable

Parameters

table:DataTable (default = null)

Returns
DataTable
getLabel()method 
public function getLabel():String

Returns
String
getLevel()method 
public function getLevel():int

Returns
int
getParentData()method 
public function getParentData(relationName:String):StiDataRow

Returns the parent row with data for the indicated relation.

Parameters

relationName:String

Returns
StiDataRow
getParentDataSource()method 
public function getParentDataSource(relationName:String):StiDataSource

Returns the parent Data Source by the relation name.

Parameters

relationName:String

Returns
StiDataSource
getParentRelations()method 
public function getParentRelations():StiDataRelationsCollection

Returns the colection of Parent relations.

Returns
StiDataRelationsCollection
invokeConnecting()method 
protected function invokeConnecting():void

invokeDisconnecting()method 
protected function invokeDisconnecting():void

last()method 
public function last():void

Sets a position on the last element.

memberwiseClone()method 
override public function memberwiseClone():Object

Returns
Object
next()method 
public function next():void

Sets a position on the next element.

prior()method 
public function prior():void

Sets a position on the previous element.

resetData()method 
public function resetData():void

resetDetailsRows()method 
public function resetDetailsRows():void

restoreState()method 
public function restoreState(stateName:String):void

Restores the earlier saved object state.

Parameters

stateName:String

saveState()method 
public function saveState(stateName:String):void

Saves the current state of an object.

Parameters

stateName:String

setData()method 
public function setData(dataBand:StiDataBand, relationName:String, filterMethod:Object, sortColumns:Array, reinit:Boolean, component:StiComponent):void

Parameters

dataBand:StiDataBand
 
relationName:String
 
filterMethod:Object
 
sortColumns:Array
 
reinit:Boolean
 
component:StiComponent

setDetails()method 
public function setDetails(relationName:String):void

Set the details data for Data Source.

Parameters

relationName:String

setFilter()method 
public function setFilter(filterMethod:Object):void

Apply filter to data.

Parameters

filterMethod:Object

setSort()method 
public function setSort(conditions:Array, sortColumns:Array, component:StiComponent, databand:StiDataBand, groupHeaders:StiComponentsCollection):void

Sorts data. If data source is not able to sort data then this command is ignored.

Parameters

conditions:Array
 
sortColumns:Array
 
component:StiComponent
 
databand:StiDataBand
 
groupHeaders:StiComponentsCollection

synchronizeColumns()method 
public function synchronizeColumns():void

toString()method 
public function toString():String

Returns
String