Public Types |
|
| enum | TParamMode { EParamIn = 0x1, EParamOut = 0x2, EParamInOut = 0x3 } |
| Parameter modes. These values are used to
represent input, output and input/output parameters. More... |
|
| enum | TTypes { ECharacter = 1, EChar = 1, ENumeric = 2, EDecimal = 3, EInteger = 4, ESmallint = 5, EFloat = 6, EReal = 7, EDouble = 8, ECharacterVarying = 12, EVarchar = 12, EBoolean = 16, EBigint = 25, EBinaryLargeObject = 30, EBlob = 30, ECharacterLargeObject = 40, EClob = 40, EDate = 91, ETime = 92, ETimestamp = 93, EIntervalYear = 101, EIntervalMonth = 102, EIntervalDay = 103, EIntervalHour = 104, EIntervalMinute = 105, EIntervalSecond = 106, EIntervalYearToMonth = 107, EIntervalDayToHour = 108, EIntervalDayToMinute = 109, EIntervalDayToSecond = 110, EIntervalHourToMinute = 111, EIntervalHourToSecond = 112, EIntervalMinuteToSecond = 113, EMimerNationalCharacter = -8, EMimerNchar = -8, EMimerNationalCharacterVarying = -9, EMimerNvarchar = -9, EMimerNationalCharacterLargeObject = -10, EMimerNclob = -10 } |
| SQL data type codes. These values may be
returned by methods of this class to identify SQL data types.
More... |
|
Public Member Functions |
|
| IMPORT_C TInt | GetColumnCount () const |
| Returns the number of columns in a result
set. |
|
| IMPORT_C TInt | GetColumnDisplaySize (TInt aColNo) |
| Returns the maximum display size of a
column. |
|
| IMPORT_C TDesC * | GetColumnNameLC (TInt aColNo) |
| Returns the name of the column. |
|
| IMPORT_C TInt | GetColumnPrecision (TInt aColNo) |
| Returns the precision of a numeric column.
|
|
| IMPORT_C TInt | GetColumnScale (TInt aColNo) |
| Returns the number of decimals of a column.
|
|
| IMPORT_C enum TTypes | GetColumnType (TInt aColNo) const |
| Returns the SQL type of the specified
column. |
|
| IMPORT_C TBufC< 50 > | GetColumnTypeName (TInt aColNo) |
| Returns the SQL type name of the specified
column. |
|
| IMPORT_C TInt | GetParameterCount () const |
| Returns the number of parameters of a
statement. |
|
| IMPORT_C TInt | GetParameterDisplaySize (TInt aParNo) |
| Returns the maximum display size of a
parameter. |
|
| IMPORT_C enum TParamMode | GetParameterMode (TInt aParNo) |
| Returns the number of parameters of a
statement. |
|
| IMPORT_C TInt | GetParameterPrecision (TInt aParNo) |
| Returns the precision of a numeric
parameter. |
|
| IMPORT_C TInt | GetParameterScale (TInt aParNo) |
| Returns the number of decimals of a
parameter. |
|
| IMPORT_C enum TTypes | GetParameterType (TInt aParNo) const |
| Returns the SQL type of the specified
parameter. |
|
| IMPORT_C TBufC< 50 > | GetParameterTypeName (TInt aParNo) |
| Returns the SQL type name of the specified
parameter. |
|
| IMPORT_C TBool | IsColumnNullable (TInt aColNo) |
| Determines whether column values may be NULL
or not. |
|
| IMPORT_C TBool | IsColumnReadOnly (TInt aColNo) |
| Determines whether column may be updated or
not. |
|
| IMPORT_C TInt | IsParameterNullable (TInt aParNo) |
| Determines whether parameter values may be
NULL or not. |
|
Friends |
|
| class | RMimerCommand |
| class | RMimerParameterData |
| class | RMimerResultSet |
The metadata object may be obtained either after having specifically compiled an SQL statement contained in an RMimerCommand object, or after a result set has been created.
RMimerCommand::GetMetaDataL() about obtaining metadata about a compiled statement.
RMimerResultSet::GetMetaDataL() about obtaining metadata about an open result set.
|
|
Parameter modes. These values are used to represent input, output and input/output parameters. The enumeration is designed so that: EParamInOut == (EParamIn | EParamOut) |
|
|
|
Returns the number of columns in a result set.
|
|
|
Returns the maximum display size of a column. The value returned by this function is the maximum size, in characters, of the character string representation of the specified column. One can also formulate this as this value being the minimum number of characters required to hold all possible values of this column. For example, a CHARACTER(255) column has the display size 255. An INTEGER(1) column has the display size 2 (sign plus one digit, like '-1'). A TIMESTAMP(9) column has the display size 29 (like '2005-01-24 12:59:32.123456789').
|
|
|
Returns the name of the column. The name of the column is the label, if such is specified. If a label is not specified, the returned name is the name of the underlying column. If the result set column is an expression, thus not derived directly from an underlying column, the column has no name and an empty string is returned. For example: select COL as KOL from TAB , the column name is 'KOL' select COL from TAB , the column name is 'COL' select COL+COL2 from tab , the column name is ''
|
|
|
Returns the precision of a numeric column. If the specified column represents a numeric value, this method returns the maximum number of digits, including decimal digits, that may be represented by the column. If the column is a non-numeric column, this method returns 0. For example, an INTEGER column has the precision 10. A SMALLINT column has the precision 5. A NUMERIC(12,5) column has the precision 12. A FLOAT column has the precision 16.
|
|
|
Returns the number of decimals of a column. This method returns the number of decimal digits of a column. If the column type is non-numeric or an approximate numeric (FLOAT and DOUBLE PRECISION), 0 is returned.
|
|
|
Returns the SQL type of the specified column. The type returned is the SQL type of the column. The type values returned are in compliance with the concise data type codes of the ISO-9075 standard. There are also constants defined in this class.
|
|
|
Returns the SQL type name of the specified column. The typename returned by this method is a character string representing the data type of the column.
|
|
|
Returns the number of parameters of a statement.
|
|
|
Returns the maximum display size of a parameter. The value returned by this function is the maximum size, in characters, of the character string representation of the specified parameter. One can also formulate this as this value being the minimum number of characters required to hold all possible values of this parameter. For example, a CHARACTER(255) parameter has the display size 255. An INTEGER(1) parameter has the display size 2 (sign plus one digit, like '-1'). A TIMESTAMP(9) parameter has the display size 29 (like '2005-01-24 12:59:32.123456789'.
|
|
|
Returns the number of parameters of a statement.
|
|
|
Returns the precision of a numeric parameter. If the specified parameter represents a numeric value, this method returns the maximum number of digits, including decimal digits, that may be represented by the parameter. If the parameter is a non-numeric parameter, this method returns 0. For example, an INTEGER parameter has the precision 10. A SMALLINT parameter has the precision 5. A NUMERIC(12,5) parameter has the precision 12. A FLOAT parameter has the precision 16.
|
|
|
Returns the number of decimals of a parameter. This method returns the number of decimal digits of a parameter. If the parameter type is non-numeric or an approximate numeric (FLOAT and DOUBLE PRECISION), 0 is returned.
|
|
|
Returns the SQL type of the specified parameter. The type returned is the SQL type of the parameter. The type values returned are in compliance with the concise data type codes of the ISO-9075 standard. There are also constants defined in this class.
|
|
|
Returns the SQL type name of the specified parameter. The typename returned by this method is a character string representing the data type of the parameter.
|
|
|
Determines whether column values may be NULL or not.
|
|
|
Determines whether column may be updated or not.
|
|
|
Determines whether parameter values may be NULL or not.
|