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 {
48 boost::posix_time::ptime& insertionTime, boost::posix_time::ptime& modificationTime );
51 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& insertionTime );
53 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& updateTime );
55 const boost::posix_time::ptime& updateTime );
72 const boost::posix_time::ptime& insertionTime );
88 std::vector<cond::Time_t>& groups );
90 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
92 const boost::posix_time::ptime& snapshotTime,
93 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
99 const boost::posix_time::ptime& insertTime );
101 const std::vector<std::tuple<cond::Time_t,cond::Hash,boost::posix_time::ptime> >& iovs );
135 const boost::posix_time::ptime& snapshotTime,
const boost::posix_time::ptime& insertionTime );
137 const boost::posix_time::ptime& snapshotTime,
const boost::posix_time::ptime& insertionTime );
149 bool select(
const std::string& gtName, std::vector<std::tuple<std::string,std::string,std::string> >&
tags );
151 std::vector<std::tuple<std::string,std::string,std::string> >&
tags );
152 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)
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)
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)
size_t selectSnapshotGroups(const std::string &tag, const boost::posix_time::ptime &snapshotTime, std::vector< cond::Time_t > &groups)
cond::Hash insertIfNew(const std::string &objectType, const cond::Binary &payloadData, const boost::posix_time::ptime &insertionTime)
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)
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)