#include <DbSession.h>
Public Member Functions | |
std::string | className (const std::string &poolToken) |
ora::OId | parse (const std::string &poolToken) |
PoolTokenParser (ora::Database &db) | |
~PoolTokenParser () | |
Private Attributes | |
ora::Database & | m_db |
Definition at line 103 of file DbSession.h.
cond::PoolTokenParser::PoolTokenParser | ( | ora::Database & | db | ) | [explicit] |
Definition at line 292 of file DbSession.cc.
: m_db( db ){ }
cond::PoolTokenParser::~PoolTokenParser | ( | ) | [inline] |
Definition at line 106 of file DbSession.h.
{ }
std::string cond::PoolTokenParser::className | ( | const std::string & | poolToken | ) | [virtual] |
Implements ora::ITokenParser.
Definition at line 305 of file DbSession.cc.
References ora::Container::className(), cont, ora::OId::containerId(), and ora::OId::fromString().
{ ora::OId oid; oid.fromString( oraToken ); ora::Container cont = m_db.containerHandle( oid.containerId() ); return cont.className(); }
ora::OId cond::PoolTokenParser::parse | ( | const std::string & | poolToken | ) | [virtual] |
Implements ora::ITokenParser.
Definition at line 296 of file DbSession.cc.
References cont, ora::Container::id(), cond::parseToken(), and cond::throwException().
{ std::pair<std::string,int> oidData = parseToken( poolToken ); if( oidData.first.empty() ){ throwException("Could not resolve Container name from token=\""+poolToken+"\".","PoolTokenParser::parse"); } ora::Container cont = m_db.containerHandle( oidData.first ); return ora::OId( cont.id(), oidData.second ); }
ora::Database& cond::PoolTokenParser::m_db [private] |
Definition at line 112 of file DbSession.h.