DataSourceParameter class

Package: com.tecit.TFORMer.Repository

Provides access to properties of a DataSourceParameter.

Usage and notes

Overview

A DataSourceParameter controls certain aspects of a DataSource during runtime (e.g. the filename of a DataSourceCsv, the SELECT statement of a DataSourceOdbc).

DataSourceParameters provide an elegant way to implement dynamic DataSources, without modifying the DataSource definition. They can be used to parameterize ODBC DataSources (DataSourceOdbc) and file-based DataSources (DataSourceCsv, DataSourceXml).

A typical scenario is the use of DataSourceParameters in the SQL SELECT statement of an DataSourceOdbc.
By this technique TFORMer can be instructed to fetch only specific records of a table or to change the sorting order via parameters.

DataSourceParameters can also be used in ComputedFields.

Example

Sample for using a data source parameter named parOrder:

Assume we have a Parameter named parOrder and want to use it in an SQL select statement.

SELECT * FROM tblOrders WHERE Order = [GetDSParam("parOrder")] 

Providing a parameter value of 4711 would result in the following statement:

SELECT * FROM tblOrders WHERE Order = 4711 

Methods

MemberDescription
dispose()Returns: void

Releases the resources allocated by this instance.

dump(PrintStream)Returns: void

Dumps the current instance into a text stream.

getCaption()Returns: String

Gets the caption of the DataSourceParameter.

getComment()Returns: String

Gets the comment of the DataSourceParameter.

getDefaultValue()Returns: String

Gets the default value of the DataSourceParameter.

getDescription()Returns: String

Gets the description of the DataSourceParameter.

getDisplayOrder()Returns: String

Gets the display order of the DataSourceParameter.

getName()Returns: String

Gets the name of the DataSourceParameter.

getNext()Returns: DataSourceParameter

Gets the next DataSourceParameter defined in the DataSource.

setCaption(String)Returns: void

Sets the caption of the DataSourceParameter.

setComment(String)Returns: void

Gets the comment of the DataSourceParameter.

setDefaultValue(String)Returns: void

Sets the default value of the DataSourceParameter.

setDescription(String)Returns: void

Gets the description of the DataSourceParameter.

setDisplayOrder(String)Returns: void

Sets the display order of the DataSourceParameter.

setName(String)Returns: void

Sets the name of the DataSourceParameter.

toString()Returns: String

Returns a string representation of the instance.

Search documentation

Search in
More scopes
Additional scopes

All contents