UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
DbLock Class Reference

#include <DbLock.H>

Inheritance diagram for DbLock:
DbPointer Lock DbName dbNameStruct

Public Member Functions

 DbLock (const char *szProject, const dbNameStruct &dbns, DbAccess dbac)
 
 DbLock (const char *szProject, const char *szDbFileName, DbAccess dbac)
 
virtual ~DbLock ()
 
LockId db_lock_id () const
 
- Public Member Functions inherited from DbPointer
 DbPointer ()
 
 DbPointer (const DbPointer &dbp)
 
 DbPointer (const dbPointer &dbptr)
 
 DbPointer (const char *szProject, const DbName &dbn)
 
 operator dbPointer () const
 
DbPointeroperator= (const DbPointer &dbp)
 
DbPointeroperator= (const dbPointer &dbptr)
 
void set_project (const char *szProject)
 
void unset_project ()
 
const char * get_project () const
 
virtual Logic is_empty () const
 
- Public Member Functions inherited from DbName
 DbName ()
 
 DbName (const dbNameStruct &dbns)
 
 DbName (const char *szFileName)
 
const char * symbolic_name () const
 
const dbNameStructstruct_name () const
 
DbNameoperator= (const dbNameStruct &dbns)
 
DbNameoperator= (const DbName &dbn)
 
DbNameoperator= (const char *szFileName)
 
void set_table (const char *szTableType)
 
void set_well (const char *szWellName)
 
void set_sp (int nSP)
 
void set_mod (int nMod)
 
void set_list_flag (Logic bList)
 
void unset_table ()
 
void unset_well ()
 
void unset_sp ()
 
void unset_mod ()
 
const char * get_table () const
 
const char * get_well () const
 
int get_sp () const
 
int get_mod () const
 
Logic get_list_flag () const
 
- Public Member Functions inherited from Lock
 Lock ()
 
virtual ~Lock ()
 
LockId lock_id () const
 

Protected Attributes

LockId dblid
 

Additional Inherited Members

- Protected Member Functions inherited from DbName
virtual void rebuild_fname ()
 
- Protected Member Functions inherited from Lock
void lock ()
 
void unlock ()
 
- Static Protected Attributes inherited from Lock
static LocksAr * plocksar
 

Detailed Description

Shared lock of the LDB object. Extends class Lock by db object based sharable lock.

Constructor & Destructor Documentation

DbLock::DbLock ( const char *  szProject,
const dbNameStruct dbns,
DbAccess  dbac 
)

Doing lock here

virtual DbLock::~DbLock ( )
virtual

Doing unlock here

Member Function Documentation

LockId DbLock::db_lock_id ( ) const

Return local db lock identifier (inside list of locks for this db table)

Member Data Documentation

LockId DbLock::dblid
protected

Lock id in the lock table


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