OSB_LIB::AccessNumber Class Reference

Inheritance diagram for OSB_LIB::AccessNumber:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::AccessNumber:

Collaboration graph
[legend]
List of all members.

Detailed Description

Access number resource.

This is user created, non-prepaid, network specific, re-usable resource.

Definition at line 70 of file accessnumber.h.

Public Member Functions

Read access to data members:
Modify data members:
Database transactions:

Private Member Functions

Private Attributes

Static Private Attributes

Friends


Constructor & Destructor Documentation

OSB_LIB::AccessNumber::AccessNumber ( const Oid id = Oid()  ) 

Constructor with optional object id.

OSB_LIB::AccessNumber::AccessNumber ( const Number rn,
const Id< Network > &  nw 
)

Constructor with resource number and network id.

Parameters:
rn The resource number.
nw The id of the network that owns the access number resource.


Member Function Documentation

const std::string& OSB_LIB::AccessNumber::des (  )  const

Description.

bool OSB_LIB::AccessNumber::insert ( const OSB_DB::Session session  )  [virtual]

Insert an access number resource into the database.

Implements OSB_LIB::Resource.

bool OSB_LIB::AccessNumber::read ( const OSB_DB::Session session  )  [virtual]

Read an access number resource by its id.

Implements OSB_LIB::Resource.

bool OSB_LIB::AccessNumber::remove ( const OSB_DB::Session session  )  [virtual]

Delete an access number resource from the database.

Implements OSB_LIB::Resource.

void OSB_LIB::AccessNumber::setDes ( const std::string &  des  ) 

Set the description.

Type OSB_LIB::AccessNumber::typeId (  )  const [virtual]

Type of the access number resource: rtAnItem.

Implements OSB_LIB::Resource.

void OSB_LIB::AccessNumber::updData ( const OSB_DB::Session session  )  [virtual]

Update an access number resource in the database.

Implements OSB_LIB::Resource.

void OSB_LIB::AccessNumber::validateNumber (  )  const [private]

Verify whether the access number is valid.

Exceptions:
OsbException if the format is not valid.
An access number is valid if it only contains decimal digits.


Friends And Related Function Documentation

friend class OSB_DB::AccessNumberGw [friend]

The gateway must be able to set the data members.

Definition at line 72 of file accessnumber.h.


Member Data Documentation

std::string OSB_LIB::AccessNumber::des_ [private]

Description of the access number resource.

Definition at line 134 of file accessnumber.h.

const Type OSB_LIB::AccessNumber::typeId_ = rtAccessNumber [static, private]

Identification of the resource type.

Definition at line 75 of file accessnumber.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:10:28 2006 for OSB Library by  doxygen 1.4.7