QP_DYN_RULES
Table that contains the details about the dynamic rule definition such as type, engine type, schema version, effectivity dates, etc.
Details
-
Schema: FUSION
-
Object owner: QP
-
Object type: TABLE
-
Tablespace: Default
Primary Key
| Name | Columns |
|---|---|
|
QP_DYN_RULES_PK |
RULE_ID |
Columns
| Name | Datatype | Length | Precision | Not-null | Comments |
|---|---|---|---|---|---|
| RULE_ID | NUMBER | 18 | Yes | Value that uniquely identifies the dynamic pricing rule. Oracle Fusion Pricing automatically assigns this value. | |
| RULE_TYPE_CODE | VARCHAR2 | 30 | Yes | Abbreviation that indicates the type of the dynamic pricing rule. Value for dynamic pricing rules related to promotions is ORA_PROMOTION. A list of accepted values is defined in the lookup type ORA_QP_RULE_TYPE_CODE. | |
| RULE_SCRIPT_CODE | CLOB | Represents the script code for the dynamic pricing rule. The script code will be in Groovy by default. The script language is determined by the rule engine type. | |||
| RULE_BYTE_CODE | BLOB | Represents the byte code of the dynamic pricing rule. | |||
| RULE_ENGINE_TYPE_CODE | VARCHAR2 | 30 | Yes | Abbreviation that indicates the type of the rules engine. Valid value is ORA_GROOVY. A list of accepted values is defined in the lookup type ORA_QP_RULE_ENGINE_TYPE_CODE. | |
| RULE_SCHEMA_VERSION | VARCHAR2 | 10 | Yes | Indicates the version of the schema for the dynamic pricing rule. | |
| START_DATE | TIMESTAMP | Date on which the dynamic pricing rule goes into effect. | |||
| END_DATE | TIMESTAMP | Date after which the dynamic pricing rule expires. | |||
| CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
| CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
| LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
| LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
| LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
| OBJECT_VERSION_NUMBER | NUMBER | 9 | Yes | 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. |
Foreign Keys
| Table | Foreign Table | Foreign Key Column |
|---|---|---|
| qp_dyn_rule_fragments | qp_dyn_rules | RULE_ID |
| qp_dyn_rule_expr_nodes | qp_dyn_rules | RULE_ID |
Indexes
| Index | Uniqueness | Tablespace | Columns |
|---|---|---|---|
| QP_DYN_RULES_U1 | Unique | Default | RULE_ID |