23 #include "ocilibcpp/types.hpp" 28 inline Column::Column(
OCI_Column *pColumn, core::Handle *parent)
30 Acquire(pColumn,
nullptr,
nullptr, parent);
45 const unsigned int size = OCI_SIZE_BUFFER;
core::Enum< CharsetFormValues > CharsetForm
Type of charsetForm.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetSize(OCI_Column *col)
Return the size of the column.
core::Flags< PropertyFlagsValues > PropertyFlags
Column properties flags.
core::Enum< CollationIDValues > CollationID
Type of Collation ID.
bool IsCharSemanticUsed() const
Return true if the length of the column is character-length or false if it is byte-length.
core::Enum< DataTypeValues > DataType
Column data type.
unsigned int GetSubType() const
Return the OCILIB object subtype of a column.
ostring GetFullSQLType() const
Return the Oracle SQL Full name including precision and size of the column data type.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetType(OCI_Column *col)
Return the type of the given column.
static T Check(T result)
Internal usage. Checks if the last OCILIB function call has raised an error. If so, it raises a C++ exception using the retrieved error handle.
OCI_SYM_PUBLIC int OCI_API OCI_ColumnGetScale(OCI_Column *col)
Return the scale of the column for numeric columns.
bool IsNullable() const
Return true if the column is nullable otherwise false.
TypeInfo GetTypeInfo() const
Return the type information object associated to the column.
Template Flags template class providing some type safety to some extends for manipulating flags set v...
OCI_SYM_PUBLIC boolean OCI_API OCI_ColumnGetNullable(OCI_Column *col)
Return the nullable attribute of the column.
ostring MakeString(const otext *result, int size=-1)
Internal usage. Constructs a C++ string object from the given OCILIB string pointer.
CharsetForm GetCharsetForm() const
Return the charset form of the given column.
PropertyFlags GetPropertyFlags() const
Return the column property flags.
int GetLeadingPrecision() const
Return the leading precision of the column for Interval columns.
int GetPrecision() const
Return the precision of the column for numeric columns.
Template Enumeration template class providing some type safety to some extends for manipulating enume...
int GetScale() const
Return the scale of the column for numeric columns.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetSubType(OCI_Column *col)
Return the OCILIB object subtype of a column.
Internal usage. Provide a buffer class with RAII capabilities.
ostring GetName() const
Return the Column name.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetCollationID(OCI_Column *col)
Return the column collation ID.
OCI_SYM_PUBLIC boolean OCI_API OCI_ColumnGetCharUsed(OCI_Column *col)
Return TRUE if the length of the column is character-length or FALSE if it is byte-length.
OCI_SYM_PUBLIC const otext *OCI_API OCI_ColumnGetSQLType(OCI_Column *col)
Return the Oracle SQL type name of the column data type.
OCI_SYM_PUBLIC int OCI_API OCI_ColumnGetFractionalPrecision(OCI_Column *col)
Return the fractional precision of the column for timestamp and interval columns. ...
OCI_SYM_PUBLIC OCI_TypeInfo *OCI_API OCI_ColumnGetTypeInfo(OCI_Column *col)
Return the type information object associated to the column.
OCI_SYM_PUBLIC int OCI_API OCI_ColumnGetLeadingPrecision(OCI_Column *col)
Return the leading precision of the column for interval columns.
CollationID GetCollationID() const
Return the collation ID of the given column.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetFullSQLType(OCI_Column *col, otext *buffer, unsigned int len)
Return the Oracle SQL Full name including precision and size of the column data type.
Provides type information on Oracle Database objects.
ostring GetSQLType() const
Return the Oracle SQL type name of the column data type.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetCharsetForm(OCI_Column *col)
Return the charset form of the given column.
int GetFractionalPrecision() const
Return the fractional precision of the column for Timestamp and Interval columns. ...
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetPropertyFlags(OCI_Column *col)
Return the column property flags.
unsigned int GetSize() const
Return the size of the column.
std::basic_string< otext, std::char_traits< otext >, std::allocator< otext > > ostring
string class wrapping the OCILIB otext * type and OTEXT() macros ( see Character sets ) ...
OCI_SYM_PUBLIC int OCI_API OCI_ColumnGetPrecision(OCI_Column *col)
Return the precision of the column for numeric columns.
struct OCI_Column OCI_Column
Oracle SQL Column and Type member representation.
DataType GetType() const
Return the type of the given column.
OCI_SYM_PUBLIC const otext *OCI_API OCI_ColumnGetName(OCI_Column *col)
Return the name of the given column.