Definition at line 60 of file associate-gw.h.
Definition at line 73 of file associate-gw.h.
typedef std::set<AssociateId> OSB_DB::AssociateGw::AssociateIds |
Definition at line 74 of file associate-gw.h.
OSB_DB::AssociateGw::AssociateGw | ( | const AssociateGw & | rhs | ) | [private] |
Prevent copying: Copy constructor not implemented.
OSB_DB::AssociateGw::AssociateGw | ( | ) | [inline] |
bool OSB_DB::AssociateGw::fetch | ( | const Session & | session, | |
OSB_LIB::Associate & | assoc | |||
) |
Read an associate from the database.
The function (re)reads an existing associate from the database. It populates data members if a matching row is found.
session | Database session to use. | |
assoc | Associate to read. |
OsbException | 109 for an unknown preferred or effective status. |
OSB_LIB::Associate::AutoPtr OSB_DB::AssociateGw::fetch | ( | const Session & | session, | |
const OSB_LIB::Associate::Oid & | asId | |||
) |
Load an associate from database for a given object id.
session | Database session to use. | |
asId | Object id of associate. |
OsbException | 47 for illegal associate type. | |
OsbException | from OSB_LIB::Associate::read. |
long OSB_DB::AssociateGw::fetchChildren | ( | const Session & | session, | |
OSB_LIB::Associate & | associate | |||
) | [private] |
Load all the next level associates.
Read all children for an associate and add them to the destination list.
session | Database session to use. | |
associate | Associate to read for. |
bool OSB_DB::AssociateGw::incObjVs | ( | const Session & | session, | |
OSB_LIB::Associate & | assoc | |||
) | [private] |
Increment the object version of an associate.
session | Database session to use. | |
assoc | The associate who's object version is increased. |
bool OSB_DB::AssociateGw::insert | ( | const Session & | session, | |
OSB_LIB::Associate & | assoc | |||
) | [private] |
Insert an associate to the database.
Before the function call, the associate object to be added must have all its data members set except oid. After the function completed successfully, oid and objVs will be set.
session | Database session to use. | |
assoc | Ref to associate to be inserted. |
OsbException | if a data member of assoc
|
OSB_LIB::ObjectStatus OSB_DB::AssociateGw::lock | ( | const Session & | session, | |
const OSB_LIB::Associate & | assoc, | |||
bool | noWait | |||
) | [private] |
Lock an associate in the database.
session | Database session to use. | |
assoc | The associate to lock. | |
noWait | Don't wait if locked by another session? |
OSB_LIB::ObjectStatus OSB_DB::AssociateGw::lock | ( | const Session & | session, | |
const OSB_LIB::Associate::Oid & | asId, | |||
bool | noWait | |||
) | [private] |
Lock an associate entry in the database.
session | Database session to use. | |
asId | Object id of associate to lock. | |
noWait | Don't wait if locked by another session? |
void OSB_DB::AssociateGw::lockChildren | ( | const Session & | session, | |
const OSB_LIB::Associate::Oid & | asId, | |||
bool | noWait | |||
) | [private] |
Lock all children entries of an associate in database.
session | Database session to use. | |
asId | Object id of associate. | |
noWait | Wait if locked by another session? |
void OSB_DB::AssociateGw::lockContracts | ( | const Session & | session, | |
const OSB_LIB::Associate::Oid & | asId, | |||
bool | noWait | |||
) | [private] |
Lock all contract entries of one owner in database.
session | Database session to use. | |
asId | Owner id. | |
noWait | Wait if locked by another session? |
AssociateGw& OSB_DB::AssociateGw::operator= | ( | const AssociateGw & | rhs | ) | [private] |
Prevent assignment: Assignment not implemented.
bool OSB_DB::AssociateGw::remove | ( | const Session & | session, | |
const OSB_LIB::Associate & | assoc | |||
) | [private] |
Remove an associate to the database.
session | Database session to use. | |
assoc | Associate to remove. |
OsbException | if assoc
|
long OSB_DB::AssociateGw::searchByName | ( | const Session & | session, | |
AssociateIds & | idList, | |||
OSB_LIB::AnCFilter & | filter | |||
) |
Search all associates by name.
session | Database session to use. | |
idList | List of associate ids to store. | |
filter | Filter to use. |
bool OSB_DB::AssociateGw::setEffStatus | ( | const Session & | session, | |
const OSB_LIB::Associate & | assoc | |||
) | [private] |
Save the effective status of an associate.
session | Database session to use. | |
assoc | Associate to process. |
bool OSB_DB::AssociateGw::setPrefStatus | ( | const Session & | session, | |
const OSB_LIB::Associate & | assoc | |||
) | [private] |
Save the preferred status for an associate.
session | Database session to use. | |
assoc | Associate to process. |
void OSB_DB::AssociateGw::storeChange | ( | const Session & | session, | |
const OSB_LIB::Associate::Oid & | asId, | |||
OSB_LIB::StatusChange & | change | |||
) | [private] |
Store status change for an associate in the database.
session | Database session to use. | |
asId | Associate object id. | |
change | Status change to store. |
void OSB_DB::AssociateGw::storeRequest | ( | const Session & | session, | |
const OSB_LIB::Associate::Oid & | asId, | |||
OSB_LIB::StatusRequest & | status | |||
) | [private] |
Store status request for an associate in the database.
session | Database session to use. | |
asId | Associate object id. | |
status | Status request to store. |
bool OSB_DB::AssociateGw::update | ( | const Session & | session, | |
const OSB_LIB::Associate & | assoc | |||
) | [private] |
Update an associate to the database.
ObjVs will be set after the successful update.
session | Database session to use. | |
assoc | Ref to associate to be updated. |
OsbException | the name of assoc is empty or too long for the database. |
friend class OSB_LIB::AnCList [friend] |
friend class OSB_LIB::Associate [friend] |
friend class OSB_LIB::Contract [friend] |