Class: TSQLParameter

Declaration: SQLDataAccess.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MReferenceCounted

Inherited By:

None.

Purpose:

This class mediates the translation of SQL constants into the native form supported by a particular database protocol or datastore. Clients use the TSQLParameterHandle class, which acts as a memory management surrogate for TSQLParameter. Providers must take care of translating Taligent data types to text constants insertable in an SQL statement.

Instantiation:

Abstract class; do not allocate.

Deriving Classes:

To support new types, clients can extend the TSQLParameter class by deriving from it.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TSQLParameter::~TSQLParameter

virtual ~ TSQLParameter ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLParameter::operator=

  1. virtual TSQLParameter & operator =(const int)
  2. virtual TSQLParameter & operator =(const short)
  3. virtual TSQLParameter & operator =(const long)
  4. virtual TSQLParameter & operator =(const double)
  5. virtual TSQLParameter & operator =(const TText &)
  6. virtual TSQLParameter & operator =(const TTime &)
  7. virtual TSQLParameter & operator =(const TSQLTime &)
  8. virtual TSQLParameter & operator =(const TSQLDate &)
  9. virtual TSQLParameter & operator =(const TSQLTimestamp &)
  10. TSQLParameter & operator =(const TSQLParameter & right)

Interface Category:

API.

Purpose:

  1. Assignment operator.
  2. Assignment operator.
  3. Assignment operator.
  4. Assignment operator.
  5. Assignment operator.
  6. Assignment operator.
  7. Assignment operator.
  8. Assignment operator.
  9. Assignment operator.
  10. Assignment operator.

Calling Context:

  1. Called when an object is assigned to another compatible object.
  2. Called when an object is assigned to another compatible object.
  3. Called when an object is assigned to another compatible object.
  4. Called when an object is assigned to another compatible object.
  5. Called when an object is assigned to another compatible object.
  6. Called when an object is assigned to another compatible object.
  7. Called when an object is assigned to another compatible object.
  8. Called when an object is assigned to another compatible object.
  9. Called when an object is assigned to another compatible object.
  10. Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLParameter::MakeNull

virtual void MakeNull ()

Interface Category:

API.

Purpose:

Assigns the Null value to the associated parameter.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLParameter::TSQLParameter

  1. TSQLParameter ()
  2. TSQLParameter (const TSQLParameter & source)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. SQL parameters are normally created and returned by member functions of concrete classes derived from TSQLCommand. Clients deal with instances of TSQLParameterHandle.

Calling Context:

  1. Called by the stream-in operators and any other function that needs to construct an uninitialized object.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLParameter::Unreachable

virtual void Unreachable ()

Interface Category:

API.

Purpose:

For framework internal debugging.

Calling Context:

This is an internal member function. It should not be called by the clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.