14 m_table( rhs.m_table ),
30 return m_table->name();
34 if( !m_table->exists() ){
38 if(!m_table->getLastId( sequenceName, lastId ) ) m_impl->create( sequenceName );
43 return m_impl->getNextId( sequenceName, sinchronize );
47 m_impl->sinchronize( sequenceName );
51 m_impl->sinchronizeAll();
55 m_impl->erase( sequenceName );
SequenceManager(const std::string &tableName, coral::ISchema &schema)
boost::shared_ptr< Sequences > m_impl
int getNextId(const std::string &sequenceName, bool sinchronize=false)
boost::shared_ptr< OraSequenceTable > m_table
SequenceManager & operator=(const SequenceManager &rhs)
void erase(const std::string &sequenceName)
virtual ~SequenceManager()
void create(const std::string &sequenceName)
void sinchronize(const std::string &sequenceName)