Definition at line 57 of file osbuser-gw.h.
void OSB_DB::OsbUserGw::fetch | ( | const Session & | session, | |
OSB_LIB::Users & | osbUsers | |||
) |
Read all OSB users from the database.
session | Database session to use. | |
osbUsers | List of OSB users to populate. |
bool OSB_DB::OsbUserGw::fetch | ( | const Session & | session, | |
OSB_LIB::OsbUser & | osbUser | |||
) |
Read a OSB user from the database.
The function (re)reads an existing OSB user from the database. It populates data members if a matching row is found.
session | Database session to use. | |
osbUser | OSB user to be fetched, either its object or login name must be set. |
void OSB_DB::OsbUserGw::insert | ( | const Session & | session, | |
OSB_LIB::OsbUser & | osbUser | |||
) | [private] |
Insert a OSB user into the database.
Before the function call, the OSB user object to be added must have all its data members set except oid and objvs. After the function completed successfully, oid and objVs will be set.
session | Database session to use. | |
osbUser | OSB user to be inserted. |
OsbException |
|
void OSB_DB::OsbUserGw::lock | ( | const Session & | session, | |
const OSB_LIB::OsbUser & | osbUser | |||
) | [private] |
Lock the OSB user in the database.
session | Database session to use. | |
osbUser | OSB user to lock. |
ObjectModified | if the object version does not match. | |
ObjectDeleted | if the uses does not exist in the database. |
void OSB_DB::OsbUserGw::remove | ( | const Session & | session, | |
OSB_LIB::OsbUser & | osbUser | |||
) | [private] |
Delete a OSB user from the database.
session | Database session to use. | |
osbUser | OSB user to be inserted. |
ObjectModified | if the object version does not match. | |
ObjectDeleted | if the uses does not exist in the database. | |
OsbException | if deleting fails (for unknown reasons) |
void OSB_DB::OsbUserGw::update | ( | const Session & | session, | |
OSB_LIB::OsbUser & | osbUser | |||
) | [private] |
Update a OSB user in the database.
session | Database session to use. | |
osbUser | OSB user to be inserted. |
OsbException |
| |
ObjectModified | if the object version does not match. | |
ObjectDeleted | if the uses does not exist in the database. |
friend class OSB_LIB::OsbUser [friend] |