OSB_LIB::Pricelist Class Reference

Collaboration diagram for OSB_LIB::Pricelist:

Collaboration graph
[legend]
List of all members.

Detailed Description

The class Pricelist stores the name and description of a pricelist.

Definition at line 355 of file pricelist.h.

Public Types

Public Member Functions

Read access to data members.
Modify data members

Private Member Functions

Private Attributes

Friends


Member Typedef Documentation

typedef Id<Pricelist> OSB_LIB::Pricelist::Oid

Type-safe, unique id of price list.

Definition at line 362 of file pricelist.h.


Constructor & Destructor Documentation

OSB_LIB::Pricelist::Pricelist (  )  [inline]

Default constructor.

Definition at line 365 of file pricelist.h.

OSB_LIB::Pricelist::Pricelist ( const Oid id,
const std::string &  name,
const std::string &  des 
) [inline]

Copy, destructor and assignment by compiler.

Definition at line 368 of file pricelist.h.


Member Function Documentation

void OSB_LIB::Pricelist::checkObjVs ( const OSB_DB::Session session  )  [private]

Check that the object has the latest object version.

const std::string& OSB_LIB::Pricelist::desc (  )  const [inline]

Description of pricelist.

Definition at line 381 of file pricelist.h.

References des_.

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

Insert a pricelist into the database.

Parameters:
session Database session.
Returns:
True if price list was inserted successfully.

const std::string& OSB_LIB::Pricelist::name (  )  const [inline]

Name of pricelist.

Definition at line 379 of file pricelist.h.

References name_.

long OSB_LIB::Pricelist::objVs (  )  const [inline]

Object version of pricelist.

Definition at line 383 of file pricelist.h.

References objVs_.

const Oid& OSB_LIB::Pricelist::oid (  )  const [inline]

Unique id of a pricelist.

Definition at line 377 of file pricelist.h.

References id_.

bool OSB_LIB::Pricelist::read ( const OSB_DB::Session session  )  [private]

Read a pricelist from the database.

Parameters:
session Database session.
Returns:
True if price list was read successfully.

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

Remove a pricelist into the database.

Parameters:
session Database session.
Returns:
True if price list was removed successfully.

void OSB_LIB::Pricelist::setDesc ( const std::string &  desc  )  [inline]

Set description of pricelist.

Definition at line 391 of file pricelist.h.

References des_.

void OSB_LIB::Pricelist::setName ( const std::string &  name  )  [inline]

Set name of pricelist.

Definition at line 389 of file pricelist.h.

References name_.

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

Update a pricelist into the database.

Parameters:
session Database session.
Returns:
True if price list was updated successfully.


Friends And Related Function Documentation

friend class OSB_DB::PricelistGw [friend]

Allow gateway access to private members.

Definition at line 359 of file pricelist.h.

friend class ProductCatalogue [friend]

Allow product catalogue to access read and insert function.

Definition at line 357 of file pricelist.h.


Member Data Documentation

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

Description of price list.

Definition at line 431 of file pricelist.h.

Referenced by desc(), and setDesc().

Oid OSB_LIB::Pricelist::id_ [private]

Price list id.

Definition at line 429 of file pricelist.h.

Referenced by oid().

std::string OSB_LIB::Pricelist::name_ [private]

Name of price list.

Definition at line 430 of file pricelist.h.

Referenced by name(), and setName().

long OSB_LIB::Pricelist::objVs_ [private]

Object version of pricelist.

Definition at line 432 of file pricelist.h.

Referenced by objVs().


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