Definition at line 66 of file device-gw.h.
bool OSB_DB::DeviceGw::fetch | ( | const Session & | session, | |
OSB_LIB::Device & | device | |||
) |
Read a device.
session | Database session to use. | |
device | Device to read, its object id and type are used as selection criteria. |
bool OSB_DB::DeviceGw::incObjVs | ( | const Session & | session, | |
OSB_LIB::Device & | device | |||
) |
Increment the object version of a device.
session | Database session to use. | |
device | The device who's object version is increased. |
void OSB_DB::DeviceGw::insert | ( | const Session & | session, | |
OSB_LIB::Device & | device | |||
) |
Create a device.
session | Database session to use. | |
device | Device to create. |
OSB_LIB::ObjectStatus OSB_DB::DeviceGw::lock | ( | const Session & | session, | |
const OSB_LIB::Device & | device, | |||
bool | noWait | |||
) |
Lock a contract in the database.
session | Database session to use. | |
device | The device to lock. | |
noWait | Don't wait if locked by another session? |
OSB_LIB::ObjectStatus OSB_DB::DeviceGw::lock | ( | const Session & | session, | |
const OSB_LIB::Id< OSB_LIB::Device > & | devId, | |||
bool | noWait | |||
) |
Lock a device in database.
session | Database session to use. | |
devId | Id of the device to lock. | |
noWait | Don't wait if locked by another session? |
bool OSB_DB::DeviceGw::remove | ( | const Session & | session, | |
const OSB_LIB::Device & | device | |||
) |
Delete a device.
session | Database session to use. | |
device | Device to delete. |
OsbException | if child records exist. |
bool OSB_DB::DeviceGw::updData | ( | const Session & | session, | |
const OSB_LIB::Device & | device | |||
) |
Update the data of a device.
session | Database session to use. | |
device | Device to update. |
bool OSB_DB::DeviceGw::updStatus | ( | const Session & | session, | |
const OSB_LIB::Device & | device | |||
) |
Update the status of a device.
session | Database session to use. | |
device | Device to update. |