Definition at line 169 of file network-gw.h.
OSB_LIB::ObjectStatus OSB_DB::NetworkElementGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::NetworkElement & | element | |||
) | [private] |
Check the current object version of network element.
session | Database session to use. | |
element | Object where the object version is to be checked. |
long OSB_DB::NetworkElementGw::fetch | ( | const Session & | session, | |
const OSB_LIB::Network::Oid & | netId, | |||
OSB_LIB::NetworkElements & | elements | |||
) |
Read network elements based on a network id.
It will also retrieve trunk group list for every element.
session | Database session to use. | |
netId | Object id of network. | |
elements | List of network elements to read for. |
bool OSB_DB::NetworkElementGw::fetch | ( | const Session & | session, | |
OSB_LIB::NetworkElement & | element | |||
) |
Read a network element from the database.
The function (re)reads an existing network element from the database base on the object id in element. It populates data members if a matching row is found. It will also retrieve trunk group list.
session | Database session to use. | |
element | Network element to read. |
std::auto_ptr<OSB_LIB::NumberAnalyzer> OSB_DB::NetworkElementGw::getRelatedNumAnalyzer | ( | const Session & | session, | |
OSB_LIB::NetworkElement & | nwElement | |||
) | [private] |
Get the number analyzer assigned to a network element.
This function will search through the database table and get the number analyzer assigned to the passed in network element object.
session | Database session to use. | |
nwElement | Network element that owns the number analyzer. |
bool OSB_DB::NetworkElementGw::insert | ( | const Session & | session, | |
OSB_LIB::NetworkElement & | element | |||
) | [private] |
Insert a network element to the database.
Before the function call, the network element 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. | |
element | Ref to network element to be inserted. |
OsbException |
|
bool OSB_DB::NetworkElementGw::remove | ( | const Session & | session, | |
OSB_LIB::NetworkElement & | element | |||
) | [private] |
Delete a network element from the database.
Object id of the network element passed in will be unset.
session | Database session to use. | |
element | Network element to be deleted. |
OsbException |
|
bool OSB_DB::NetworkElementGw::update | ( | const Session & | session, | |
OSB_LIB::NetworkElement & | element | |||
) | [private] |
Update a network element to the database.
ObjVs will be set after the successful update.
session | Database session to use. | |
element | Ref to network element to be updated. |
OsbException |
|
friend class OSB_LIB::NetworkElement [friend] |