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 );
void sinchronize(const std::string &sequenceName)
SequenceManager(const std::string &tableName, coral::ISchema &schema)
virtual ~SequenceManager()
boost::shared_ptr< Sequences > m_impl
boost::shared_ptr< OraSequenceTable > m_table
int getNextId(const std::string &sequenceName, bool sinchronize=false)
void create(const std::string &sequenceName)
SequenceManager & operator=(const SequenceManager &rhs)
void erase(const std::string &sequenceName)