OSB_DB::PersDeviceGw Class Reference

List of all members.

Detailed Description

Support for database operations of pers. device.

The class maintains PERS_ITEM.DEVICE_ID.

Definition at line 136 of file deviceitem-gw.h.

Private Member Functions

Friends


Constructor & Destructor Documentation

OSB_DB::PersDeviceGw::PersDeviceGw (  )  [inline, private]

Empty default constructor.

Definition at line 198 of file deviceitem-gw.h.


Member Function Documentation

void OSB_DB::PersDeviceGw::checkOverlap ( const Session session,
const OSB_LIB::PersDevice pd,
const OSB_LIB::DateTime from,
const OSB_LIB::DateTime to 
) [private]

Check for overlapping assignment periods.

Parameters:
session Database session to use.
pd Pers. device to check.
from Begin of the period to check.
to End of the period to check.
Exceptions:
OsbException if the assignment period of the device to a pers. item overlaps with other assignments.

OSB_LIB::Id<OSB_LIB::Device> OSB_DB::PersDeviceGw::getDvcId ( const Session session,
const OSB_LIB::PersDevice pd 
) [private]

Get the device id linked to a pers. item.

Parameters:
session Database session to use.
pd Pers. device for which to read.
Returns:
The object id of the device linked to pd.
It is not set if the pers. device does not exist or does not have a device assigned.

bool OSB_DB::PersDeviceGw::link ( const Session session,
const OSB_LIB::PersDevice pd,
const OSB_LIB::Id< OSB_LIB::Device > &  dvcId 
) [private]

Create link device to pers. item.

Parameters:
session Database session to use.
pd Pers. device for which to create the link.
dvcId Id of the device that is assigned to pd.
Returns:
true if successful, else false.


Friends And Related Function Documentation

friend class OSB_LIB::PersDevice [friend]

Only pers. device should depend on this class.

Definition at line 138 of file deviceitem-gw.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:08:57 2006 for OSB Library by  doxygen 1.4.7