#include <SequenceManager.h>
Public Member Functions | |
void | clear () |
void | create (const std::string &sequenceName) |
void | erase (const std::string &sequenceName) |
int | getNextId (const std::string &sequenceName, bool sinchronize=false) |
SequenceManager & | operator= (const SequenceManager &rhs) |
SequenceManager (const SequenceManager &rhs) | |
SequenceManager (const std::string &tableName, coral::ISchema &schema) | |
void | sinchronize (const std::string &sequenceName) |
void | sinchronizeAll () |
std::string | tableName () |
virtual | ~SequenceManager () |
Private Attributes | |
boost::shared_ptr< Sequences > | m_impl |
boost::shared_ptr < OraSequenceTable > | m_table |
Definition at line 17 of file SequenceManager.h.
SequenceManager::SequenceManager | ( | const std::string & | tableName, |
coral::ISchema & | schema | ||
) |
SequenceManager::SequenceManager | ( | const SequenceManager & | rhs | ) |
Definition at line 13 of file SequenceManager.cc.
SequenceManager::~SequenceManager | ( | ) | [virtual] |
Definition at line 18 of file SequenceManager.cc.
{ }
void SequenceManager::clear | ( | void | ) |
Definition at line 58 of file SequenceManager.cc.
{ m_impl->clear(); }
void SequenceManager::create | ( | const std::string & | sequenceName | ) |
Definition at line 33 of file SequenceManager.cc.
Referenced by cond::CredentialStore::createSchema().
void SequenceManager::erase | ( | const std::string & | sequenceName | ) |
Definition at line 54 of file SequenceManager.cc.
{ m_impl->erase( sequenceName ); }
int SequenceManager::getNextId | ( | const std::string & | sequenceName, |
bool | sinchronize = false |
||
) |
Definition at line 41 of file SequenceManager.cc.
Referenced by cond::CredentialStore::addUser(), cond::CredentialStore::installAdmin(), cond::CredentialStore::setPermission(), cond::CredentialStore::updateConnection(), and cond::CredentialStore::updatePrincipal().
{ return m_impl->getNextId( sequenceName, sinchronize ); }
ora::SequenceManager & SequenceManager::operator= | ( | const SequenceManager & | rhs | ) |
void SequenceManager::sinchronize | ( | const std::string & | sequenceName | ) |
Definition at line 46 of file SequenceManager.cc.
{ m_impl->sinchronize( sequenceName ); }
void SequenceManager::sinchronizeAll | ( | ) |
Definition at line 50 of file SequenceManager.cc.
{ m_impl->sinchronizeAll(); }
std::string SequenceManager::tableName | ( | ) |
Definition at line 29 of file SequenceManager.cc.
{ return m_table->name(); }
boost::shared_ptr<Sequences> ora::SequenceManager::m_impl [private] |
Definition at line 56 of file SequenceManager.h.
Referenced by operator=(), and SequenceManager().
boost::shared_ptr<OraSequenceTable> ora::SequenceManager::m_table [private] |
Definition at line 55 of file SequenceManager.h.
Referenced by operator=(), and SequenceManager().