SDM_HISTORY

This table stores history for different objects of Supplemental Data Mangager and Enterprise Journals, for example, Data Set, Form Template, Journal Template.

Primary Key

Table 4-134 Primary Key Table

Constraint Name Columns
SDM_HISTORY_PK HISTORY_FIELD_ID

Columns

Table 4-135 Column Details Table

Name Data Type Length Precision Scale Null Allowed Comments
HISTORY_FIELD_ID NUMBER   18 0 No Unique identifier of the record.
OBJECT_ID NUMBER   18 0 No Refers to the object, for which, history is created. Some examples are:
  • SDM_DATA_SET.DATA_SET_ID: for Data Set
  • SDM_FORM.FORM_ID: for Form Template
OBJECT_TYPE VARCHAR2 8 18 0 Yes null
OBJECT_NAME VARCHAR2 256     Yes null
SUPPORTING_OBJECT_ID NUMBER   18 0 Yes An ID to the supporting object related to this entry. For instance, Data Set attribute ID.
SUPPORTING_OBJECT VARCHAR2 255     Yes A general use field in case the other fields are not enough to store the history.
FIELD_ID VARCHAR2 100 18 0 No The field ID which states what field (such as Data Set name, description etc.) changed. Refer to HistoryField.java for the full enumeration.
CHANGE_TYPE_ID NUMBER   9 0 No The ID of the change type, such as Added, Removed, Modified, etc.
OLD_VALUE VARCHAR2 2000     Yes The prior value of the field.
NEW_VALUE VARCHAR2 2000     Yes The new value of the field.
CHANGED_BY VARCHAR2 255     No The person who made the modification.
CHANGED_ON TIMESTAMP(6)       No The date of the modification.
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-136 Index Table

Index Uniqueness Columns
SDM_HISTORY_PK UNIQUE HISTORY_FIELD_ID
SDM_HISTORY_N1_OBJ_ID NONUNIQUE OBJECT_ID