OCILIB (C and C++ Driver for Oracle)
4.6.3
|
Class allowing the administration of Oracle Queue tables. More...
#include <ocilib.hpp>
Public Types | |
enum | GroupingModeValues { None = OCI_AGM_NONE, Transactionnal = OCI_AGM_TRANSACTIONNAL } |
Grouping mode enumerated values. More... | |
enum | PurgeModeValues { Buffered = OCI_APM_BUFFERED, Persistent = OCI_APM_PERSISTENT, All = OCI_APM_ALL } |
Purge mode enumerated values. More... | |
typedef Enum< GroupingModeValues > | GroupingMode |
Grouping Mode. More... | |
typedef Enum< PurgeModeValues > | PurgeMode |
Purge mode. More... | |
Static Public Member Functions | |
static void | Create (const Connection &connection, const ostring &table, const ostring &payloadType, bool multipleConsumers, const ostring &storageClause=OTEXT(""), const ostring &sortList=OTEXT(""), GroupingMode groupingMode=None, const ostring &comment=OTEXT(""), unsigned int primaryInstance=0, unsigned int secondaryInstance=0, const ostring &compatible=OTEXT("")) |
Create a queue table for messages of the given type. More... | |
static void | Alter (const Connection &connection, const ostring &table, const ostring &comment, unsigned int primaryInstance=0, unsigned int secondaryInstance=0) |
Alter the given queue table. More... | |
static void | Drop (const Connection &connection, const ostring &table, bool force=true) |
Drop the given queue table. More... | |
static void | Purge (const Connection &connection, const ostring &table, PurgeMode mode, const ostring &condition=OTEXT(""), bool block=true) |
Purge messages from the given queue table. More... | |
static void | Migrate (const Connection &connection, const ostring &table, const ostring &compatible=OTEXT("")) |
Migrate a queue table from one version to another. More... | |
Class allowing the administration of Oracle Queue tables.
Definition at line 8560 of file ocilib.hpp.
Grouping Mode.
Possible values are QueueTable::GroupingModeValues
Definition at line 8586 of file ocilib.hpp.
Purge mode.
Possible values are QueueTable::PurgeModeValues
Definition at line 8611 of file ocilib.hpp.
Grouping mode enumerated values.
Enumerator | |
---|---|
None | Each message is treated individually |
Transactionnal | All messages enqueued in one transaction are considered part of the same group and can be dequeued as a group of related messages |
Definition at line 8570 of file ocilib.hpp.
Purge mode enumerated values.
Enumerator | |
---|---|
Buffered | Purge only buffered messages |
Persistent | Purge only persistent messages |
All | Purge all messages |
Definition at line 8594 of file ocilib.hpp.
|
inlinestatic |
Create a queue table for messages of the given type.
connection | - Database connection |
table | - Queue table name |
payloadType | - Message type name |
multipleConsumers | - Enable multiple consumers for each messages |
storageClause | - Optional Additional clauses for the table storage |
sortList | - Optional Additional columns name to use for sorting |
groupingMode | - Optional Specifies if messages are grouped within a transaction |
comment | - Optional Description of the queue table |
primaryInstance | - Optional primary owner (instance) of the queue table |
secondaryInstance | - Optional Owner of the queue table if the primary instance is not available |
compatible | - Optional lowest database version with which the queue table is compatible |
Definition at line 7298 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_QueueTableCreate().
|
inlinestatic |
Alter the given queue table.
connection | - Database connection |
table | - Queue table name |
comment | - Optional Description of the queue table |
primaryInstance | - Optional primary owner (instance) of the queue table |
secondaryInstance | - Optional Owner of the queue table if the primary instance is not available |
Definition at line 7306 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_QueueTableAlter().
|
inlinestatic |
Drop the given queue table.
connection | - Database connection |
table | - Queue table name |
force | - Force the deletion of objects related to the queue table |
Definition at line 7311 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_QueueTableDrop().
|
inlinestatic |
Purge messages from the given queue table.
connection | - Database connection |
table | - Queue table name |
mode | - Type of message to purge |
block | - Lock all queues using the queue table while doing the purge |
condition | - Optional SQL based conditions (see notes) |
Definition at line 7316 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_QueueTablePurge().
|
inlinestatic |
Migrate a queue table from one version to another.
connection | - Database connection |
table | - Queue table name |
compatible | - Optional database version with witch the queue table has to migrate |
Definition at line 7321 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_QueueTableMigrate().