This interface provides read and write access to the product.
Definition at line 325 of file product_i.h.
OSB_CORBA::ProductWriter_i::ProductWriter_i | ( | Product_i * | prodi, | |
const OSB_LIB::Product * | prod, | |||
ProductCatalogue_i & | pcati, | |||
PortableServer::POA_ptr | ppPoa | |||
) |
Constructor.
virtual OSB_CORBA::ProductWriter_i::~ProductWriter_i | ( | ) | [virtual] |
Destructor.
When the destructor is called, the productwriter's servant list is emptied and all the writable part servants are destroyed.
virtual ProductPartWriter_ptr OSB_CORBA::ProductWriter_i::addPart | ( | const PpTypeId & | pptypeid | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Adds a product part to the product.
pptypeid | Type of the product part. |
OsbCorbaException |
|
virtual ProductPartWriter_ptr OSB_CORBA::ProductWriter_i::addPart | ( | const PpTypeId & | pptypeid, | |
const OSB_LIB::ProductNode::Oid & | parentId | |||
) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Adds a product part to a specified parent.
pptypeid | Type of the product part. | |
parentId | Id of the parent node. |
OsbCorbaException |
|
virtual void OSB_CORBA::ProductWriter_i::checkDowncast | ( | OSB_LIB::ProductItem * | item, | |
const std::string & | module | |||
) | throw (OsbCorbaException) [private, virtual] |
Checks that the downcasting of product item is successful.
This method simply checks if the input parameter is null.
item | The product item (after downcast). | |
module | The calling module. |
OsbCorbaException |
|
virtual void OSB_CORBA::ProductWriter_i::commitChanges | ( | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
commit changes made to the productwriter.
OsbCorbaException |
|
ProductPartWriter_ptr OSB_CORBA::ProductWriter_i::createPartWriter | ( | OSB_LIB::ProductNode & | node | ) | throw (OsbCorbaException) [private] |
Creates a ProductPartWriter_i of the correct type.
node | The product node. |
OsbCorbaException |
|
ProductPartWriter_ptr OSB_CORBA::ProductWriter_i::getPartWriter | ( | const ProductPartId & | id | ) | throw (OsbCorbaException) [private] |
Get a reference to a product part writer.
id | Id of the product part. |
OsbCorbaException |
|
virtual ProductPartWriter_ptr OSB_CORBA::ProductWriter_i::getWritablePart | ( | const ProductPartId & | id | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Get a writable product part.
id | Id of the product part. |
OsbCorbaException |
|
virtual OSB_LIB::PcatLockMgr::ProductRg OSB_CORBA::ProductWriter_i::lockProduct | ( | ) | throw (OSB_CORBA::OsbCorbaException) [private, virtual] |
Overrides the `lockProduct()' method of Product_i.
OsbCorbaException |
|
Reimplemented from OSB_CORBA::Product_i.
virtual void OSB_CORBA::ProductWriter_i::removePart | ( | const ProductPartId & | id | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Removes a product part.
id | Id of the product part. |
OsbCorbaException |
|
virtual void OSB_CORBA::ProductWriter_i::setDesc | ( | const Utf8String & | desc | ) | throw (CORBA::SystemException) [virtual] |
Sets the description the productwriter.
desc | Description of the productwriter. |
virtual void OSB_CORBA::ProductWriter_i::setEndDate | ( | const Date & | end | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Sets the end date of the productwriter.
end | End date of the productwriter. |
virtual void OSB_CORBA::ProductWriter_i::setName | ( | const Utf8String & | name | ) | throw (CORBA::SystemException) [virtual] |
Sets the name of the productwriter.
name | Name of the productwriter. |
virtual void OSB_CORBA::ProductWriter_i::setStartDate | ( | const Date & | start | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Sets the start date of the productwriter.
start | Start date of the productwriter. |
const std::string OSB_CORBA::ProductWriter_i::IFC [static] |
String representation for ProductWriter_i.
Reimplemented from OSB_CORBA::Product_i.
Definition at line 332 of file product_i.h.
Product_i* OSB_CORBA::ProductWriter_i::prodi_ [private] |
PortableServer::POA_ptr OSB_CORBA::ProductWriter_i::writerPoa_ [private] |