Definition at line 58 of file e164-gw.h.
bool OSB_DB::E164Gw::bothDateInFuture | ( | const Session & | session, | |
const OSB_LIB::E164::Oid & | oid | |||
) | [private] |
Ensure both start and end dates are in future.
This function checks whether both released start date and released end date of a E164 are in the future. For end date, it can be null.
session | Database session. | |
oid | Object id of the E164 to be checked. |
OsbException | for all database errors. |
OSB_LIB::ObjectStatus OSB_DB::E164Gw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::E164 & | e164 | |||
) | [private] |
Check the current object version.
session | Database session. | |
e164 | E164 object that the object version is to be checked. |
OsbException | for any database errors. |
bool OSB_DB::E164Gw::delE164 | ( | const Session & | session, | |
OSB_LIB::E164 & | e164 | |||
) | [private] |
Delete a E164.
This function will delete a E164 entry from the database base on the passed in E164 object. This function will find the database entry with the same object id and object version when performing the deletion. After a successful deleteion in the database, this function will unset the object id of the passed in E164 object.
session | Database session. | |
e164 | E164 object to be deleted. |
OsbException | for the following errors:
|
bool OSB_DB::E164Gw::fetch | ( | const Session & | session, | |
OSB_LIB::E164 & | e164 | |||
) |
Populate a E164 object with data.
This function accept an E164 object with object id set. With this oid, it will populate all other attributes of the object with the data in the database.
session | Database session. | |
e164 | E164 object to be populated. |
OsbException | for any database errors. |
long OSB_DB::E164Gw::fetch | ( | const Session & | session, | |
OSB_LIB::E164s & | e164s | |||
) |
Get a list of all available E164s.
This function retrieves all available E164s from database.
session | Database session. | |
e164s | Container to store all the E164s retrieved. |
OsbException | for any database errors. |
OSB_LIB::CfgStatus OSB_DB::E164Gw::getStatus | ( | const Session & | session, | |
const OSB_LIB::E164::Oid & | oid | |||
) | [private] |
Get the status of a E164 in database.
session | Database session. | |
oid | Object id of the E164 to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::E164Gw::gracePeriodExpired | ( | const Session & | session, | |
const OSB_LIB::E164::Oid & | oid | |||
) | [private] |
Ensure the grace period for a E164 has expired.
This function will ensure the grace period for a E164 has expired.
session | Database session. | |
oid | Object id of the E164 to be checked. |
OsbException | for any database errors. |
bool OSB_DB::E164Gw::hasOverlapE164 | ( | const Session & | session, | |
const OSB_LIB::E164::Oid & | oid | |||
) | [private] |
Ensure no two E164s that is released at the same time.
This function checks all release E164s to ensure that no two E164 (with same value) is in status released at any time.o
session | Database session. | |
oid | Object id of the E164 to be checked. |
OsbException | for any database errors. |
bool OSB_DB::E164Gw::hasReleasedCp | ( | const Session & | session, | |
const OSB_LIB::E164::Oid & | oid | |||
) | [private] |
Ensure there is a released connection point assigned.
This function check whether the E164 has a released connection point assigned. The connection point must have been released when releasing a E164. This function will also ensure that the release period of the E164 is within the release period of the connection point configured.
session | Database session. | |
oid | Object id of the E164 to be checked. |
OsbException | for any database errors. |
bool OSB_DB::E164Gw::insE164 | ( | const Session & | session, | |
OSB_LIB::E164 & | e164 | |||
) | [private] |
Add a new E164.
Before the function call, the E164 object do not have its object id. After a successful function call, the object id will be set and the object version will be set to 1.
session | Database session. | |
e164 | New E164 object to be added. |
OsbException | for the following errors:
|
bool OSB_DB::E164Gw::noDateConflict | ( | const Session & | session, | |
const OSB_LIB::E164::Oid & | oid | |||
) | [private] |
Ensure no conflict for the start and end date.
This function will ensure that end date (if set), is later than the start date.
session | Database session. | |
oid | Object id of the E164 to be checked. |
OsbException | for any database errors. |
bool OSB_DB::E164Gw::updE164 | ( | const Session & | session, | |
OSB_LIB::E164 & | e164 | |||
) | [private] |
Update a E164.
The function will modify a database entry base on the passed in E164 object. It will find the database entry that has the same object id and object version with the passed in E164, then update the found entry with the data contained in the passed in E164 object.
session | Database session. | |
e164 | Updated E164 object. |
OsbException | for the following errors:
|
void OSB_DB::E164Gw::updStatus | ( | const Session & | session, | |
OSB_LIB::E164 & | e164 | |||
) | [private] |
Change the status of a E164.
This function changes the status of a E164 with the given object id to the status given in the argument.
session | Database session to use. | |
e164 | E164 to update, its new status must be set. |
friend class OSB_LIB::E164 [friend] |