ResultSetMetaData
, holding the information for one column.
More...
#include <Field.hpp>
Public Member Functions | |
Field (const DriverSocket &sock) throw (SocketIOException, UnexpectedException) | |
Creates a new Field object, deserialized from an input socket. | |
std::wstring | getFieldLabel () const |
Returns the fieldLabel value. | |
std::wstring | getFieldName () const |
Gets the field name. | |
std::wstring | getFullName () |
Gets the full name: "tableName.fieldName". | |
int | getPrecision () |
Get the number of decimal digits. | |
int | getScale () |
Gets the number of digits to right of the decimal point. | |
int | getSqlType () |
Returns the JDBC type code. | |
std::wstring | getTableName () |
Gets the table name. | |
std::wstring | getTypeName () |
Retrieves the database-specific type name. | |
std::wstring | getColumnClassName () |
Returns the Java class used by the mapping. | |
int | getColumnDisplaySize () |
Indicates the normal maximum width in characters. | |
bool | isAutoIncrement () |
Indicates whether the column (field) is automatically numbered, thus read-only. | |
bool | isCaseSensitive () |
Indicates whether a column's case matters. | |
bool | isCurrency () |
Indicates whether the column is a cash value. | |
bool | isDefinitelyWritable () |
Indicates whether a write will definitely succeed. | |
int | isNullable () |
Indicates the nullability of values. | |
bool | isReadOnly () |
Indicates whether the column is definitely not writable. | |
bool | isSearchable () |
Indicates whether the column can be used in a where clause. | |
bool | isSigned () |
Indicates whether values in the column are signed numbers. | |
bool | isWritable () |
Indicates whether it is possible for a write on the column to succeed. | |
std::wstring | toString () |
Returns the full name of the column. | |
std::wstring | getEncoding () |
Retrieves the encoding of the field. |
ResultSetMetaData
, holding the information for one column.
CarobNS::Field::Field | ( | const DriverSocket & | sock | ) | throw (SocketIOException, UnexpectedException) |
Creates a new Field
object, deserialized from an input socket.
sock | the socket |
SocketIOException | if a stream error occurs |
std::wstring CarobNS::Field::getFieldLabel | ( | ) | const [inline] |
Returns the fieldLabel value.
std::wstring CarobNS::Field::getFieldName | ( | ) | const [inline] |
Gets the field name.
wstring
containing the field name std::wstring CarobNS::Field::getFullName | ( | ) | [inline] |
Gets the full name: "tableName.fieldName".
String
containing the full field name int CarobNS::Field::getPrecision | ( | ) | [inline] |
Get the number of decimal digits.
int CarobNS::Field::getScale | ( | ) | [inline] |
Gets the number of digits to right of the decimal point.
int CarobNS::Field::getSqlType | ( | ) | [inline] |
Returns the JDBC type code.
std::wstring CarobNS::Field::getTableName | ( | ) | [inline] |
Gets the table name.
std::wstring CarobNS::Field::getTypeName | ( | ) | [inline] |
Retrieves the database-specific type name.
std::wstring CarobNS::Field::getColumnClassName | ( | ) | [inline] |
Returns the Java class used by the mapping.
Not very meanfull for carob, but keeps java driver code reflexion
int CarobNS::Field::getColumnDisplaySize | ( | ) | [inline] |
Indicates the normal maximum width in characters.
bool CarobNS::Field::isCaseSensitive | ( | ) | [inline] |
Indicates whether a column's case matters.
bool CarobNS::Field::isCurrency | ( | ) | [inline] |
Indicates whether the column is a cash value.
bool CarobNS::Field::isDefinitelyWritable | ( | ) | [inline] |
Indicates whether a write will definitely succeed.
int CarobNS::Field::isNullable | ( | ) | [inline] |
Indicates the nullability of values.
columnNoNulls
, columnNullable
or columnNullableUnknown
bool CarobNS::Field::isReadOnly | ( | ) | [inline] |
Indicates whether the column is definitely not writable.
bool CarobNS::Field::isSearchable | ( | ) | [inline] |
Indicates whether the column can be used in a where clause.
bool CarobNS::Field::isSigned | ( | ) | [inline] |
Indicates whether values in the column are signed numbers.
bool CarobNS::Field::isWritable | ( | ) | [inline] |
Indicates whether it is possible for a write on the column to succeed.
std::wstring CarobNS::Field::toString | ( | ) | [inline] |
std::wstring CarobNS::Field::getEncoding | ( | ) | [inline] |
Retrieves the encoding of the field.