This class provides an interface to POOL collections.
More...
#include <PoolCollectionConverter.h>
This class provides an interface to POOL collections.
Definition at line 27 of file PoolCollectionConverter.h.
◆ PoolCollectionConverter() [1/2]
PoolCollectionConverter::PoolCollectionConverter |
( |
const std::string & |
collectionType, |
|
|
const std::string & |
inputCollection, |
|
|
unsigned int |
contextId, |
|
|
const std::string & |
query, |
|
|
const IPoolSvc * |
svc |
|
) |
| |
Constructor.
- Parameters
-
collectionType | [IN] type of the collection ("ExplicitROOT", "ExplicitMySQL", "ExplicitMySQLlt" or "ImplicitROOT"). |
inputCollection | [IN] name of the collection. |
query | [IN] query string. |
svc | [IN] pointer to the PoolSvc. |
contextId | [IN] id for PoolSvc persistency service to use for input. |
Definition at line 31 of file PoolCollectionConverter.cxx.
46 std::string::size_type p_colon = collectionType.rfind(
':');
47 if (p_colon != std::string::npos) {
56 if (p_slash != std::string::npos) {
◆ ~PoolCollectionConverter()
PoolCollectionConverter::~PoolCollectionConverter |
( |
| ) |
|
|
virtual |
◆ PoolCollectionConverter() [2/2]
◆ disconnectDb()
StatusCode PoolCollectionConverter::disconnectDb |
( |
| ) |
|
◆ executeQuery()
◆ initialize()
StatusCode PoolCollectionConverter::initialize |
( |
| ) |
|
Required by all Gaudi Services.
Definition at line 69 of file PoolCollectionConverter.cxx.
70 std::string collectionTypeString;
72 collectionTypeString =
"RootCollection";
74 collectionTypeString =
"ImplicitCollection";
76 return(StatusCode::FAILURE);
78 if (collectionTypeString ==
"ImplicitCollection") {
103 if (
m_poolCollection ==
nullptr && collectionTypeString ==
"ImplicitCollection") {
108 return(StatusCode::RECOVERABLE);
110 return(StatusCode::SUCCESS);
◆ isValid()
StatusCode PoolCollectionConverter::isValid |
( |
| ) |
const |
◆ operator=()
◆ retrieveToken()
- Parameters
-
it | [IN] collection iterator. |
refName | [IN] attribute name. |
Definition at line 145 of file PoolCollectionConverter.cxx.
150 std::string tokenStr;
151 if (!refName.empty()) {
152 std::string
attrName = refName +
"_ref";
158 tokenStr =
cursor->currentRow().attributeList()[
attrName].data<std::string>();
164 tokenStr =
cursor->eventRef().toString();
◆ selectAll()
◆ m_collectionQuery
◆ m_collectionType
std::string PoolCollectionConverter::m_collectionType |
|
private |
◆ m_connection
std::string PoolCollectionConverter::m_connection |
|
private |
◆ m_contextId
unsigned int PoolCollectionConverter::m_contextId |
|
private |
◆ m_inputCollection
std::string PoolCollectionConverter::m_inputCollection |
|
private |
◆ m_inputContainer
std::string PoolCollectionConverter::m_inputContainer |
|
private |
◆ m_poolCollection
◆ m_poolSvc
◆ m_query
std::string PoolCollectionConverter::m_query |
|
private |
The documentation for this class was generated from the following files:
virtual void setCondition(const std::string &whereClause, coral::AttributeList *attributeBindData=0, TokenList *tokenBindData=0)=0
Sets the predicates of the query.
virtual pool::ICollection * createCollection(const std::string &collectionType, const std::string &connection, const std::string &collectionName, unsigned int contextId=IPoolSvc::kInputStream) const =0