|
||||||||||
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
com.stimulsoft.report.dictionary.dataSources.StiDataStoreSource
com.stimulsoft.report.dictionary.dataSources.StiDataTableSource
com.stimulsoft.report.dictionary.dataSources.StiSqlSource
public class StiSqlSource
Describes the Data Source realizing access to Sql.
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 | |
---|---|
StiSqlSource()
Creates a new object of the type StiSqlSource. |
|
StiSqlSource(java.lang.String nameInSource,
java.lang.String name)
Creates a new object of the type StiSqlSource. |
|
StiSqlSource(java.lang.String nameInSource,
java.lang.String name,
java.lang.String alias)
Creates a new object of the type StiSqlSource. |
|
StiSqlSource(java.lang.String nameInSource,
java.lang.String name,
java.lang.String alias,
java.lang.String sqlCommand)
Creates a new object of the type StiSqlSource. |
|
StiSqlSource(java.lang.String nameInSource,
java.lang.String name,
java.lang.String alias,
java.lang.String sqlCommand,
boolean connectOnStart)
|
|
StiSqlSource(java.lang.String nameInSource,
java.lang.String name,
java.lang.String alias,
java.lang.String sqlCommand,
boolean connectOnStart,
boolean reconnectOnEachRow)
|
|
StiSqlSource(java.lang.String nameInSource,
java.lang.String name,
java.lang.String alias,
java.lang.String sqlCommand,
boolean connectOnStart,
boolean reconnectOnEachRow,
int commandTimeout)
|
Method Summary | |
---|---|
boolean |
getAllowExpressions()
Gets or sets value which indicates that datasource can contain script expressions or no. |
int |
getCommandTimeout()
|
boolean |
getConnectOnStart()
Gets or sets value which indicates that datasource not connect to the data automatically. |
java.lang.String |
getFinalSqlCommand()
|
StiSystemType |
getNetType(int dbType)
|
StiDataParametersCollection |
getParameters()
Gets or sets the parameter collection. |
java.lang.String |
getQuery()
|
boolean |
getReconnectOnEachRow()
Gets or sets value which indicates that datasource reconnect on each master row in master-detail reports. |
java.lang.String |
getSqlCommand()
Gets or sets Transact-SQL statement to execute at the Data Source. |
StiSqlSourceType |
getType()
Gets or sets value which indicates type of sql datasource. |
void |
LoadFromJsonObject(JSONObject jObject)
|
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode)
|
void |
setAllowExpressions(boolean value)
|
void |
setCommandTimeout(int value)
|
void |
setConnectOnStart(boolean value)
|
void |
setParameters(StiDataParametersCollection value)
|
void |
setReconnectOnEachRow(boolean value)
|
void |
setSqlCommand(java.lang.String value)
|
void |
setType(StiSqlSourceType value)
|
void |
UpdateParameters()
|
Methods inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataTableSource |
---|
GetCategoryName, getDatabaseClass |
Methods inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataStoreSource |
---|
connect, connect, createNewTable, disconnect, getDataName, getNameInSource, setDataName, setNameInSource |
Methods inherited from class com.stimulsoft.report.dictionary.dataSources.StiDataSource |
---|
CheckColumnsIndexs, clearAllStates, ClearAllStates, First, get, getAlias, GetChildDataSource, GetChildRelations, GetColumnIndex, getColumns, GetConditions, getConnectionOrder, getCount, GetData, getData, GetData, GetDataRow, getDataTable, getDictionary, getInherited, getIsBof, getIsConnected, getIsEmpty, getIsEof, getItem, getKey, GetLevel, getName, GetParentData, GetParentDataSource, GetParentRelations, getPosition, getPositionValue, getRealCount, getRelations, getRows, getVariableParameterByName, getVariableParameters, isEmpty, Last, Next, prepareData, Prior, ResetData, ResetDetailsRows, restoreState, RestoreState, saveState, setAlias, setColumns, setConnectionOrder, setCorrectName, SetData, setDataTable, SetDetails, setDictionary, SetFilter, setInherited, setIsBof, setIsEof, setKey, setName, 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 |
---|
public StiSqlSource()
public StiSqlSource(java.lang.String nameInSource, java.lang.String name)
nameInSource
- Name of Sql Connection in the DataStore.name
- Data Source name.public StiSqlSource(java.lang.String nameInSource, java.lang.String name, java.lang.String alias)
nameInSource
- Name of Sql Connection in the DataStore.name
- Data Source name.alias
- Data Source alias.public StiSqlSource(java.lang.String nameInSource, java.lang.String name, java.lang.String alias, java.lang.String sqlCommand)
nameInSource
- Name of SqlConnection in the DataStore.name
- Data Source name.alias
- Data Source alias.sqlCommand
- SQL statement to execute at the Data Source.public StiSqlSource(java.lang.String nameInSource, java.lang.String name, java.lang.String alias, java.lang.String sqlCommand, boolean connectOnStart)
public StiSqlSource(java.lang.String nameInSource, java.lang.String name, java.lang.String alias, java.lang.String sqlCommand, boolean connectOnStart, boolean reconnectOnEachRow)
public StiSqlSource(java.lang.String nameInSource, java.lang.String name, java.lang.String alias, java.lang.String sqlCommand, boolean connectOnStart, boolean reconnectOnEachRow, int commandTimeout)
Method Detail |
---|
public boolean getConnectOnStart()
getConnectOnStart
in class StiDataSource
public void setConnectOnStart(boolean value)
setConnectOnStart
in class StiDataSource
public final boolean getAllowExpressions()
public final void setAllowExpressions(boolean value)
public final StiSqlSourceType getType()
public final void setType(StiSqlSourceType value)
public final int getCommandTimeout()
public final void setCommandTimeout(int value)
public final boolean getReconnectOnEachRow()
public final void setReconnectOnEachRow(boolean value)
public final java.lang.String getSqlCommand()
public final void setSqlCommand(java.lang.String value)
public StiDataParametersCollection getParameters()
StiDataSource
getParameters
in class StiDataSource
public void setParameters(StiDataParametersCollection value)
setParameters
in class StiDataSource
public void UpdateParameters()
public java.lang.String getQuery()
getQuery
in class StiDataStoreSource
public java.lang.String getFinalSqlCommand()
public StiSystemType getNetType(int dbType)
public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject
in interface IStiJsonReportObject
SaveToJsonObject
in class StiDataTableSource
JSONException
public void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject
in interface IStiJsonReportObject
LoadFromJsonObject
in class StiDataStoreSource
JSONException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |