AESqlTypesLookupTable Class Reference

This is a utility class that manages and retrieves entries in 2D-array lookup tables. More...

List of all members.

Static Public Member Functions

static simba_int16 GetEntry (AELookupTableCode in_tableCode, const SqlTypeMetadata *in_sqlMeta1, const SqlTypeMetadata *in_sqlMeta2)
 Retrieves the entry for the given input SQL types and the lookup table code.
static simba_int16 GetEntry (AELookupTableCode in_tableCode, simba_int16 in_sqlType1, bool in_isUnsigned1, simba_int16 in_sqlType2, bool in_isUnsigned2)
 Retrieves the entry for the given input SQL types and the lookup table code.
static simba_wstring GetStringForLUTCode (AELookupTableCode in_code)
 Retrieves a string representation for the given AELookupTableCode.
static SEOperatorID LUTCodeToOperatorID (AELookupTableCode in_code)
 Translates an AELookupTableCode to a corresponding SEOperatorID.

Detailed Description

This is a utility class that manages and retrieves entries in 2D-array lookup tables.


Member Function Documentation

static simba_int16 GetEntry ( AELookupTableCode  in_tableCode,
const SqlTypeMetadata in_sqlMeta1,
const SqlTypeMetadata in_sqlMeta2 
) [static]

Retrieves the entry for the given input SQL types and the lookup table code.

Parameters:
in_tableCode The value expression operator.
in_sqlMeta1 The SQL metadata of the left operand (for a binary operator). (NOT OWN)
in_sqlMeta2 The SQL metadata of the right operand (for a binary operator). (NOT OWN)
Returns:
The coerced entry of the two types.
Exceptions:
SEInvalidArgumentException when in_tableCode is invalid.
SESqlException if the coercion is invalid.
static simba_int16 GetEntry ( AELookupTableCode  in_tableCode,
simba_int16  in_sqlType1,
bool  in_isUnsigned1,
simba_int16  in_sqlType2,
bool  in_isUnsigned2 
) [static]

Retrieves the entry for the given input SQL types and the lookup table code.

Parameters:
in_tableCode The value expression operator.
in_sqlType1 The SQL data type of the left operand (for a binary operator).
in_isUnsigned1 True if the left type is unsigned.
in_sqlType2 The SQL data type of the right operand (for a binary operator)
in_isUnsigned2 True if the right type is unsigned.
Returns:
The coerced entry of the two types.
Exceptions:
SEInvalidArgumentException when in_tableCode is invalid.
SESqlException if the coercion is invalid.
static simba_wstring GetStringForLUTCode ( AELookupTableCode  in_code  )  [static]

Retrieves a string representation for the given AELookupTableCode.

LUTCodeToString is a helper method that takes an AELookupTableCode and returns a simba_wstring for use to build error messages.

Parameters:
in_code The AELookupTableCode.
Exceptions:
SEInvalidArgumentException when the in_operation is not BINARYADD_*, BINARYMINUS_*, MULTIPLICATION_*, or DIVISION_*
Returns:
the matching simba_wstring.
static SEOperatorID LUTCodeToOperatorID ( AELookupTableCode  in_code  )  [static]

Translates an AELookupTableCode to a corresponding SEOperatorID.

LUTCodeToOperatorID is a helper method that takes an AELookupTableCode and returns a SEOperatorID for use with column metadata derivations.

Parameters:
in_code The AELookupTableCode.
Exceptions:
SEInvalidArgumentException when the in_operation is not BINARYADD_*, BINARYMINUS_*, MULTIPLICATION_*, or DIVISION_*
Returns:
the matching SEOperatorID.

The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:17 2017 for SimbaEngine 10.1.3.1011 by simba