RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DataStoreParameter.DataStoreParameter Constructor ()

Creates a new instance of a DataStoreCommand class.

Pascal
constructor Create;
constructor Create(parameterName: string; type: DbType);
constructor Create(parameterName: string; type: JDSType);
constructor Create(parameterName: string; type: DbType; paramDirection: ParameterDirection; sourceColumn: string; sourceVersion: DataRowVersion);
constructor Create(parameterName: string; type: JDSType; paramDirection: ParameterDirection; sourceColumn: string; sourceVersion: DataRowVersion);
C++
DataStoreParameter();
DataStoreParameter(string parameterName, DbType type);
DataStoreParameter(string parameterName, JDSType type);
DataStoreParameter(string parameterName, DbType type, ParameterDirection paramDirection, string sourceColumn, DataRowVersion sourceVersion);
DataStoreParameter(string parameterName, JDSType type, ParameterDirection paramDirection, string sourceColumn, DataRowVersion sourceVersion);

Creates a new instance of a DataStoreCommand class, which is an implementation of the .NET DbParameter class. 

There are several forms of this constructor:

  • Creates a new instance of a DataStoreCommand class.
  • Creates a new instance of a DataStoreCommand class with a given name and expected data type. The parameter parameterName is the name of this parameter. The parameter type is the type of the parameter.
  • Creates a new instance of a DataStoreCommand class with a given name and expected data type. The parameter parameterName is the name of this parameter. The parameter type is the JDSType of the parameter.
  • Creates a new instance of a DataStoreCommand class with a given name, expected data type, parameter direction, source column name, and source version. The parameter parameterName is the name of this parameter. The parameter type is the type of this parameter. The parameter paramDirection is the direction: Input, Output, InputOutput, ReturnValue. The parameter sourceColumn is the name of the source column that is mapped to a DataSet to get and set the value. The parameter sourceVersion is the version of the value to get from the DataSet.
  • Creates a new instance of a DataStoreCommand class with a given name, expected data type, parameter direction, source column name, and source version. The parameter parameterName is the name of this parameter. The parameter type is the JDSType of this parameter. The parameter paramDirection is the direction: Input, Output, InputOutput, ReturnValue. The parameter sourceColumn is the name of the source column that is mapped to a DataSet to get and set the value. The parameter sourceVersion is specified the version of the value to get from the DataSet.

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!