Packagestimulsoft.report.dictionary.dataSources
Classpublic class StiSqlSource
InheritanceStiSqlSource Inheritance StiDataTableSource Inheritance StiDataStoreSource Inheritance StiDataSource Inheritance StiObject Inheritance Object
Subclasses StiCustomSource, StiDB2Source, StiDotConnectUniversalSource, StiEffiProzSource, StiFirebirdSource, StiInformixSource, StiJdbcSource, StiMongoDBSource, StiMSAccessSource, StiMySqlSource, StiOdbcSource, StiOleDbSource, StiOracleODPSource, StiOracleSource, StiPostgreSQLSource, StiSqlCeSource, StiSQLiteSource, StiSybaseAdsSource, StiSybaseAseSource, StiUndefinedDataSource, StiUniDirectSource, StiVistaDBSource



Public Properties
 PropertyDefined By
 Inheritedalias : String
Gets or sets of the Data Source alias.
StiDataSource
  allowExpressions : Boolean
Gets or sets value which indicates that sql query of the datasource can contain script expressions or no.
StiSqlSource
 Inheritedcolumns : StiDataColumnsCollection
Gets or sets the column collection.
StiDataSource
  commandTimeout : int
Gets or sets a number of seconds to wait while attempting to execute a command, before canceling the attempt and generate an error.
StiSqlSource
 InheritedconnectionOrder : int
Gets or sets value which indicates in which order that datasource will be connect to the data.
StiDataSource
  connectOnStart : Boolean
[override] Gets or sets value which indicates that datasource not connect to the data automatically.
StiSqlSource
 Inheritedcount : int
[read-only] Gets count of elements.
StiDataSource
 InheriteddataName : String
Please instead property DataName use property NameInSource.
StiDataStoreSource
 InheriteddataTable : DataTable
Gets DataTable.
StiDataSource
 InheriteddetailRows : Array = null
StiDataSource
 Inheriteddictionary : StiDictionary
Gets or sets the dictionary in which this Data Source is located.
StiDataSource
 Inheritedinherited : Boolean
StiDataSource
 InheritedinitForSubreport : Boolean = false
StiDataSource
 InheritedisBof : Boolean
Gets value indicates that this position specifies to the beginning of data.
StiDataSource
 InheritedisConnected : Boolean
[read-only] Gets value indicates which Data Source is connected with data.
StiDataSource
 InheritedisEmpty : Boolean
[read-only] Gets value indicates that no data.
StiDataSource
 InheritedisEof : Boolean
Gets value indicates that this position specifies to the data end.
StiDataSource
 InheritedisInited : Boolean = false
StiDataSource
 Inheritedname : String
Gets or sets of the Data Source name.
StiDataSource
 InheritednameInSource : String
Gets or sets the name of Data Source in source of data.
StiDataStoreSource
  parameters : StiDataParametersCollection
[override] Gets or sets the parameter collection of the SQL query.
StiSqlSource
 Inheritedposition : int
Gets the current position.
StiDataSource
 InheritedrealCount : int
[read-only]
StiDataSource
  reconnectOnEachRow : Boolean
Gets or sets value which indicates that datasource reconnect on each master row in master-detail reports.
StiSqlSource
 Inheritedref : int
StiDataSource
 Inheritedrows : StiRowsCollection
StiDataSource
 InheritedrowToLevel : StiHashtable = null
StiDataSource
  sqlCommand : String
Gets or sets a SQL statement to execute at the Data Source.
StiSqlSource
 Inheritedstates : StiStatesManager
[read-only] Gets the component states manager.
StiDataSource
Protected Properties
 PropertyDefined By
 InheritedcolumnsIndexs : StiHashtable
StiDataSource
 InheriteddataAdapterService : StiDataAdapterService = null
StiDataSource
 InheritedisBofValue : Boolean = false
StiDataSource
 InheritedisEofValue : Boolean = false
StiDataSource
 InheritedpositionValue : int = 0
StiDataSource
Public Methods
 MethodDefined By
  
StiSqlSource(nameInSource:String, name:String, alias:String, sqlCommand:String, connectOnStart:Boolean = true, reconnectOnEachRow:Boolean = false, commandTimeout:int = 30)
StiSqlSource
 Inherited
StiDataSource
 Inherited
Clear all earlier saved object states.
StiDataSource
 Inherited
clone(... args):Object
[override]
StiDataSource
 Inherited
connect(datas:StiDataCollection = null, loadData:Boolean = true):void
Connect Data Source to data.
StiDataSource
 Inherited
disconnect():void
StiDataSource
  
equals(object:Object):Boolean
[override]
StiSqlSource
 Inherited
first():void
Sets a position at the beginning.
StiDataSource
 Inherited
[override]
StiDataTableSource
 Inherited
getChildDataSource(relationName:String):StiDataSource
Returns the child Data Source by the relation name.
StiDataSource
 Inherited
Returns a collection of Child relations.
StiDataSource
 Inherited
getColumnIndex(columnName:String):int
StiDataSource
 Inherited
getConditions(dataBand:StiDataBand):Array
StiDataSource
 Inherited
getData(columnName:String, index:int = -1):Object
StiDataSource
 Inherited
StiDataSource
 Inherited
StiDataSource
 Inherited
getLabel():String
StiDataSource
 Inherited
getLevel():int
StiDataSource
 Inherited
getParentData(relationName:String):StiDataRow
Returns the parent row with data for the indicated relation.
StiDataSource
 Inherited
getParentDataSource(relationName:String):StiDataSource
Returns the parent Data Source by the relation name.
StiDataSource
 Inherited
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
 Inherited
last():void
Sets a position on the last element.
StiDataSource
  
[override]
StiSqlSource
 Inherited
next():void
Sets a position on the next element.
StiDataSource
 Inherited
prior():void
Sets a position on the previous element.
StiDataSource
 Inherited
resetData():void
StiDataSource
 Inherited
StiDataSource
 Inherited
restoreState(stateName:String):void
Restores the earlier saved object state.
StiDataSource
 Inherited
saveState(stateName:String):void
Saves the current state of an object.
StiDataSource
 Inherited
setData(dataBand:StiDataBand, relationName:String, filterMethod:Object, sortColumns:Array, reinit:Boolean, component:StiComponent):void
StiDataSource
 Inherited
setDetails(relationName:String):void
Set the details data for Data Source.
StiDataSource
 Inherited
setFilter(filterMethod:Object):void
Apply filter to data.
StiDataSource
 Inherited
setSort(conditions:Array, sortColumns:Array, component:StiComponent, databand:StiDataBand, groupHeaders:StiComponentsCollection):void
Sorts data.
StiDataSource
 Inherited
StiDataSource
 Inherited
toString():String
StiDataSource
Protected Methods
 MethodDefined By
 Inherited
StiDataSource
 Inherited
StiDataSource
Property Detail
allowExpressionsproperty
allowExpressions:Boolean

Gets or sets value which indicates that sql query of the datasource can contain script expressions or no.


Implementation
    public function get allowExpressions():Boolean
    public function set allowExpressions(value:Boolean):void
commandTimeoutproperty 
commandTimeout:int

Gets or sets a number of seconds to wait while attempting to execute a command, before canceling the attempt and generate an error. Default is 30.


Implementation
    public function get commandTimeout():int
    public function set commandTimeout(value:int):void
connectOnStartproperty 
connectOnStart:Boolean[override]

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
parametersproperty 
parameters:StiDataParametersCollection[override]

Gets or sets the parameter collection of the SQL query.


Implementation
    public function get parameters():StiDataParametersCollection
    public function set parameters(value:StiDataParametersCollection):void
reconnectOnEachRowproperty 
reconnectOnEachRow:Boolean

Gets or sets value which indicates that datasource reconnect on each master row in master-detail reports.


Implementation
    public function get reconnectOnEachRow():Boolean
    public function set reconnectOnEachRow(value:Boolean):void
sqlCommandproperty 
sqlCommand:String

Gets or sets a SQL statement to execute at the Data Source.


Implementation
    public function get sqlCommand():String
    public function set sqlCommand(value:String):void
Constructor Detail
StiSqlSource()Constructor
public function StiSqlSource(nameInSource:String, name:String, alias:String, sqlCommand:String, connectOnStart:Boolean = true, reconnectOnEachRow:Boolean = false, commandTimeout:int = 30)



Parameters
nameInSource:String
 
name:String
 
alias:String
 
sqlCommand:String
 
connectOnStart:Boolean (default = true)
 
reconnectOnEachRow:Boolean (default = false)
 
commandTimeout:int (default = 30)
Method Detail
equals()method
override public function equals(object:Object):Boolean

Parameters

object:Object

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

Returns
Object