public class StiSqlSource extends StiDataTableSource
columns, columnsIndexs, connectOnStart, detailRows, initForSubreport, RowToLevelREFERENCE_EMPTY, REFERENCE_REPORT| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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() |
GetCategoryName, getDatabaseClassconnect, connect, createNewTable, disconnect, getDataName, getNameInSource, setDataName, setNameInSourceCheckColumnsIndexs, clearAllStates, ClearAllStates, First, get, getAlias, GetChildDataSource, GetChildRelations, GetColumnIndex, getColumns, GetConditions, getConnectionOrder, 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, setConnectionOrder, setCorrectName, SetData, setDataTable, SetDetails, setDictionary, SetFilter, setInherited, setIsBof, setIsEof, setKey, setName, setPosition, setPositionValue, setRows, SetSort, setVariableParameters, size, toStringcleanReference, getReference, setReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReference, setReferencepublic 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)
public boolean getConnectOnStart()
getConnectOnStart in class StiDataSourcepublic void setConnectOnStart(boolean value)
setConnectOnStart in class StiDataSourcepublic 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()
StiDataSourcegetParameters in class StiDataSourcepublic void setParameters(StiDataParametersCollection value)
setParameters in class StiDataSourcepublic void UpdateParameters()
public java.lang.String getQuery()
getQuery in class StiDataStoreSourcepublic java.lang.String getFinalSqlCommand()
public StiSystemType getNetType(int dbType)
public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject in interface IStiJsonReportObjectSaveToJsonObject in class StiDataTableSourceJSONExceptionpublic void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject in interface IStiJsonReportObjectLoadFromJsonObject in class StiDataStoreSourceJSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.