

Definition at line 86 of file contract_i.h.
typedef std::list<Locators::Key> OSB_CORBA::ContractWriter_i::Servants [private] |
| OSB_CORBA::ContractWriter_i::ContractWriter_i | ( | AnCList_i & | anclist, | |
| const OSB_LIB::Contract & | contr | |||
| ) |
Contructor.
| OSB_CORBA::ContractWriter_i::~ContractWriter_i | ( | ) |
Destructor.
Deletes contr_, unregisters the pers. product and balance sheets servants (which will ultimately delete them).
| virtual AccountingType OSB_CORBA::ContractWriter_i::acctType | ( | ) | throw (CORBA::SystemException) [virtual] |
Return accounting type of contract.
| virtual PersProductWriter_ptr OSB_CORBA::ContractWriter_i::addPersProduct | ( | const ProductId & | id, | |
| const AssociateId & | userId, | |||
| CORBA::Boolean | noWait | |||
| ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Add a personalised product.
This function adds a new personalised product to the database.
| id | Unique product id. | |
| userId | Associate user of the personalised product. | |
| noWait | Don't wait for database locks? |
| OsbCorbaException | if status of contract is deactivated. |
| virtual BillCycleId OSB_CORBA::ContractWriter_i::bcId | ( | ) | throw (CORBA::SystemException) [virtual] |
Return unique if of billcycle of contract.
| CORBA::Boolean OSB_CORBA::ContractWriter_i::changeStatus | ( | StatusRequest & | status, | |
| CORBA::Boolean | noWait, | |||
| CfgErrorSeq_out | errors | |||
| ) | throw (CORBA::SystemException, OsbCorbaException) |
Set the preferred status of the contract.
| status | Preferred status to set, see below. | |
| noWait | Don't wait for database locks? | |
| errors | Gets encountered errors. |
| void OSB_CORBA::ContractWriter_i::checkRefUsage | ( | ) | throw (OsbCorbaException) |
Check if corba reference is used illegally.
This function checks that when a temporary contract reference is created via the getNewContract function, the corba reference is not used to invoke any operations that manipulate the data in the database.
| OsbCorbaException | if corba reference is used illegally. |
| virtual CORBA::Boolean OSB_CORBA::ContractWriter_i::commitChanges | ( | CORBA::Boolean | noWait | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Update changes to the contract permanently into database.
| virtual ContractId OSB_CORBA::ContractWriter_i::create | ( | const AssociateId & | owner, | |
| CORBA::Boolean | noWait | |||
| ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Add a new contract to list.
This function adds a new contract to the list of objects and the database. commitChanges() is not required after this function is called.
| owner | The owner of the contract. | |
| noWait | Don't wait for database locks? |
| OsbCorbaException | if operation fails at the gateway. |
| virtual DateTime* OSB_CORBA::ContractWriter_i::createdDate | ( | ) | throw (CORBA::SystemException) [virtual] |
Return date and time of creation.
| virtual Money* OSB_CORBA::ContractWriter_i::creditLimit | ( | ) | throw (CORBA::SystemException) [virtual] |
Return credit limit of contract.
| virtual Status OSB_CORBA::ContractWriter_i::effStatus | ( | ) | throw (CORBA::SystemException) [virtual] |
Return effective status of contract.
| virtual DateTime* OSB_CORBA::ContractWriter_i::effStatusDate | ( | ) | throw (CORBA::SystemException) [virtual] |
Return date and time at which effective status will be used.
| virtual BalanceSheetWriter_ptr OSB_CORBA::ContractWriter_i::getBalanceSheet | ( | CORBA::Boolean | noWait | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Retrieve open balance sheet of a contract.
| noWait | Don't wait for database locks? |
| OsbCorbaException | if operation to retrieve status changes fails at the database. |
| virtual PersProductWriter_ptr OSB_CORBA::ContractWriter_i::getPersProduct | ( | const PersProdId & | id, | |
| CORBA::Boolean | noWait | |||
| ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Retrieve a personalised product.
| id | Unique personalised product id. | |
| noWait | Don't wait for database locks? |
| OsbCorbaException | if personalised product cannot be found in contract. |
| virtual PersProdSeq* OSB_CORBA::ContractWriter_i::getPersProducts | ( | CORBA::Boolean | noWait | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Retrieve list of personalised products.
| Utf8String* OSB_CORBA::ContractWriter_i::getStatement | ( | const Utf8String & | fileInfo | ) | throw (CORBA::SystemException, OsbCorbaException) |
Retrieve a statement based on the month of input date.
| fileInfo | Full file path of statement. |
| OsbCorbaException | if file I/O operation fails. |
| InvoiceInfoSeq* OSB_CORBA::ContractWriter_i::getStatements | ( | StatementType | type, | |
| CORBA::Boolean | noWait | |||
| ) | throw (CORBA::SystemException, OsbCorbaException) |
Retrieve list of statments of a contract based on type of statement.
| type | Statement type criteria. | |
| noWait | Don't wait for database locks? |
| OsbCorbaException | if I/O operation or database operation fails. |
| virtual ContractId OSB_CORBA::ContractWriter_i::id | ( | ) | throw (CORBA::SystemException) [virtual] |
Return unique id of contract.
| const Locators::Key OSB_CORBA::ContractWriter_i::key | ( | ) | const [inline] |
| virtual AssociateId OSB_CORBA::ContractWriter_i::owner | ( | ) | throw (CORBA::SystemException) [virtual] |
Return contract owner.
This function will search for an existing associate servant that has been incarnated by the current contract. If such a servant exists, the servant is retrieved from the servant locator. If it does not exist, a new servant is incarnated.
| void OSB_CORBA::ContractWriter_i::ppChanged | ( | const OSB_DB::Session & | session | ) | [private] |
One the contract's pers. product has changed.
Replaces the contract in the A&C list with contr_.
| virtual Status OSB_CORBA::ContractWriter_i::prefStatus | ( | ) | throw (CORBA::SystemException) [virtual] |
Return preferred status of contract.
| virtual DateTime* OSB_CORBA::ContractWriter_i::prefStatusDate | ( | ) | throw (CORBA::SystemException) [virtual] |
Return date and time at which preferred status will be effective.
| virtual CORBA::Boolean OSB_CORBA::ContractWriter_i::removePersProduct | ( | const PersProdId & | id, | |
| CORBA::Boolean | noWait | |||
| ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Remove a personalised product.
This function removes a personalised product from the database permanently.
| id | Unique personalised product id. | |
| noWait | Don't wait for database locks? |
| OsbCorbaException | if operation fails at the gateway. |
| virtual StatusValue OSB_CORBA::ContractWriter_i::requestedStatus | ( | const DateTime & | ts | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Get the requested status for a given time.
| ts | Date and time to query, if not set system time is used. |
| OsbCorbaException | in case of a database error. |
| virtual CORBA::Boolean OSB_CORBA::ContractWriter_i::setBillCycle | ( | const BillCycleId & | bcId | ) | throw (CORBA::SystemException) [virtual] |
Set billcycle used in contract.
| virtual CORBA::Boolean OSB_CORBA::ContractWriter_i::setCreditLimit | ( | const Money & | credit | ) | throw (CORBA::SystemException) [virtual] |
Set credit limit used in contract.
| virtual CORBA::Boolean OSB_CORBA::ContractWriter_i::setTaxKey | ( | const TaxKeyId & | tkId | ) | throw (CORBA::SystemException) [virtual] |
Set tax key used in contract.
| StatusHistory* OSB_CORBA::ContractWriter_i::statusHistory | ( | const DateTime & | from, | |
| const DateTime & | to, | |||
| CORBA::Boolean | noWait | |||
| ) | throw (CORBA::SystemException, OsbCorbaException) |
Get status history for a period of time.
| from | Start period of list to retrieve (inclusive). | |
| to | End period of list to retrieve (exclusive). | |
| noWait | Don't wait for database locks? |
| OsbCorbaException | if operation to retrieve status changes fails at the database. |
| virtual TaxKeyId OSB_CORBA::ContractWriter_i::tkId | ( | ) | throw (CORBA::SystemException) [virtual] |
Return unique id of taxkey used in contract.
friend class PersProductWriter_i [friend] |
AnCList_i& OSB_CORBA::ContractWriter_i::ancList_ [private] |
const std::string OSB_CORBA::ContractWriter_i::IFC [static] |
Definition at line 90 of file contract_i.h.
1.4.7