Skip to content

SQL-357: Update RctPolicySelected via ModifyRctPolicySelected

This ORM statement updates a RCT_POLICY_SELECTED row's status, client and transmission fields, executed from Services/SAIF.Services/Rct/RctPolicySelectedService.cs (L70). The SQL below is inferred from the IRepository<RctPolicySelected>.Update call and the RctPolicySelected NHibernate mapping, not literal SQL text in source.

Classification

Field Value
SQL ID SQL-357
Operation type Update
Execution method ORM (IRepository.Update)
Database Oracle
Schema [unqualified]**
Command type N/A (ORM-generated)
Business object RctPolicySelected
Criteria property N/A — ORM
Lifecycle method ModifyRctPolicySelected

Parameters

Parameter Direction Type Max length Description
:PolicyNumber Input long N/A Identifier of the RctPolicySelected being updated (POLICY_NUM)
:PolicyPeriodEffectiveDate Input DateTime N/A New value of POLICY_PERIOD_EFF_DATE
:PolicyStatusCode Input string N/A New value of POLICY_STATUS_CODE
:TransmittedDate Input DateTime N/A New value of TRANSMITTED_DATE
:ClientUniqueId Input long N/A New value of CLIENT_UNIQUE_ID
:CreateDate Input DateTime N/A New value of CREATE_DATE
:CreateUser Input string N/A New value of CREATE_USER
:UpdateDate Input DateTime? N/A New value of UPDATE_DATE
:UpdateUser Input string N/A New value of UPDATE_USER

Tables

Table Access Columns used
RCT_POLICY_SELECTED UPDATE POLICY_NUM, POLICY_PERIOD_EFF_DATE, POLICY_STATUS_CODE, TRANSMITTED_DATE, CLIENT_UNIQUE_ID, CREATE_DATE, CREATE_USER, UPDATE_DATE, UPDATE_USER

LINQ statement

Source: Services/SAIF.Services/Rct/RctPolicySelectedService.cs:70

// Services/SAIF.Services/Rct/RctPolicySelectedService.cs:70
_unitOfWork.GetRepository<DataRct.RctPolicySelected>().Update(rctPolicySelected);

Sample SQL

Inferred SQL: This SQL was inferred from the LINQ statement above and the NHibernate mappings. It is not concrete SQL from source code; NHibernate generates the executed statement at runtime, so aliases, column order, join syntax, and bind-parameter names may differ.

-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
UPDATE RCT_POLICY_SELECTED
SET
  POLICY_PERIOD_EFF_DATE = :PolicyPeriodEffectiveDate,
  POLICY_STATUS_CODE = :PolicyStatusCode,
  TRANSMITTED_DATE = :TransmittedDate,
  CLIENT_UNIQUE_ID = :ClientUniqueId,
  CREATE_DATE = :CreateDate,
  CREATE_USER = :CreateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER = :UpdateUser
WHERE POLICY_NUM = :PolicyNumber

Translation notes:

  • No Version(...) mapping, so the UPDATE has no optimistic-concurrency predicate.
  • Update(entity) emits an explicit UPDATE of every updatable mapped column (no DynamicUpdate() on this map).

Operations and processes

Sources

  • Services/SAIF.Services/Rct/RctPolicySelectedService.cs (L70)