OSB_DB::InventoryPoolGw Struct Reference

List of all members.

Detailed Description

Database gateway to INVENTORY_POOL.

Definition at line 66 of file inventorypool-gw.h.

Public Member Functions


Member Function Documentation

void OSB_DB::InventoryPoolGw::fetch ( const Session session,
std::list< OSB_LIB::InventoryPool > &  dest 
)

Read all inventory pools.

Parameters:
session Database session to use.
dest List to populate, it should be cleared before calling the function.

bool OSB_DB::InventoryPoolGw::fetch ( const Session session,
OSB_LIB::InventoryPool pool 
)

Read an inventory pool.

Parameters:
session Database session to use.
pool Inventory pool to read, its object id is used as selection criteria.
Returns:
true if the pool was found and read, else false.

void OSB_DB::InventoryPoolGw::insert ( const OSB_DB::Session session,
OSB_LIB::InventoryPool pool 
)

Insert an inventory pool to the database.

Parameters:
session Database session to use.
pool Inventory pool to insert.
Exceptions:
OsbException if a pool with the same name already exists.

bool OSB_DB::InventoryPoolGw::remove ( const OSB_DB::Session session,
const OSB_LIB::InventoryPool pool 
)

Remove an inventory pool from the database.

Parameters:
session Database session to use.
pool Inventory pool to delete.
Returns:
if the pool was deleted, else false.
Exceptions:
OsbException if child records exist.

void OSB_DB::InventoryPoolGw::update ( const OSB_DB::Session session,
const OSB_LIB::InventoryPool pool 
)

Update an inventory pool in the database.

Parameters:
session Database session to use.
pool Inventory pool to update.
Exceptions:
OsbException if a pool with the same name already exists.


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