Definition at line 53 of file address-gw.h.
| OSB_DB::AddressGw::AddressGw | ( | const AddressGw & | rhs | ) | [private] |
Prevent copying: Copy constructor not implemented.
| OSB_DB::AddressGw::AddressGw | ( | ) | [inline] |
| long OSB_DB::AddressGw::fetch | ( | const Session & | session, | |
| OSB_LIB::AddressTypeList::List & | atList | |||
| ) |
Load all address types.
| session | Database session to use. | |
| atList | Ref of address type list to be fetched. |
| void OSB_DB::AddressGw::fetch | ( | const Session & | session, | |
| const OSB_LIB::Id< OSB_LIB::Associate > & | asId, | |||
| OSB_LIB::AddressList & | dest | |||
| ) |
Load all addresses for an associate.
| session | Database session to use. | |
| asId | Object id of the associate. | |
| dest | Address list to populate. |
| bool OSB_DB::AddressGw::insert | ( | const Session & | session, | |
| const OSB_LIB::Address & | addr | |||
| ) | [private] |
Insert an address of types to the database.
| session | Database session to use. | |
| addr | Address to insert. |
| OsbException | if a data member of addr
| |
| OsbException | if one of the types in addr already exists in the database. |
Prevent assignment: Assignment not implemented.
| bool OSB_DB::AddressGw::remove | ( | const Session & | session, | |
| const OSB_LIB::Address & | addr | |||
| ) | [private] |
Remove an address to the database.
| session | Database session to use. | |
| addr | Ref of address. |
| bool OSB_DB::AddressGw::setType | ( | const Session & | session, | |
| OSB_LIB::Address & | addr, | |||
| OSB_LIB::AddressType | type, | |||
| bool | add | |||
| ) | [private] |
Change the type of the given address with the new one.
The addr.types_ will be set to the new one if success.
| session | Database session to use. | |
| addr | Address to modify. | |
| type | Type of address to add or remove. | |
| add | Signature for add or remove type. |
| OsbException | if type does not exist in database for addr.
|
| bool OSB_DB::AddressGw::update | ( | const Session & | session, | |
| const OSB_LIB::Address & | addr | |||
| ) | [private] |
Update an address of the specific types to the database.
| session | Database session to use. | |
| addr | Ref of address. |
| OsbException | if a data member of addr
| |
| OsbException | if one of the types in addr already exists in the database. |
friend class OSB_LIB::Address [friend] |
1.4.7