23 #include "ocilibcpp/types.hpp"
28 inline Column::Column(
OCI_Column *pColumn, core::Handle *parent)
30 AcquireTransient(pColumn, parent);
45 const unsigned int size = OCI_SIZE_BUFFER;
121 Environment::GetEnvironmentHandle()
124 return TypeInfo(typeInfo, connection.GetHandle());
ostring GetSQLType() const
Return the Oracle SQL type name of the column data type.
CollationID GetCollationID() const
Return the collation ID of the given column.
int GetPrecision() const
Return the precision of the column for numeric columns.
TypeInfo GetTypeInfo() const
Return the type information object associated to the column.
bool IsNullable() const
Return true if the column is nullable otherwise false.
bool IsCharSemanticUsed() const
Return true if the length of the column is character-length or false if it is byte-length.
int GetScale() const
Return the scale of the column for numeric columns.
PropertyFlags GetPropertyFlags() const
Return the column property flags.
unsigned int GetSize() const
Return the size of the column.
ostring GetName() const
Return the Column name.
ostring GetFullSQLType() const
Return the Oracle SQL Full name including precision and size of the column data type.
core::Flags< PropertyFlagsValues > PropertyFlags
Column properties flags.
int GetFractionalPrecision() const
Return the fractional precision of the column for Timestamp and Interval columns.
unsigned int GetSubType() const
Return the OCILIB object subtype of a column.
CharsetForm GetCharsetForm() const
Return the charset form of the given column.
DataType GetType() const
Return the type of the given column.
int GetLeadingPrecision() const
Return the leading precision of the column for Interval columns.
A connection or session with a specific database.
Provides type information on Oracle Database objects.
Template Enumeration template class providing some type safety to some extends for manipulating enume...
Template Flags template class providing some type safety to some extends for manipulating flags set v...
Internal usage. Provide a buffer class with RAII capabilities.
struct OCI_Column OCI_Column
Oracle SQL Column and Type member representation.
struct OCI_TypeInfo OCI_TypeInfo
Type info metadata handle.
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 unsigned int OCI_API OCI_ColumnGetPropertyFlags(OCI_Column *col)
Return the column property flags.
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.
OCI_SYM_PUBLIC boolean OCI_API OCI_ColumnGetNullable(OCI_Column *col)
Return the nullable attribute of the column.
OCI_SYM_PUBLIC const otext *OCI_API OCI_ColumnGetName(OCI_Column *col)
Return the name of the given column.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetType(OCI_Column *col)
Return the type of the given column.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetCharsetForm(OCI_Column *col)
Return the charset form of the given column.
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 int OCI_API OCI_ColumnGetLeadingPrecision(OCI_Column *col)
Return the leading precision of the column for interval columns.
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 unsigned int OCI_API OCI_ColumnGetCollationID(OCI_Column *col)
Return the column collation ID.
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_ColumnGetScale(OCI_Column *col)
Return the scale of the column for numeric columns.
OCI_SYM_PUBLIC int OCI_API OCI_ColumnGetPrecision(OCI_Column *col)
Return the precision of the column for numeric columns.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetSize(OCI_Column *col)
Return the size of the column.
OCI_SYM_PUBLIC unsigned int OCI_API OCI_ColumnGetSubType(OCI_Column *col)
Return the OCILIB object subtype of a column.
static T Check(T result)
Internal usage. Checks if the last OCILIB function call has raised an error. If so,...
ostring MakeString(const otext *result, int size=-1)
Internal usage. Constructs a C++ string object from the given OCILIB string pointer.
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 )
core::Enum< CollationIDValues > CollationID
Type of Collation ID.
core::Enum< CharsetFormValues > CharsetForm
Type of charsetForm.
core::Enum< DataTypeValues > DataType
Column data type.