Definition at line 58 of file network-gw.h.
OSB_LIB::ObjectStatus OSB_DB::NetworkGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::Network & | net | |||
) | [private] |
Check the current object version of network.
session | Database session to use. | |
net | object where the object version is to be checked. |
long OSB_DB::NetworkGw::fetch | ( | const Session & | session, | |
OSB_LIB::Networks & | netList | |||
) |
Read all networks.
It will also retrieve network element list for every network.
session | Database session to use. | |
netList | List of networks. |
bool OSB_DB::NetworkGw::fetch | ( | const Session & | session, | |
OSB_LIB::Network & | net | |||
) |
Read a network from the database.
The function (re)reads an existing network from the database. It populates data members if a matching row is found. It will also retrieve network element list.
session | Database session to use. | |
net | Network to read. |
bool OSB_DB::NetworkGw::insert | ( | const Session & | session, | |
OSB_LIB::Network & | net | |||
) | [private] |
Insert a network to the database.
Before the function call, the network 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. | |
net | Ref to network to be inserted. |
OsbException |
|
bool OSB_DB::NetworkGw::remove | ( | const Session & | session, | |
OSB_LIB::Network & | net | |||
) | [private] |
Delete a network from the database.
Object id of the network passed in will be unset.
session | Database session to use. | |
net | Network to be deleted. |
OsbException |
|
bool OSB_DB::NetworkGw::update | ( | const Session & | session, | |
OSB_LIB::Network & | net | |||
) | [private] |
Update a network to the database.
ObjVs will be set after the successful update.
session | Database session to use. | |
net | Ref to network to be updated. |
OsbException |
|
friend class OSB_LIB::Network [friend] |