SQL-041 Update a benefit schedule (twin class)
Updates the next issue date and remaining payment count on a benefit-schedule row; identical logic to clsActiveBenefitSchedule.*
Classification
| Field |
Value |
| SQL ID |
SQL-041 |
| Operation type |
Update |
| Execution method |
Inline SQL |
| Database |
Oracle |
| Schema |
[unqualified]** |
| Command type |
Text |
| Business object |
clsBenefitSchedule |
| Criteria property |
UpdateSQL |
| Lifecycle method |
BeforeUpdate |
Parameters
| Parameter |
Direction |
Type |
Max length |
Description |
NextIssueDate |
Input |
Date |
— |
Next scheduled issue date (added twice) |
RemainingPaymentCount |
Input |
Decimal |
— |
Remaining payments |
UpdateUser |
Input |
String |
30 |
Auditing user |
ClaimID |
Input |
Decimal |
— |
Row key (added twice) |
BenefitPaymentSeqNum |
Input |
Decimal |
— |
Row key |
UpdateNum |
Input |
Decimal |
— |
Optimistic-concurrency check value |
Tables
| Table |
Access |
Columns used |
| CL_BENEFIT_SCHEDULE |
UPDATE |
NEXT_ISSUE_DATE, REMAINING_PAYMENT_COUNT, UPDATE_NUM, UPDATE_USER_ID, UPDATE_DATE, CLAIM_ID, BENEFIT_PAYMENT_SEQ_NUM |
Sample SQL
-- Update benefit schedule
Update CL_BENEFIT_SCHEDULE
Set NEXT_ISSUE_DATE = :NextIssueDate,
REMAINING_PAYMENT_COUNT = :RemainingPaymentCount,
UPDATE_NUM = UPDATE_NUM + 1,
UPDATE_USER_ID = :UpdateUser,
UPDATE_DATE = SYSDATE
Where CLAIM_ID = :ClaimID
And BENEFIT_PAYMENT_SEQ_NUM = :BenefitPaymentSeqNum
And UPDATE_NUM = :UpdateNum
Business rules
Sources
- SAIF.Business.Claim/clsBenefitSchedule.vb (not compiled)