Go to the documentation of this file.00001 #include <iostream>
00002 #include <unistd.h>
00003
00004 #include "CondCore/ORA/interface/SchemaUtils.h"
00005 #include <stdexcept>
00006 #include "CondCore/ORA/interface/Database.h"
00007 #include "CondCore/ORA/interface/Container.h"
00008 #include "CondCore/ORA/interface/OId.h"
00009 #include "CondCore/ORA/interface/ScopedTransaction.h"
00010 #include "CondCore/ORA/interface/Transaction.h"
00011 #include "CondCore/ORA/interface/Exception.h"
00012 #include "CondCore/ORA/interface/IBlobStreamingService.h"
00013 #include "Reflex/Member.h"
00014 #include "Reflex/Object.h"
00015 #include "CoralBase/Blob.h"
00016
00017 #include "CondCore/DBCommon/interface/DbConnection.h"
00018 #include "CondCore/DBCommon/interface/DbScopedTransaction.h"
00019 #include "CondCore/DBCommon/interface/DbTransaction.h"
00020 #include "CondCore/DBCommon/interface/Exception.h"
00021 #include "FWCore/PluginManager/interface/PluginManager.h"
00022 #include "FWCore/PluginManager/interface/standard.h"
00023 #include "CondCore/RegressionTest/interface/TestPayloadClass.h"
00024 #include "CondCore/MetaDataService/interface/MetaData.h"
00025 #include "RelationalAccess/SchemaException.h"
00026 #include "RelationalAccess/ISchema.h"
00027 #include "RelationalAccess/ITable.h"
00028 #include "RelationalAccess/TableDescription.h"
00029 #include "RelationalAccess/ITablePrivilegeManager.h"
00030 #include "RelationalAccess/ICursor.h"
00031 #include "RelationalAccess/IQuery.h"
00032 #include "RelationalAccess/ITableDataEditor.h"
00033 #include "CoralBase/AttributeList.h"
00034 #include "CoralBase/AttributeSpecification.h"
00035 #include "CoralBase/Attribute.h"
00036
00037 class TestFunct {
00038 public :
00039 cond::DbSession s;
00040 TestFunct();
00041 bool Write(std::string mappingName, int payloadID);
00042 bool WriteWithIOV(std::string mappingName, int payloadID, int runValidity, bool updateTestMetadata );
00043 std::pair<int,int> GetMetadata(std::string mappingName);
00044 bool Read(std::string mappingName);
00045 bool ReadWithIOV(std::string mappingName, int seed, int runValidity);
00046 bool ReadAll();
00047 bool CreateMetaTable();
00048 bool DropTables(std::string connStr);
00049 bool DropItem(std::string mappingName);
00050 };