OSB_LIB::ScSystem Class Reference

Inheritance diagram for OSB_LIB::ScSystem:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Service class system is used to group service classes.

This object contains a number of service classes. This object will also contain at least one object of service class system version. A used service that comes in should match only one of the service tuple from one of the service class system version that resides in this object.

Definition at line 288 of file serviceclass.h.

Public Types

Public Member Functions

Private Member Functions

Modifying database operations:

Private Attributes

Friends


Member Typedef Documentation

typedef Id<ScSystem> OSB_LIB::ScSystem::Oid

Typesave object indentification.

Definition at line 302 of file serviceclass.h.


Constructor & Destructor Documentation

OSB_LIB::ScSystem::ScSystem ( const Oid oid = Oid()  )  [inline]

Constructor with with optional object id.

Definition at line 305 of file serviceclass.h.


Member Function Documentation

bool OSB_LIB::ScSystem::insert ( const OSB_DB::Session session  )  [private]

Insert a service class system into database.

A new object is inserted. All attribute of the object has been set except object id. The object id will only be set by the function if the insertion is successful.

Parameters:
session Database session used.
Returns:
true if success else false.
Exceptions:
OsbException for the following errors:
  • Duplicate name.

const Oid& OSB_LIB::ScSystem::oid (  )  const

Return the object id of this object.

bool OSB_LIB::ScSystem::read ( const OSB_DB::Session session  ) 

Read a service class system from database.

The object id is used to gather other info from database and then populate the object's service tuple list.

Parameters:
session Database session object.
Returns:
true if success else false.

bool OSB_LIB::ScSystem::remove ( const OSB_DB::Session session  )  [private]

Remove a service class system from database.

After the function call, oid of this object will be unset to indicate that there is no such entry anymore in the database.

Parameters:
session Database session used.
Returns:
true if success else false.
Exceptions:
OsbException for the following errors:
  • Object to be removed not found.

const std::set<ServiceClass::Oid> OSB_LIB::ScSystem::supportedSc (  )  const

Get list of supported service classes.

Returns:
The set of service classes supported by any version of the SC system that is not editable.
It is empty if no freezed version exists.

bool OSB_LIB::ScSystem::update ( const OSB_DB::Session session  )  [private]

Update a service class system in the database.

Old entry in the database identify by the object id will be replaced with the new data from this object.

Parameters:
session Database session used.
Returns:
true if success else false.
Exceptions:
OsbException for the following errors:
  • Object does not exist.


Friends And Related Function Documentation

friend struct OSB_DB::ScSystemGw [friend]

The database gateway needs to populate data members after construction.

Definition at line 293 of file serviceclass.h.

friend class TariffCatalogue [friend]

Tariff Catalogue is the only object that is allow to invoke the private functions of this class.

Definition at line 299 of file serviceclass.h.


Member Data Documentation

Oid OSB_LIB::ScSystem::oid_ [private]

Database id of this object.

Definition at line 375 of file serviceclass.h.


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