|
OCILIB (C and C++ Driver for Oracle)
4.0.0
|
Object identifying the SQL data type LOB (CLOB, NCLOB and BLOB) More...
#include <ocilib.hpp>
Inherits ocilib::HandleHolder< OCI_Lob * >.
Public Member Functions | |
| Lob (const Connection &connection) | |
| Parametrized constructor. More... | |
| TLobObjectType | Read (unsigned int length) |
| Read a portion of a lob. More... | |
| unsigned int | Write (const TLobObjectType &content) |
| Write the given content at the current position within the lob. More... | |
| unsigned int | Append (const TLobObjectType &content) |
| Append the given content to the lob. More... | |
| void | Append (const Lob &other) |
| Append the given lob content to the lob. More... | |
| bool | Seek (SeekMode seekMode, big_uint offset) |
| Move the current position within the lob for read/write operations. More... | |
| LobType | GetType () const |
| return the type of lob | |
| big_uint | GetOffset () const |
| Returns the current R/W offset within the lob. | |
| big_uint | GetLength () const |
| Returns the number of characters or bytes contained in the lob. | |
| big_uint | GetMaxSize () const |
| Returns the lob maximum possible size. | |
| big_uint | GetChunkSize () const |
| Returns the current lob chunk size. More... | |
| Connection | GetConnection () const |
| Return the lob parent connection. | |
| void | Truncate (big_uint length) |
| Truncate the lob to a shorter length. More... | |
| big_uint | Erase (big_uint offset, big_uint length) |
| Erase a portion of the lob at a given position. More... | |
| void | Copy (Lob &dest, big_uint offset, big_uint offsetDest, big_uint length) const |
| Copy the given portion of the lob content to another one. More... | |
| bool | IsTemporary () const |
| Check if the given lob is a temporary lob. | |
| void | Open (OpenMode mode) |
| Open explicitly a Lob. More... | |
| void | Flush () |
| Flush the lob content to the server (if applicable) | |
| void | Close () |
| Close explicitly a Lob. More... | |
| void | EnableBuffering (bool value) |
| Enable / disable buffering mode on the given lob object. More... | |
| Lob | Clone () const |
| Clone the current instance to a new one performing deep copy. | |
| operator TLobObjectType () const | |
| return the lob object content | |
| Lob & | operator+= (const Lob &other) |
| Appending the given lob content to the current lob content. | |
| bool | operator== (const Lob &other) const |
| Indicates if the current lob value is equal to the given lob value. | |
| bool | operator!= (const Lob &other) const |
| Indicates if the current lob value is not equal the given lob value. | |
Object identifying the SQL data type LOB (CLOB, NCLOB and BLOB)
This class wraps the OCILIB object handle OCI_Lob and its related methods
Definition at line 3558 of file ocilib.hpp.
|
inline |
Parametrized constructor.
| connection | - Parent connection |
Definition at line 2311 of file ocilib_impl.hpp.
References ocilib::Check(), OCI_LobCreate(), and OCI_LobFree().
| TLobObjectType ocilib::Lob< TLobObjectType, TLobOracleType >::Read | ( | unsigned int | length | ) |
Read a portion of a lob.
| length | - Maximum number of characters or bytes to read |
|
inline |
Write the given content at the current position within the lob.
| content | - content to write |
Definition at line 2353 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobWrite().
|
inline |
Append the given content to the lob.
| content | - content to write |
Definition at line 2365 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobAppend().
|
inline |
Append the given lob content to the lob.
| other | - source lob |
Definition at line 2359 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobAppendLob().
|
inline |
Move the current position within the lob for read/write operations.
| seekMode | - Seek mode |
| offset | - offset from current position |
Definition at line 2371 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobSeek().
|
inline |
Returns the current lob chunk size.
Definition at line 2417 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobGetChunkSize().
|
inline |
Truncate the lob to a shorter length.
| length | - New length in characters or bytes |
Definition at line 2429 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobTruncate().
|
inline |
Erase a portion of the lob at a given position.
| offset | - Absolute position in source lob |
| length | - Number of bytes or characters to erase |
Definition at line 2435 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobErase().
|
inline |
Copy the given portion of the lob content to another one.
| dest | - Destination lob |
| offset | - Absolute position in the lob |
| offsetDest | - Absolute position in the destination lob |
| length | - Number of characters or bytes to copy |
Definition at line 2441 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobCopy().
|
inline |
Open explicitly a Lob.
| mode | - open mode |
Definition at line 2453 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobOpen().
|
inline |
Close explicitly a Lob.
Definition at line 2465 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobClose().
|
inline |
Enable / disable buffering mode on the given lob object.
| value | - Enable/disable buffering mode |
Definition at line 2471 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_LobEnableBuffering().