1 #ifndef CondCore_CondDB_OraDbSchema_h
2 #define CondCore_CondDB_OraDbSchema_h
12 #include <boost/date_time/posix_time/posix_time.hpp>
16 namespace persistency {
55 boost::posix_time::ptime& insertionTime, boost::posix_time::ptime& modificationTime );
58 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& insertionTime );
60 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& updateTime );
62 const boost::posix_time::ptime& updateTime );
80 const cond::Binary& streamerInfoData,
const boost::posix_time::ptime& insertionTime );
96 std::vector<cond::Time_t>& groups );
98 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
100 const boost::posix_time::ptime& snapshotTime,
101 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
107 const boost::posix_time::ptime& insertTime );
109 const std::vector<std::tuple<cond::Time_t,cond::Hash,boost::posix_time::ptime> >& iovs );
146 const boost::posix_time::ptime& snapshotTime,
const boost::posix_time::ptime& insertionTime );
148 const boost::posix_time::ptime& snapshotTime,
const boost::posix_time::ptime& insertionTime );
160 bool select(
const std::string& gtName, std::vector<std::tuple<std::string,std::string,std::string> >&
tags );
162 std::vector<std::tuple<std::string,std::string,std::string> >&
tags );
163 void insert(
const std::string& gtName,
const std::vector<std::tuple<std::string,std::string,std::string> >&
tags );
OraGTMapTable m_gtMapTable
bool select(const std::string &name)
void update(const std::string &name, cond::Time_t validity, const std::string &description, const std::string &release, const boost::posix_time::ptime &snapshotTime, const boost::posix_time::ptime &insertionTime)
bool getSnapshotSize(const std::string &tag, const boost::posix_time::ptime &snapshotTime, size_t &size)
size_t selectGroups(const std::string &tag, std::vector< cond::Time_t > &groups)
std::string getToken(const std::string &tag)
IGTMapTable & gtMapTable()
IPayloadTable & payloadTable()
OraTagTable(IOVCache &cache)
bool existsTag(const std::string &tag)
cond::DbSession & session()
cond::DbSession m_session
bool select(const std::string >Name, std::vector< std::tuple< std::string, std::string, std::string > > &tags)
bool select(const std::string &name)
virtual ~OraPayloadTable()
cond::DbSession m_session
void update(const std::string &name, cond::Time_t &endOfValidity, const std::string &description, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &updateTime)
void addTag(const std::string &tag, const std::string token)
cond::DbSession m_session
bool getLastIov(const std::string &tag, cond::Time_t &since, cond::Hash &hash)
bool select(const cond::Hash &payloadHash, std::string &objectType, cond::Binary &payloadData, cond::Binary &streamerInfoData)
OraGTTable(DbSession &session)
void insert(const std::string >Name, const std::vector< std::tuple< std::string, std::string, std::string > > &tags)
unsigned long long Time_t
cond::IOVProxy iovSequence()
bool getMetadata(const std::string &name, std::string &description, boost::posix_time::ptime &insertionTime, boost::posix_time::ptime &modificationTime)
OraIOVSchema(DbSession &session)
void erase(const std::string &tag)
bool load(const std::string &tag)
bool getSize(const std::string &tag, size_t &size)
void insertMany(const std::string &tag, const std::vector< std::tuple< cond::Time_t, cond::Hash, boost::posix_time::ptime > > &iovs)
void insertOne(const std::string &tag, cond::Time_t since, cond::Hash payloadHash, const boost::posix_time::ptime &insertTime)
size_t selectLatestByGroup(const std::string &tag, cond::Time_t lowerGroup, cond::Time_t upperGroup, std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)
void insert(const std::string &name, cond::Time_t validity, const std::string &description, const std::string &release, const boost::posix_time::ptime &snapshotTime, const boost::posix_time::ptime &insertionTime)
OraPayloadTable(DbSession &session)
OraGTSchema(DbSession &session)
bool getType(const cond::Hash &payloadHash, std::string &objectType)
OraPayloadTable m_payloadTable
ITagMigrationTable & tagMigrationTable()
OraIOVTable(IOVCache &cache)
OraGTMapTable(DbSession &session)
cond::IOVEditor m_iovAccess
size_t selectSnapshotByGroup(const std::string &tag, cond::Time_t lowerGroup, cond::Time_t upperGroup, const boost::posix_time::ptime &snapshotTime, std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)
IPayloadMigrationTable & payloadMigrationTable()
cond::Hash insertIfNew(const std::string &objectType, const cond::Binary &payloadData, const cond::Binary &streamerInfoData, const boost::posix_time::ptime &insertionTime)
size_t selectSnapshotGroups(const std::string &tag, const boost::posix_time::ptime &snapshotTime, std::vector< cond::Time_t > &groups)
cond::DbSession m_session
size_t selectLatest(const std::string &tag, std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)
void updateValidity(const std::string &name, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &updateTime)
std::string parsePoolToken(const std::string &poolToken)
tuple size
Write out results.
void insert(const std::string &name, cond::TimeType timeType, const std::string &objectType, cond::SynchronizationType synchronizationType, cond::Time_t endOfValidity, const std::string &description, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &insertionTime)
IOVCache(cond::DbSession &s)