![]() |
OCILIB (C and C++ Driver for Oracle)
4.7.7
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
Class allowing the administration of Oracle Queue tables. More...
#include <types.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 core::Enum< GroupingModeValues > | GroupingMode |
| Grouping Mode. | |
| typedef core::Enum< PurgeModeValues > | PurgeMode |
| Purge mode. | |
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. | |
| 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. | |
| static void | Drop (const Connection &connection, const ostring &table, bool force=true) |
| Drop the given queue table. | |
| 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. | |
| static void | Migrate (const Connection &connection, const ostring &table, const ostring &compatible=OTEXT("")) |
| Migrate a queue table from one version to another. | |
Class allowing the administration of Oracle Queue tables.
Grouping Mode.
Possible values are QueueTable::GroupingModeValues
Purge mode.
Possible values are QueueTable::PurgeModeValues
|
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 28 of file QueueTable.hpp.
References ocilib::core::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 36 of file QueueTable.hpp.
References ocilib::core::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 41 of file QueueTable.hpp.
References ocilib::core::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 46 of file QueueTable.hpp.
References ocilib::core::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 51 of file QueueTable.hpp.
References ocilib::core::Check(), and OCI_QueueTableMigrate().