lsst.daf.persistence  14.0-14-g87d16e8+5
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
lsst::daf::persistence::DbStorageImpl Class Reference

Class for implementation of database storage. More...

#include <DbStorageImpl.h>

Inheritance diagram for lsst::daf::persistence::DbStorageImpl:
lsst::daf::base::Citizen

Public Types

typedef unsigned long memId
 
typedef memId(* memNewCallback) (const memId cid)
 
typedef memId(* memCallback) (const Citizen *ptr)
 

Public Member Functions

virtual ~DbStorageImpl (void)
 Destructor. More...
 
template<>
void setColumn (std::string const &columnName, std::string const &value)
 
template<>
void setColumn (std::string const &columnName, dafBase::DateTime const &value)
 
template<>
void outParam (std::string const &columnName, std::string *location, bool isExpr)
 
template<>
void outParam (std::string const &columnName, dafBase::DateTime *location, bool isExpr)
 
template<>
std::string const & getColumnByPos (int pos)
 
template<>
dafBase::DateTime const & getColumnByPos (int pos)
 
std::string repr () const
 
void markPersistent (void)
 
memId getId () const
 

Static Public Member Functions

static bool hasBeenCorrupted ()
 
static memId getNextMemId ()
 
static int init ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static memId setNewCallbackId (memId id)
 
static memId setNewCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memNewCallback setNewCallback (memNewCallback func)
 
static memCallback setDeleteCallback (memCallback func)
 
static memCallback setCorruptionCallback (memCallback func)
 

Public Attributes

 magicSentinel
 

Friends

class DbStorage
 

Detailed Description

Class for implementation of database storage.

Use via DbStorage class only.

Definition at line 79 of file DbStorageImpl.h.

Constructor & Destructor Documentation

◆ ~DbStorageImpl()

lsst::daf::persistence::DbStorageImpl::~DbStorageImpl ( void  )
virtual

Destructor.

End session if present.

Definition at line 175 of file DbStorageImpl.cc.

Member Function Documentation

◆ getColumnByPos() [1/2]

template<>
std::string const& lsst::daf::persistence::DbStorageImpl::getColumnByPos ( int  pos)

Definition at line 920 of file DbStorageImpl.cc.

◆ getColumnByPos() [2/2]

template<>
dafBase::DateTime const& lsst::daf::persistence::DbStorageImpl::getColumnByPos ( int  pos)

Definition at line 949 of file DbStorageImpl.cc.

◆ outParam() [1/2]

template<>
void lsst::daf::persistence::DbStorageImpl::outParam ( std::string const &  columnName,
std::string location,
bool  isExpr 
)

Definition at line 587 of file DbStorageImpl.cc.

◆ outParam() [2/2]

template<>
void lsst::daf::persistence::DbStorageImpl::outParam ( std::string const &  columnName,
dafBase::DateTime location,
bool  isExpr 
)

Definition at line 607 of file DbStorageImpl.cc.

◆ setColumn() [1/2]

template<>
void lsst::daf::persistence::DbStorageImpl::setColumn ( std::string const &  columnName,
std::string const &  value 
)

Definition at line 375 of file DbStorageImpl.cc.

◆ setColumn() [2/2]

template<>
void lsst::daf::persistence::DbStorageImpl::setColumn ( std::string const &  columnName,
dafBase::DateTime const &  value 
)

Definition at line 395 of file DbStorageImpl.cc.

Friends And Related Function Documentation

◆ DbStorage

friend class DbStorage
friend

Definition at line 85 of file DbStorageImpl.h.


The documentation for this class was generated from the following files: