Skip to content

SQL-011: Insert IMAGE row without external sequence

This statement is an alternative INSERT for the IMAGE table that uses image_seq.nextval inline in the VALUES clause rather than relying on a separately generated sequence value. It was not referenced by any live BeforeInsert method in the analysed source and may be dead code**.

Classification

Field Value
SQL ID SQL-011
Operation type Create
Execution method Inline SQL
Database Oracle
Schema [unqualified]**
Command type Text**
Business object clsImageIdx
Criteria property InsertSQLNoSeq
Lifecycle method BeforeInsert (not referenced)**

Parameters

No parameters are bound by a live AddParm call associated with this statement**.

Tables

Table Access Columns used
IMAGE INSERT Same columns as SQL-010; IMAGE_SEQ_NUM uses inline image_seq.nextval

Sample SQL

Insert into IMAGE (
    CLAIM_ID, CLAIM_NUM, COMMENT_TEXT,
    CREATE_DATE, CREATE_USER, DISCOVERY_FLAG,
    DISPLAY_FIELD_1, DISPLAY_FIELD_2, DISPLAY_FIELD_3, DISPLAY_SORT_NUM,
    DOCUMENT_DATE, IMAGE_CATEGORY_CODE, IMAGE_DELETE_CODE,
    IMAGE_DOCUMENT_NAME_CODE, IMAGE_DOCUMENT_TYPE_CODE, IMAGE_FILE_CODE,
    IMAGE_SEQ_NUM, POLICY_NUM, RECEIVED_DATE, SECURITY_LEVEL_NUM,
    TOWID, UPDATE_DATE,
    EXTERNAL_VIEW_CODE, EXTERNAL_VIEW_UPDATE_DATE,
    SYSTEM_GENERATED_FLAG, UPDATE_USER
) Values (
    :ClaimID, :ClaimNum, :CommentText,
    sysdate, :CreateUser, :DiscoveryFlag,
    :DisplayField1, :DisplayField2, :DisplayField3, :DisplaySortNum,
    :DocumentDate, :ImageCategoryCode, :ImageDeleteCode,
    :ImageDocumentNameCode, :ImageDocumentTypeCode, :ImageFileCode,
    image_seq.nextval, :PolicyNum, :ReceivedDate, :SecurityLevelNum,
    :Towid, sysdate,
    :ExternalViewCode, :ExternalViewUpdateDate,
    :SystemGeneratedFlag, :UpdateUser
)

Operations and processes

Note: Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business\SAIF.Business.Imaging\clsImageIdx.vb