Definition at line 611 of file SQLDBC.h.
typedef enum SQLDBC::SQLDBC_ResultSetMetaData::ColumnNullBehavior SQLDBC::SQLDBC_ResultSetMetaData::ColumnNullBehavior |
SQLDBC_Int2 SQLDBC::SQLDBC_ResultSetMetaData::getColumnCount | ( | ) |
Returns the number of columns in this ResultSet object.
SQLDBC_Retcode SQLDBC::SQLDBC_ResultSetMetaData::getColumnName | ( | SQLDBC_Int2 | column, | |
char * | buffer, | |||
const SQLDBC_StringEncoding | encoding, | |||
const SQLDBC_Length | bufferSize, | |||
SQLDBC_Length * | bufferLength | |||
) | const |
Requests the name of the specified column.
column | Index of the column. The first column is number 1, the second is number 2, ... | |
buffer | Buffer where the column name should be copied into | |
encoding | Encoding of the column name that is requested. | |
bufferSize | Size in bytes of the buffer. | |
bufferLength | [out] The number of bytes stored in the buffer, not included the number of bytes necessary for the zero-terminator. If the source string exceeds the bufferSize value SQLDBC_DATA_TRUNC is returned and the bufferLength is set to the number of bytes required to store the name without truncation (not included the number of bytes necessary for the zero-terminator). |
SQLDBC_SQLType SQLDBC::SQLDBC_ResultSetMetaData::getColumnType | ( | SQLDBC_Int2 | column | ) |
Returns the data type of the specified column.
column | Index of the column. The first column is number 1, the second is number 2, ... |
SQLDBC_Int4 SQLDBC::SQLDBC_ResultSetMetaData::getColumnLength | ( | SQLDBC_Int2 | column | ) |
Returns maximum width in characters of the specified column.
column | Index of the column. The first column is number 1, the second is number 2, ... |
SQLDBC_Int4 SQLDBC::SQLDBC_ResultSetMetaData::getPrecision | ( | SQLDBC_Int2 | column | ) |
Returns the maximum number of decimal digits of the specified column.
For number types, getPrecision retrieves the number of decimal digits. For character types, it retrieves the maximum length in characters. For binary types, it retrieves the maximum length in bytes.
column | Index of the column. The first column is number 1, the second is number 2, ... |
SQLDBC_Int4 SQLDBC::SQLDBC_ResultSetMetaData::getScale | ( | SQLDBC_Int2 | column | ) |
Returns the number of decimal places of the data type of the specified column.
For non-numeric types, the scale is set to zero.
column | Index of the column. The first column is number 1, the second is number 2, ... |
SQLDBC_Int4 SQLDBC::SQLDBC_ResultSetMetaData::getPhysicalLength | ( | SQLDBC_Int2 | column | ) |
Returns column's maximum physical width in bytes of the specified columns.
column | Index of the column. The first column is number 1, the second is number 2, ... |
ColumnNullBehavior SQLDBC::SQLDBC_ResultSetMetaData::isNullable | ( | SQLDBC_Int2 | column | ) |
Returns whether NULL values are allowed for the specified column values.
column | Index of the column. The first column is number 1, the second is number 2, ... |
SQLDBC_Bool SQLDBC::SQLDBC_ResultSetMetaData::isWritable | ( | SQLDBC_Int2 | column | ) |
Returns whether a write operation is possible on the specified column.
column | Index of the column. The first column is number 1, the second is number 2, ... |