Definition at line 305 of file network-gw.h.
OSB_DB::TrunkGroupGw::TrunkGroupGw | ( | const TrunkGroupGw & | rhs | ) | [private] |
Prevent copying: Copy constructor not implemented.
OSB_DB::TrunkGroupGw::TrunkGroupGw | ( | ) | [inline] |
OSB_LIB::ObjectStatus OSB_DB::TrunkGroupGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::TrunkGroup & | trkGroup | |||
) | [private] |
Check the current object version of trunk group.
session | Database session to use. | |
trkGroup | Object where the object version is to be checked. |
long OSB_DB::TrunkGroupGw::fetch | ( | const Session & | session, | |
const OSB_LIB::NetworkElement::Oid & | elementId, | |||
OSB_LIB::TrunkGroups & | trkGroups | |||
) |
Read trunk groups of a network element.
session | Database session to use. | |
elementId | Network element to read for. | |
trkGroups | STL container to store the trunk groups. |
bool OSB_DB::TrunkGroupGw::fetch | ( | const Session & | session, | |
OSB_LIB::TrunkGroup & | trkGroup | |||
) |
Read a trunk group from the database.
The function (re)reads an existing trunk group from the database. It populates data members if a matching row is found.
session | Database session to use. | |
trkGroup | Trunk group to read for. |
std::auto_ptr<OSB_LIB::NumberAnalyzer> OSB_DB::TrunkGroupGw::getRelatedNumAnalyzer | ( | const Session & | session, | |
OSB_LIB::TrunkGroup & | trkGroup | |||
) | [private] |
Get the number analyzer assigned to a trunk group.
This function will search through the database table and get the number analyzer assigned to the passed in trunk group object.
session | Database session to use. | |
trkGroup | Trunk group where all assigned number analyzer will be deleted. |
bool OSB_DB::TrunkGroupGw::insert | ( | const Session & | session, | |
OSB_LIB::TrunkGroup & | trkGroup | |||
) | [private] |
Insert a trunk group to the database.
Before the function call, the trunk group 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. | |
trkGroup | Ref to trunk group to be inserted. |
OsbException |
|
TrunkGroupGw& OSB_DB::TrunkGroupGw::operator= | ( | const TrunkGroupGw & | rhs | ) | [private] |
Prevent assignment: Assignment not implemented.
bool OSB_DB::TrunkGroupGw::remove | ( | const Session & | session, | |
OSB_LIB::TrunkGroup & | trkGroup | |||
) | [private] |
Delete a trunk group from the database.
Object id of the trunk group passed in will be unset.
session | Database session to use. | |
trkGroup | Trunk group to be deleted. |
OsbException |
|
bool OSB_DB::TrunkGroupGw::update | ( | const Session & | session, | |
OSB_LIB::TrunkGroup & | trkGroup | |||
) | [private] |
Update a trunk group to the database.
ObjVs will be set after the successful update.
session | Database session to use. | |
trkGroup | Ref to trunk group to be updated. |
OsbException |
|
friend class OSB_LIB::TrunkGroup [friend] |