|
OCILIB (C and C++ Driver for Oracle)
4.6.3
|
Object identifying the SQL data type OBJECT. More...
#include <ocilib.hpp>
Inherits ocilib::HandleHolder< OCI_Object *>, and ocilib::Streamable.
Public Types | |
| enum | ObjectTypeValues { Persistent = OCI_OBJ_PERSISTENT, Transient = OCI_OBJ_TRANSIENT, Value = OCI_OBJ_VALUE } |
| Object Type enumerated values. More... | |
| typedef Enum< ObjectTypeValues > | ObjectType |
| Object Type. More... | |
Public Member Functions | |
| Object () | |
| Create an empty null Object instance. | |
| Object (const TypeInfo &typeInfo) | |
| Parametrized constructor. More... | |
| bool | IsAttributeNull (const ostring &name) const |
| Check if an object attribute is null. More... | |
| void | SetAttributeNull (const ostring &name) |
| Set the given object attribute to null. More... | |
| TypeInfo | GetTypeInfo () const |
| Return the TypeInfo object describing the object. | |
| Reference | GetReference () const |
| Creates a reference on the current object. | |
| ObjectType | GetType () const |
| Return the type of the given object. | |
| template<class T > | |
| T | Get (const ostring &name) const |
| Return the given object attribute value. More... | |
| template<class T > | |
| void | Get (const ostring &name, T &value) const |
| Assign the given value with the given object attribute value. More... | |
| template<class T > | |
| void | Get (const ostring &name, Collection< T > &value) const |
| Assign the given collection with the given object attribute value of type collection. More... | |
| template<class T > | |
| void | Set (const ostring &name, const T &value) |
| Set the given object attribute value. More... | |
| Object | Clone () const |
| Clone the current instance to a new one performing deep copy. | |
| ostring | ToString () const |
| return a string representation of the current object | |
Object identifying the SQL data type OBJECT.
This class wraps the OCILIB object handle OCI_Object and its related methods
Definition at line 4821 of file ocilib.hpp.
Object Type.
Possible values are Object::ObjectTypeValues
Definition at line 4855 of file ocilib.hpp.
Object Type enumerated values.
| Enumerator | |
|---|---|
| Persistent | The object is persistent in the database |
| Transient | The object is Transient |
| Value | The object is a value member of another object |
Definition at line 4838 of file ocilib.hpp.
|
inline |
Parametrized constructor.
| typeInfo | - type info descriptor |
Definition at line 3473 of file ocilib_impl.hpp.
References ocilib::Check(), ocilib::TypeInfo::GetConnection(), Object(), OCI_ObjectCreate(), and OCI_ObjectFree().
|
inline |
Check if an object attribute is null.
| name | - Attribute name |
Definition at line 3493 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_ObjectIsNull().
|
inline |
Set the given object attribute to null.
| name | - Attribute name |
Definition at line 3498 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_ObjectSetNull().
| T ocilib::Object::Get | ( | const ostring & | name | ) | const |
Return the given object attribute value.
| T | - C++ object type to retrieve |
| name | - Attribute name |
Definition at line 3658 of file ocilib_impl.hpp.
References ocilib::Check(), OCI_ObjectGetColl(), OCI_ObjectSetBigInt(), OCI_ObjectSetBoolean(), OCI_ObjectSetDate(), OCI_ObjectSetDouble(), OCI_ObjectSetFile(), OCI_ObjectSetFloat(), OCI_ObjectSetInt(), OCI_ObjectSetInterval(), OCI_ObjectSetLob(), OCI_ObjectSetNumber(), OCI_ObjectSetObject(), OCI_ObjectSetRaw(), OCI_ObjectSetRef(), OCI_ObjectSetShort(), OCI_ObjectSetString(), OCI_ObjectSetTimestamp(), OCI_ObjectSetUnsignedBigInt(), OCI_ObjectSetUnsignedInt(), and OCI_ObjectSetUnsignedShort().
| void ocilib::Object::Get | ( | const ostring & | name, |
| T & | value | ||
| ) | const |
Assign the given value with the given object attribute value.
| T | - C++ object type to retrieve |
| name | - Attribute name |
| value | - value to assign |
| void ocilib::Object::Get | ( | const ostring & | name, |
| Collection< T > & | value | ||
| ) | const |
Assign the given collection with the given object attribute value of type collection.
| T | - C++ object type of the collection to retrieve |
| name | - Attribute name |
| value | - value to assign |
| void ocilib::Object::Set | ( | const ostring & | name, |
| const T & | value | ||
| ) |
Set the given object attribute value.
| T | - C++ object type to set |
| name | - Attribute name |
| value | - Attribute value |
Definition at line 3797 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_ObjectSetColl().