Class StiSqlSource
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.dictionary.dataSources.StiDataSource
com.stimulsoft.report.dictionary.dataSources.StiDataStoreSource
com.stimulsoft.report.dictionary.dataSources.StiDataTableSource
com.stimulsoft.report.dictionary.dataSources.StiSqlSource
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,IStiEnumerator,ICloneable,IStiAlias,IStiInherited,IStiStateSaveRestore,Cloneable
- Direct Known Subclasses:
StiCassandraSource,StiDuckDbSource,StiJDBCSource,StiMsSqlSource,StiMySqlSource,StiOdbcSource,StiOleDbSource,StiOracleSource,StiPostgreSQLSource
Describes the Data Source realizing access to Sql.
-
Field Summary
Fields inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataSource
columns, columnsIndexs, connectionOrder, connectOnStart, detailRows, initForSubreport, RowToLevelFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object of the type StiSqlSource.StiSqlSource(String nameInSource, String name) Creates a new object of the type StiSqlSource.StiSqlSource(String nameInSource, String name, String alias) Creates a new object of the type StiSqlSource.StiSqlSource(String nameInSource, String name, String alias, String sqlCommand) Creates a new object of the type StiSqlSource.StiSqlSource(String nameInSource, String name, String alias, String sqlCommand, boolean connectOnStart) StiSqlSource(String nameInSource, String name, String alias, String sqlCommand, boolean connectOnStart, boolean reconnectOnEachRow) StiSqlSource(String nameInSource, String name, String alias, String sqlCommand, boolean connectOnStart, boolean reconnectOnEachRow, int commandTimeout) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanGets or sets value which indicates that datasource can contain script expressions or no.final intbooleanGets or sets value which indicates that datasource not connect to the data automatically.getNetType(int dbType) Gets or sets the parameter collection.getQuery()final booleanGets or sets value which indicates that datasource reconnect on each master row in master-detail reports.final StringGets or sets Transact-SQL statement to execute at the Data Source.final StiSqlSourceTypegetType()Gets or sets value which indicates type of sql datasource.voidLoadFromJsonObject(JSONObject jObject) final voidsetAllowExpressions(boolean value) final voidsetCommandTimeout(int value) voidsetConnectOnStart(boolean value) voidfinal voidsetReconnectOnEachRow(boolean value) final voidsetSqlCommand(String value) final voidsetType(StiSqlSourceType value) voidMethods inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataTableSource
GetCategoryName, getDatabaseClassMethods inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataStoreSource
connect, connect, createNewTable, disconnect, getDataName, getNameInSource, getNameTableInSource, setDataName, setNameInSourceMethods inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataSource
CheckColumnsIndexs, clearAllStates, ClearAllStates, clone, fetchParentRelations, First, get, get, getAlias, GetChildDataSource, GetChildRelations, GetColumnIndex, getColumns, GetConditions, getCount, getData, GetData, GetData, getDatabase, GetDataRow, getDataTable, getDictionary, getInherited, getIsBof, getIsConnected, getIsEmpty, getIsEof, getItem, getKey, GetLevel, getName, GetParentData, GetParentDataSource, GetParentRelations, getPosition, getPositionValue, getRealCount, getRelations, getRows, getStates, getVariableParameterByName, getVariableParameters, InvokeConnecting, InvokeDisconnecting, isEmpty, Last, Next, prepareData, Prior, ResetData, ResetDetailsRows, restoreState, RestoreState, saveState, setAlias, setColumns, setCorrectName, SetData, setDataTable, SetDetails, setDictionary, SetFilter, setInherited, setIsBof, setIsEof, setKey, setName, setPosition, setPositionValue, setRows, SetSort, setVariableParameters, size, toStringMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReferenceMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
getReference, setReference
-
Constructor Details
-
StiSqlSource
public StiSqlSource()Creates a new object of the type StiSqlSource. -
StiSqlSource
Creates a new object of the type StiSqlSource.- Parameters:
nameInSource- Name of Sql Connection in the DataStore.name- Data Source name.
-
StiSqlSource
Creates a new object of the type StiSqlSource.- Parameters:
nameInSource- Name of Sql Connection in the DataStore.name- Data Source name.alias- Data Source alias.
-
StiSqlSource
Creates a new object of the type StiSqlSource.- Parameters:
nameInSource- Name of SqlConnection in the DataStore.name- Data Source name.alias- Data Source alias.sqlCommand- SQL statement to execute at the Data Source.
-
StiSqlSource
-
StiSqlSource
-
StiSqlSource
-
-
Method Details
-
getConnectOnStart
public boolean getConnectOnStart()Gets or sets value which indicates that datasource not connect to the data automatically.- Overrides:
getConnectOnStartin classStiDataSource
-
setConnectOnStart
public void setConnectOnStart(boolean value) - Overrides:
setConnectOnStartin classStiDataSource
-
getAllowExpressions
public final boolean getAllowExpressions()Gets or sets value which indicates that datasource can contain script expressions or no. -
setAllowExpressions
public final void setAllowExpressions(boolean value) -
getType
Gets or sets value which indicates type of sql datasource. -
setType
-
getCommandTimeout
public final int getCommandTimeout() -
setCommandTimeout
public final void setCommandTimeout(int value) -
getReconnectOnEachRow
public final boolean getReconnectOnEachRow()Gets or sets value which indicates that datasource reconnect on each master row in master-detail reports. -
setReconnectOnEachRow
public final void setReconnectOnEachRow(boolean value) -
getSqlCommand
Gets or sets Transact-SQL statement to execute at the Data Source. -
setSqlCommand
-
getParameters
Description copied from class:StiDataSourceGets or sets the parameter collection.- Overrides:
getParametersin classStiDataSource
-
setParameters
- Overrides:
setParametersin classStiDataSource
-
UpdateParameters
public void UpdateParameters() -
getQuery
- Overrides:
getQueryin classStiDataStoreSource
-
getFinalSqlCommand
-
getNetType
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiDataTableSource- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiDataStoreSource- Throws:
JSONException
-