Class: TSQLHint

Declaration: SQLDataAccess.h

Taxonomy Categories:

Member Functions:


Interface Category:

API. However, this class will be made as an abstract class after Release 1.0.

Inherits From:

None.

Inherited By:

TSQLStandardHint

Purpose:

Instances of TSQLHint are used to define the translation from SQLDAS/Base Client SQL to datastore native SQL. Client applications can also choose to use TSQLHint instances to construct their own native SQL statements for a datastore. Notice that this concrete class will be an abstract class after Release 1.0. Therefore, clients should get the TSQLStandardHint object from an established database connection to obtain the information needed.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TSQLHint::TSQLHint

  1. TSQLHint ()
  2. TSQLHint (const TSQLHint &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

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: TSQLHint::~TSQLHint

virtual ~ TSQLHint ()

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

TSQLHint & operator =(const TSQLHint &)

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: TSQLHint::GetServerNameCase

virtual ECase GetServerNameCase () const

Interface Category:

API.

Purpose:

Returns the server name case for system entity names.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The server name case for system entity names.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetBooleanHint

virtual bool GetBooleanHint (EBooleanHint) const

Interface Category:

API.

Purpose:

Returns the value of the specified Boolean attribute.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the value of the requested hint is true.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetTextHint

virtual const TText & GetTextHint (ETextHint, TText &) const

Interface Category:

API.

Purpose:

Returns the value of the specified text attribute.

Calling Context:

Call this function directly.

Parameters:

Return Value:

A const reference to the value of the specified text attribute.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetNumericColumnType

virtual const TText & GetNumericColumnType (TText &, TSQLColumnDescriptor :: Length, TSQLColumnDescriptor :: Precision precision =0) const

Interface Category:

API.

Purpose:

Returns the native SQL for the numeric column creation.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The column creation SQL for the specified numeric type.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetTextColumnType

virtual const TText & GetTextColumnType (TText &, TSQLColumnDescriptor :: Length) const

Interface Category:

API.

Purpose:

Returns the native SQL for the text column creation.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The column creation SQL for the specified text type.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetLockSQL

virtual const TText & GetLockSQL (TText & sql, const TSequenceOf < TText > & cols, const TText & table, const TText & keyConstraint) const

Interface Category:

API.

Purpose:

Returns, by value and fill-in reference, the native SQL row-locking select statement for updating the specified columns of the named table in the rows that match the given selection constraint.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns, by value, the native SQL row-locking select statement.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetSQLTimestamp

virtual const TText & GetSQLTimestamp (TText &, const TSQLTimestamp &) const

Interface Category:

API.

Purpose:

Returns, by value and fill-in reference, the native SQL that corresponds to the given time-stamp value.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns, by value, the native SQL statement.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetSQLTime

virtual const TText & GetSQLTime (TText &, const TSQLTime &) const

Interface Category:

API.

Purpose:

Returns, by value and fill-in reference, the native SQL that corresponds to the given time value.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns, by value, the native SQL statement.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetSQLDate

virtual const TText & GetSQLDate (TText &, const TSQLDate &) const

Interface Category:

API.

Purpose:

Returns, by value and fill-in reference, the native SQL string constant that corresponds to the given date value.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns, by value, the native SQL statement.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLHint::GetEmptyHint

static const TSQLHint & GetEmptyHint ()

Interface Category:

API.

Purpose:

Obtains an empty SQL construction hint object.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns an empty construction SQL hint object.

Exceptions:

Throws a kSQLHintInvalid exception if GetSQLDate, GetSQLTime, or GetSQLTimestamp member function is called.

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.