SDM_REFERENCE

This table stores references for different objects of Supplemental Data Manager/Enterprise Journals, for example, Form/Journal Template, Comment of Form/Journal.

Primary Key

Table 4-166 Primary Key Table

Constraint Name Columns
SDM_REFERENCE_PK REFERENCE_ID

Columns

Table 4-167 Column Details Table

Name Data Type Length Precision Scale Null Allowed Comments
REFERENCE_ID NUMBER   18 0 No Unique identifier of the record.
REFERENCE_OWNER_ID NUMBER   18 0 No Refers to the object, for which, reference is created. It can be any one of the following:
  • SDM_FORM.FORM_ID: for Form Template
  • SDM_COMMENT.COMMENT_ID: for Comment
REFERENCE_TYPE VARCHAR2 4     No Indicates type of the reference. 'DOC' - document in Oracle Content Management Repository 'URL' - URL 'FILE' - uploaded document.
REFERENCE_NAME VARCHAR2 255     Yes Name of the reference.
REFERENCE_URL VARCHAR2 320     Yes URL of the reference.
UPLOADED_FILE NUMBER       Yes User uploaded file content when reference type is FILE.
FILE_NAME VARCHAR2 255     Yes User uploaded file name when reference type is FILE.
FILE_MIMETYPE VARCHAR2 128     Yes User uploaded file mime type when reference type is FILE.
APP_ID NUMBER   1 0 No Identifier for the application to which the row corresponds to, for example, SDM:4.
OBJECT_VERSION_NUMBER NUMBER   9 0 No Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried.
LAST_UPDATE_LOGIN VARCHAR2 255     Yes Who column: indicates the session login associated to the user who last updated the row.
LAST_UPDATED_BY VARCHAR2 255     No Who column: indicates the user who last updated the row.
LAST_UPDATE_DATE DATE       No Who column: indicates the date and time of the last update of the row.
CREATED_BY VARCHAR2 255     No Who column: indicates the user who created the row.
CREATION_DATE DATE       No Who column: indicates the date and time of the creation of the row.

Indexes

Table 4-168 Index Table

Index Uniqueness Columns
SDM_REFERENCE_PK UNIQUE REFERENCE_ID
SDM_REFERENCE_N1_ONR_TYPE NONUNIQUE REFERENCE_OWNER_ID, REFERENCE_TYPE