The class maintains PERS_ITEM.DEVICE_ID.
Definition at line 136 of file deviceitem-gw.h.
OSB_DB::PersDeviceGw::PersDeviceGw | ( | ) | [inline, private] |
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.
session | Database session to use. | |
pd | Pers. device to check. | |
from | Begin of the period to check. | |
to | End of the period to check. |
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.
session | Database session to use. | |
pd | Pers. device for which to read. |
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.
session | Database session to use. | |
pd | Pers. device for which to create the link. | |
dvcId | Id of the device that is assigned to pd. |
friend class OSB_LIB::PersDevice [friend] |