ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
StorageSvc
StorageSvc
IDbDatabase.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//====================================================================
6
//
7
// Package : pool/StorageSvc (The pool framework)
8
//
9
// @author M.Frank
10
//
11
//====================================================================
12
#ifndef POOL_IDBDATABASE_H
13
#define POOL_IDBDATABASE_H
14
15
// Framework include files
16
#include "
StorageSvc/pool.h
"
17
18
class
StatusCode
;
19
20
/*
21
* POOL namespace declaration
22
*/
23
namespace
pool
{
24
25
// Forward declarations
26
class
DbOption
;
27
class
DbDomain
;
28
class
DbDatabase
;
29
class
DbContainer
;
30
41
class
IDbDatabase
{
42
public
:
43
virtual
~IDbDatabase
() { }
44
46
virtual
long
long
int
size
()
const
= 0;
47
49
53
virtual
StatusCode
setOption
(
const
DbOption
& refOpt) = 0;
54
56
60
virtual
StatusCode
getOption
(
DbOption
& refOpt) = 0;
61
63
67
virtual
StatusCode
close
(Io::IoFlag mode) = 0;
68
70
77
virtual
StatusCode
open
(
const
DbDomain
& domH,
78
const
std::string& nam,
79
Io::IoFlag mode) = 0;
80
82
87
virtual
StatusCode
onOpen
(
DbDatabase
& dbH,
88
Io::IoFlag mode) = 0;
89
91
94
virtual
StatusCode
transAct
(
Transaction::Action
action) = 0;
95
};
96
}
// End namespace pool
97
#endif
// POOL_IDBDATABASE_H
pool.h
pool::DbContainer
Description: Definition of the object describing a database container Handle managing a DbContainerOb...
Definition
DbContainer.h:48
pool::DbDatabase
Description: Handle managing a DbDatabaseObj, a generic Database object.
Definition
DbDatabase.h:54
pool::DbDomain
Description:
Definition
DbDomain.h:47
pool::DbOption
Description: Definition an option to be supplied to database objects.
Definition
DbOption.h:36
pool::IDbDatabase
IDbDatabase interface.
Definition
IDbDatabase.h:41
pool::IDbDatabase::onOpen
virtual StatusCode onOpen(DbDatabase &dbH, Io::IoFlag mode)=0
Callback after successful open of a database object.
pool::IDbDatabase::~IDbDatabase
virtual ~IDbDatabase()
Definition
IDbDatabase.h:43
pool::IDbDatabase::size
virtual long long int size() const =0
Access the size of the database: May be undefined for some technologies.
pool::IDbDatabase::transAct
virtual StatusCode transAct(Transaction::Action action)=0
Execute Database Transaction action.
pool::IDbDatabase::close
virtual StatusCode close(Io::IoFlag mode)=0
Close database access.
pool::IDbDatabase::open
virtual StatusCode open(const DbDomain &domH, const std::string &nam, Io::IoFlag mode)=0
Open Database object.
pool::IDbDatabase::getOption
virtual StatusCode getOption(DbOption &refOpt)=0
Access options.
pool::IDbDatabase::setOption
virtual StatusCode setOption(const DbOption &refOpt)=0
Set options.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
pool::Transaction::Action
Action
Definition
Database/APR/StorageSvc/StorageSvc/pool.h:38
pool
Framework include files.
Definition
libname.h:15
Generated on
for ATLAS Offline Software by
1.17.0