7.1 SDO_NFE.APPLY_RULE

Format

SDO_NFE.APPLY_RULE(
     model_id  IN NUMBER,
     rule_type IN VARCHAR2,
     rule_id   IN NUMBER);

Description

Applies a connectivity rule over all the features contained in a specified NFE model.

Parameters

model_id

ID of the NFE model.

rule_type

Type of connectivity rule to apply: RULE_TYPE_LINE or RULE_TYPE_POINT.

rule_id

ID of the connectivity rule.

Usage Notes

The specified rule must be registered in the specified model. You can register a connectivity rule in the model tables or through the Java API.

Examples

The following example applies a line-line rule to any interacting lines in an NFE model that meet the connectivity rule identified by the rule ID 1.

DECLARE
  model_id  NUMBER := 1;
  rule_type VARCHAR2(1) := sdo_nfe.RULE_TYPE_LINE_LINE;
  rule_id   NUMBER := 1;
BEGIN
  sdo_nfe.apply_rule( model_id, rule_type, rule_id );
END;
/