This is the gateway for the class NumberAnalyzer for performing all the database operations.
Definition at line 57 of file numberanalyzer-gw.h.
void OSB_DB::NumberAnalyzerGw::delNumberAnalyzer | ( | const Session & | session, | |
OSB_LIB::NumberAnalyzer & | numberAnalyzer | |||
) | const [private] |
Remove a number analyzer object from database.
This function takes the object id and object version from the number analyzer object passed in to remove the corresponding entry from database.
If the object version differs, an OsbException will be thrown. If the object does not exist in database, nothing will be performed (no error or exception will be raised).
On successful deletion, the object id of the passed in number analyzer object will be unset.
session | Database session used. | |
numberAnalyzer | Number analyzer object to be deleted. |
bool OSB_DB::NumberAnalyzerGw::fetch | ( | const Session & | session, | |
OSB_LIB::NumberAnalyzer & | numberAnalyzer | |||
) | const |
Populate the passed in number analyzer object.
The passed in number analyzer object must have its object id set. The database entry retrieved will based on the object id. Upon successful completion of the function, the passed in object will have all its data members overwritten with the data in database.
session | Database session used. | |
numberAnalyzer | NumberAnalyzer object to be populated. |
long OSB_DB::NumberAnalyzerGw::fetch | ( | const Session & | session, | |
OSB_LIB::NumberAnalyzerList & | numberAnalyzers | |||
) | const |
Retrieve all number analyzer from database.
This function retrieves all information regarding number analyzer objects from database. It then create a list of number analyzer objects and put them in the STL container passed in.
session | Database session used. | |
numberAnalyzers | STL container for the list of number analyzer created. |
void OSB_DB::NumberAnalyzerGw::insNumberAnalyzer | ( | const Session & | session, | |
OSB_LIB::NumberAnalyzer & | numberAnalyzer | |||
) | const [private] |
Insert the number analyzer object into database.
This function will use the data contained within the number analyzer object to create a new entry in database. Upon successful insertion, an unique object id will be created. The function will populate the object passed in with the unique object id it received from database.
session | Database session used. | |
numberAnalyzer | Newly created number analyzer object that is to be inserted into database. |
OsbException | if the newly created number analyzer is assigned to a trunk group that already owns a number analyzer. |
void OSB_DB::NumberAnalyzerGw::updNumberAnalyzer | ( | const Session & | session, | |
OSB_LIB::NumberAnalyzer & | numberAnalyzer | |||
) | const [private] |
Update the information of a number analyzer in database.
This function will take the data from the passed in object and overwrite the corresponding entry in database based on the object id.
session | Database session used. | |
numberAnalyzer | Number analyzer object that carries the new data to be updated into database. |
OsbException | if:
|
friend class OSB_LIB::NumberAnalyzer [friend] |
Only number analyzer is allowed to invoke private functions.
Definition at line 59 of file numberanalyzer-gw.h.