Instances of the class IldSQLType represent the native data types of a database.
More...
#include <ildblink/ildtype.h>
Public Member Functions | |
| IlBoolean | getAutoUniqueValue () const |
| Indicates if value is autoincremented. More... | |
| IlBoolean | getCaseSensitive () const |
| Indicates if values are case-sensitive. More... | |
| const char * | getLocalName () const |
| Gets the name of the type. More... | |
| const char * | getName () const |
| Gets the name of the type. More... | |
| short | getNullable () const |
| Indicates if the values can be null. More... | |
| const char * | getParams () const |
| Gets the possible parameters. More... | |
| const char * | getPrefix () const |
| Gets the prefix to use for a litteral value in a statement. More... | |
| short | getSearchable () const |
| Indicates if values are searchable. More... | |
| IlUInt | getSize () const |
| Gets the size of a value. More... | |
| const char * | getSuffix () const |
| Gets the suffix to use for a litteral value in a statement. More... | |
| short | getType () const |
| Returns the CLI type code of this type. More... | |
| short | getUnsignedAttribute () const |
| Indicates if the values are unsigned. | |
Instances of the class IldSQLType represent the native data types of a database.
Library: dbkernel
The functional interface of this class is made up only of accessors to the characteristics of a column data type.
IldDbms. | IlBoolean IldSQLType::getAutoUniqueValue | ( | ) | const |
Indicates if value is autoincremented.
IlTrue if the values are auto-incremented and IlFalse otherwise. | IlBoolean IldSQLType::getCaseSensitive | ( | ) | const |
Indicates if values are case-sensitive.
IlTrue if values are case-sensitive. | const char* IldSQLType::getLocalName | ( | ) | const |
Gets the name of the type.
| const char* IldSQLType::getName | ( | ) | const |
Gets the name of the type.
| short IldSQLType::getNullable | ( | ) | const |
Indicates if the values can be null.
1 if values can be null, 0 otherwise. | const char* IldSQLType::getParams | ( | ) | const |
Gets the possible parameters.
For example, it returns the string "max length" for the varchar type.
| const char* IldSQLType::getPrefix | ( | ) | const |
Gets the prefix to use for a litteral value in a statement.
Your application must not deallocate this string because Rogue Wave DBLink takes care of destroying it with the current object. For example, the function returns the string "'" for char or varchar data types.
| short IldSQLType::getSearchable | ( | ) | const |
Indicates if values are searchable.
If searchable, the data type can be used when the request contains a where clause.
The returned value ranges between 0 and 3, depending on the following conditions :
like predicate, the returned value is 1. match predicate, the returned value is 2. 3. 0. | IlUInt IldSQLType::getSize | ( | ) | const |
Gets the size of a value.
For types with a fixed size, the value is the actual size of the data. For types with a variable size, it is the maximum that can be given at table definition time.
| const char* IldSQLType::getSuffix | ( | ) | const |
Gets the suffix to use for a litteral value in a statement.
Your application must not deallocate this string because Rogue Wave DBLink takes care of destroying it with the current object. For example, the function returns the string "'" for char or varchar data types.
| short IldSQLType::getType | ( | ) | const |
Returns the CLI type code of this type.
The returned value is one of the following:
IldSQLCursor IldSQLBFile IldSQLMoney IldSQLByte IldSQLBigint IldSQLVarBin IldSQLBin IldSQLAllTypes IldSQLChar IldSQLNumeric IldSQLDecimal IldSQLInteger IldSQLSmallint IldSQLFloat IldSQLReal IldSQLDouble IldSQLDateTime IldSQLInterval IldSQLVarchar IldSQLBit IldSQLBitVarying IldSQLNamedType IldSQLRef IldSQLLongBin IldSQLBLOB IldSQLText IldSQLCLOB IldSQLDate IldSQLTime IldSQLTimestamp The special value IldSQLAllTypes cannot be returned. It can be used only as an input argument of the function IldDbms::getTypeInfo.
ildconst.h.