Definition at line 66 of file trunkresource-gw.h.
typedef OSB_LIB::Id<OSB_LIB::Network> OSB_DB::TrunkResourceGw::NwOid [private] |
typedef OSB_LIB::ResourceList<OSB_LIB::TrunkResource> OSB_DB::TrunkResourceGw::TrList [private] |
void OSB_DB::TrunkResourceGw::fetch | ( | const Session & | session, | |
TrList & | dest, | |||
const NwOid & | nwId, | |||
bool | availOnly | |||
) |
Read trunk resources from database.
session | Database session to use. | |
dest | Trunk resource list to populate. | |
nwId | Id of the network id for which to read the trunk resources. | |
availOnly | Flag if only available trunk resources should be read. |
bool OSB_DB::TrunkResourceGw::insert | ( | const Session & | session, | |
const OSB_LIB::TrunkResource & | tr | |||
) | const [private] |
Insert a trunk resource into the database.
bool OSB_DB::TrunkResourceGw::insTrkGroup | ( | const Session & | session, | |
const OSB_LIB::TrunkResource::Oid & | trId, | |||
const OSB_LIB::TrunkResource::AssignedTrunk & | assignedTg | |||
) | const [private] |
Assign a trunk group to a trunk resource.
session | Database session to use. | |
trId | Trunk resource id. | |
assignedTg | Trunk group assignment to add. |
OsbException | if the trunk group is assigned to another trunk resource. |
bool OSB_DB::TrunkResourceGw::read | ( | const Session & | session, | |
OSB_LIB::TrunkResource & | tr | |||
) | const [private] |
Read a trunk resource by its id.
bool OSB_DB::TrunkResourceGw::remove | ( | const Session & | session, | |
const OSB_LIB::TrunkResource & | tr | |||
) | const [private] |
Delete trunk resource specific data.
session | Database session to use. | |
tr | Trunk resource to delete. |
OsbException | if trunk group assignments to the resource exists (active or not). |
bool OSB_DB::TrunkResourceGw::update | ( | const Session & | session, | |
const OSB_LIB::TrunkResource & | tr | |||
) | const [private] |
Update a trunk resource in the database.
bool OSB_DB::TrunkResourceGw::updTrkGroup | ( | const Session & | session, | |
const OSB_LIB::TrunkResource::Oid & | trId, | |||
const OSB_LIB::Id< OSB_LIB::TrunkGroup > & | tgId | |||
) | const [private] |
Deassign a trunk group from a trunk resource.
session | Database session to use. | |
trId | Trunk resource id. | |
tgId | Trunk group id. |
OsbException | if the trunk group is currently not assigned to the resource. |
friend class OSB_LIB::TrunkResource [friend] |
Allow trunk resource to calls its supporting functions.
Definition at line 68 of file trunkresource-gw.h.