
In OSB all articles hold in the inventory have a pool assigned.
This can be a physical stock or a logical pool, e.g., E.164 phone numbers.
OSB users may use goods only from one of pools that is assigned to them.
Definition at line 76 of file inventorypool.h.
| typedef Id<InventoryPool> OSB_LIB::InventoryPool::Oid |
Constructor with optional object id.
| const std::string& OSB_LIB::InventoryPool::des | ( | ) | const |
Description of the pool.
| const std::string& OSB_LIB::InventoryPool::name | ( | ) | const |
Name of the pool.
| Oid OSB_LIB::InventoryPool::oid | ( | ) | const |
Object id of the pool.
| void OSB_LIB::InventoryPool::read | ( | const OSB_DB::Session & | session | ) |
Read the pool from the database.
| session | Database session to use. |
| OsbException | if the pool as identified by oid() does not exist in the database. |
| static void OSB_LIB::InventoryPool::read | ( | const OSB_DB::Session & | session, | |
| std::list< InventoryPool > & | dest | |||
| ) | [static] |
Read all inventory pools from the database.
| session | Database session to use. | |
| dest | List to populate, it is cleared before reading the pools. |
| void OSB_LIB::InventoryPool::remove | ( | const OSB_DB::Session & | session | ) |
Remove the pool from the database.
| session | Database session to use. |
| OsbException | if other object depend on the pool. |
| void OSB_LIB::InventoryPool::save | ( | const OSB_DB::Session & | session | ) |
Save the pool in the database.
| session | Database session to use. |
| OsbException | if a pool with the same name already exists. |
| void OSB_LIB::InventoryPool::setDes | ( | const std::string | des | ) |
Set the pool description.
| des | New description of the pool. |
| OsbException | if des is too long. |
| void OSB_LIB::InventoryPool::setName | ( | const std::string & | name | ) |
Set the pool name.
| name | New name of the pool. |
| OsbException | if name is empty. | |
| OsbException | if name is too long. |
friend class OSB_DB::InventoryPoolGw [friend] |
std::string OSB_LIB::InventoryPool::des_ [private] |
std::string OSB_LIB::InventoryPool::name_ [private] |
Oid OSB_LIB::InventoryPool::oid_ [private] |
1.4.7