16 const std::string & token,
30 transaction.
start(
false);
31 else transaction.
start(
true);
48 boost::shared_ptr<cond::IOVSequence>
iov;
67 iov(&(*impl.
iov)), elem(impl.poolDb){}
74 const std::string & token,
77 :m_iov(new impl::IOVImpl(dbSession,token,nolib,keepOpen)), m_low(0), m_high(
size()){}
83 bool anew = oldsize<
size();
95 m_low = (since<
iov().iovs().front().sinceTime()) ? 0 :
116 boost::make_transform_iterator(boost::counting_iterator<int>(n),
122 return iov().iovs().size();
126 return *(*m_iov).
iov;
137 std::string payloadtokstr=
iov().iovs().front().wrapperToken();
138 std::pair<std::string,int> oidData =
parseToken( payloadtokstr );
139 return oidData.first;
144 return iov().comment();
149 return iov().revision();
153 return iov().timestamp();
157 return m_iov->poolDb;
IOVImpl(cond::DbSession &dbs, const std::string &token, bool, bool keepOpen)
cond::Time_t lastTill() const
boost::shared_ptr< cond::IOVSequence > iov
std::pair< std::string, int > parseToken(const std::string &objectId)
DbTransaction & transaction()
int isActive() const
current transaction is active
std::string comment() const
cond::TimeType timeType() const
cond::Time_t timestamp() const
int commit()
commit transaction.
Container const & iovs() const
bool isReadOnly() const
current transaction is readonly
int isActive() const
current transaction is active
std::string payloadContainerName() const
const_iterator end() const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
TimeType timetype() const
const_iterator find(cond::Time_t time) const
int start(bool readOnly=false)
start transaction
unsigned long long Time_t
iterator find(cond::Time_t time)
const T & max(const T &a, const T &b)
void set(cond::Time_t is, cond::Time_t it, std::string const &itoken)
const Time_t invalidTime(0)
int start(bool readOnly=false)
start transaction
boost::shared_ptr< impl::IOVImpl > m_iov
void setRange(cond::Time_t since, cond::Time_t till) const
bool isReadOnly() const
current transaction is readonly
boost::shared_ptr< T > getTypedObject(const std::string &objectId)
int commit()
commit transaction. Will disconnect from database if connection timeout==0 or connectted time close t...
tuple size
Write out results.