Class: TSQLDBProtocol

Declaration: SQLDataAccess.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TSQLProduct

Inherited By:

TSQLStandardDBProtocolODBC TSQLStandardDBProtocolOpenClientDBLib TSQLStandardDBProtocolSQLNet

Purpose:

TSQLDBProtocol is a concrete class that describes a database access protocol, such as ODBC or OpenClient. A database protocol specification is required when instantiating a database connection object.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Providers need to derive a new class for every new protocol that they want to support. Although this is a concrete class, SQLDAS clients typically make use of one of its derived classes to specify a particular protocol.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TSQLDBProtocol::TSQLDBProtocol

  1. TSQLDBProtocol ()
  2. TSQLDBProtocol (const TText & vendor, const TText & identifier, const TText & version, const TText & name, const TText & platform =TStandardText :: GetEmptyText ())
  3. TSQLDBProtocol (const TSQLDBProtocol & source)

Interface Category:

API.

Purpose:

  1. Default constructor. It is not intended for clients, but for providers of connections and so forth.
  2. Instantiates derived classes.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and any other function that needs to construct an uninitialized object.
  2. Call this function directly.
  3. 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: TSQLDBProtocol::~TSQLDBProtocol

virtual ~ TSQLDBProtocol ()

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: TSQLDBProtocol::operator=

TSQLDBProtocol & operator =(const TSQLDBProtocol & right)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLDBProtocol::CanAccess

virtual bool CanAccess (const TSQLDataStore &) const

Interface Category:

API.

Purpose:

Determines if the database access protocol can access the given datastore. Based on the result of this call, clients can limit the complexity of choices presented to the end user.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the database access protocol can access the given datastore.

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.