OSB_DB::UimCardGw Struct Reference

List of all members.

Detailed Description

Database gateway: support for UIM cards.

Definition at line 69 of file uimcard-gw.h.

Public Member Functions


Member Function Documentation

bool OSB_DB::UimCardGw::fetch ( const Session session,
OSB_LIB::UimCard uim 
)

Read an UIM card from the database.

Parameters:
session Database session to use.
uim UIM card to read.
Returns:
true if the UIM card was found and read, else false.
Reads the UIM card data and the object id of the attached IMSI from the database.

OSB_LIB::Id<OSB_LIB::Device> OSB_DB::UimCardGw::fetchByUimId ( const Session session,
const std::string &  uimId 
)

Find an UIM card by its UIM ID.

Parameters:
session Database session to use.
uimId The UIM ID (not the object id) to search for.

void OSB_DB::UimCardGw::insert ( const OSB_DB::Session session,
OSB_LIB::UimCard uim 
)

Insert an UIM card into the database.

Parameters:
session Database session to use.
uim UIM card to insert.
Exceptions:
OsbException if the card's UIM ID is duplicate.
The IMSI of the UIM card must exist in the database before calling this function.

bool OSB_DB::UimCardGw::remove ( const OSB_DB::Session session,
const OSB_LIB::UimCard uim 
)

Delete an UIM card from the database.

Parameters:
session Database session to use.
uim UIM card to delete.
Returns:
true if successful, else false.

void OSB_DB::UimCardGw::search ( const Session session,
OSB_LIB::UimCardList dest 
)

Search UIM card in the database.

Parameters:
session Database session to use.
dest List of UIM cards to populate, its filter is use as selection criteria.

bool OSB_DB::UimCardGw::update ( const OSB_DB::Session session,
const OSB_LIB::UimCard uim 
)

Update an UIM card in the database.

Parameters:
session Database session to use.
uim UIM card to update.
Returns:
true if successful, else false.
Updates the card's pin 1 and 2.

Note:
It was an arbitrary decicion that only these 2 column should be updated for an UIM card.


The documentation for this struct was generated from the following file:
Generated on Sat Sep 2 14:09:02 2006 for OSB Library by  doxygen 1.4.7