Library: Data
Package: DataCore
Header: Poco/Data/MetaColumn.h
MetaColumn class contains column metadata information.
Known Derived Classes: Poco::Data::ODBC::ODBCColumn
Member Functions: isNullable, length, name, position, precision, setLength, setName, setNullable, setPrecision, setType, type
MetaColumn();
Creates the MetaColumn.
explicit MetaColumn(
std::size_t position,
const std::string & name = "",
ColumnDataType type = FDT_UNKNOWN,
std::size_t length = 0,
std::size_t precision = 0,
bool nullable = false
);
Creates the MetaColumn.
virtual ~MetaColumn();
Destroys the MetaColumn.
bool isNullable() const;
Returns true if column allows null values, false otherwise.
std::size_t length() const;
Returns column maximum length.
const std::string & name() const;
Returns column name.
std::size_t position() const;
Returns column position.
std::size_t precision() const;
Returns column precision. Valid for floating point fields only (zero for other data types).
ColumnDataType type() const;
Returns column type.
void setLength(
std::size_t length
);
Sets the column length.
void setName(
const std::string & name
);
Sets the column name.
void setNullable(
bool nullable
);
Sets the column nullability.
void setPrecision(
std::size_t precision
);
Sets the column precision.
void setType(
ColumnDataType type
);
Sets the column data type.