Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-02


oracle.rules.sdk2.datamodel
Class DataModel

java.lang.Object
  extended by oracle.rules.sdk2.dictionary.DictionaryObject
      extended by oracle.rules.sdk2.dictionary.DictionaryComponent
          extended by oracle.rules.sdk2.datamodel.ModelComponent
              extended by oracle.rules.sdk2.datamodel.UnnamedModelComponent
                  extended by oracle.rules.sdk2.datamodel.DataModel

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>, UnnamedComponent

public class DataModel
extends UnnamedModelComponent

DataModel is the top level container of the entire model, through which applications can access the list of global variables, constraints, functions and FactTypes.

Each dictionary has one datamodel.

Dictionaries can be linked. Access (readonly) the combined data model using CombinedDataModel

See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
DictionaryComponent.Diff, DictionaryComponent.DiffType

 

Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>

 

Field Summary

 

Fields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
PROP_ACCESS, PROP_ACTION_SELECTED, PROP_ACTION_TABLE, PROP_ACTIVE, PROP_ADVANCED_MODE, PROP_AGGREGATE, PROP_AGGREGATE_TABLE, PROP_ALIAS, PROP_ALLOW_GAPS, PROP_ALWAYS_SELECTED, PROP_ARRAY, PROP_ARRAY_COMPONENT_TYPE, PROP_ARRAY_COMPONENT_TYPE_ID, PROP_ARRAY_FACT_TYPE_TABLE, PROP_AUTO_CONFLICT_RESOLUTION, PROP_AUTO_PATTERN_PROPERTY, PROP_BODY, PROP_BUCKET_ID_TABLE, PROP_BUCKET_SET, PROP_BUCKET_SET_ID, PROP_BUCKET_SET_TABLE, PROP_BUCKET_TABLE, PROP_CALENDAR_FORM, PROP_CHECK_RULE_FLOW, PROP_CHILD_DIMENSION_NODES, PROP_CONFLICT, PROP_CONFLICT_POLICY, PROP_CONNECTIVE, PROP_CONSTANT, PROP_CONSTRUCTOR, PROP_CONSTRUCTOR_TABLE, PROP_CREATION_UPDATE_NUMBER, PROP_CURSOR_POSITION, PROP_CUSTOM_BINDING, PROP_CUSTOMIZABLE, PROP_CUSTOMIZABLE_TEMPLATE, PROP_DATA_MODEL, PROP_DATA_SOURCE, PROP_DECISION_FUNCTION, PROP_DECISION_FUNCTION_INPUT_TABLE, PROP_DECISION_FUNCTION_OUTPUT_TABLE, PROP_DECISION_FUNCTION_RULESET_TABLE, PROP_DECISION_FUNCTION_TABLE, PROP_DESCRIPTION, PROP_DICTIONARY_LINK_TABLE, PROP_DIMENSION_NODE_TABLE, PROP_DIMENSION_TABLE, PROP_DT_ACTION_NODE_TABLE, PROP_DT_ACTION_PARAMETER_NAME, PROP_DTACTION_TABLE, PROP_DTRULE_TABLE, PROP_EFFECTIVE_END_DATE, PROP_EFFECTIVE_START_DATE, PROP_ENUM, PROP_ENUM_BUCKET_SET_ID, PROP_ENUM_TYPE, PROP_EXCEPTION_IDS, PROP_EXCEPTIONS, PROP_EXCLUDED, PROP_EXPRESSION, PROP_EXPRESSION_TABLE, PROP_FACT_PATH, PROP_FACT_PATH_IDS, PROP_FACT_TYPE, PROP_FACT_TYPE_ID, PROP_FACT_TYPE_TABLE, PROP_FIELD_TABLE, PROP_FINAL, PROP_FORM, PROP_FORMAL_PARAMETER_TABLE, PROP_FUNCTION, PROP_FUNCTION_ID, PROP_FUNCTION_SIGNATURE, PROP_FUNCTION_TABLE, PROP_GENERATED_FROM, PROP_ID, PROP_ID_COUNTER, PROP_INCLUDED, PROP_INTERFACE, PROP_INTERFACE_IDS, PROP_INTERFACES, PROP_IS_ABSTRACT, PROP_IS_CONSTANT, PROP_IS_ENUM, PROP_IS_FINAL, PROP_IS_JAXB2, PROP_IS_PRIMARY_KEY, PROP_IS_STATIC, PROP_IS_TOPLEVEL_VIEW_OBJECT, PROP_LEFT, PROP_LIFECYCLE, PROP_LIFECYCLE_DESCRIPTION, PROP_LIST, PROP_LIST_CONTENT_TYPE, PROP_LIST_CONTENT_TYPE_ID, PROP_LOCAL, PROP_LOGICAL, PROP_METHOD_TABLE, PROP_MODIFIERS, PROP_NAME, PROP_NAMESPACE, PROP_NESTED_TABLE, PROP_NO_CONFLICT, PROP_NODE_NAME, PROP_OPERATOR, PROP_OPERATOR_ID, PROP_OTHERWISE, PROP_OUTPUT_TYPES, PROP_OVERLOADED_PARAMETER_TABLE, PROP_OVERRIDDEN_BY, PROP_OVERRIDE, PROP_PACKAGE, PROP_PARAMETER_ALIAS, PROP_PARAMETER_ID, PROP_PARAMETER_LIST, PROP_PARAMETER_NAME, PROP_PARAMETER_REQUIRED, PROP_PARAMETER_TYPE_IDS, PROP_PARAMETER_TYPES, PROP_PARENT_DIMENSION_NODE, PROP_PATTERN_TABLE, PROP_PRIORITY, PROP_PRIVATE_BUCKET_SET, PROP_PROPERTIES, PROP_PROPERTY_TABLE, PROP_READABLE, PROP_REF_ID, PROP_REPORT_BYUSE_NAMES, PROP_REPORT_PATTERNS, PROP_RESOLVED_TARGET, PROP_RESOLVED_VALUE, PROP_RETURN_TYPE, PROP_RIGHT, PROP_RIGHT_SEPARATOR, PROP_RULE_FIRING_LIMIT, PROP_RULE_REPORT_TABLE, PROP_RULE_SET_TABLE, PROP_RULE_SHEET_TABLE, PROP_RULE_TABLE, PROP_RULESET, PROP_RUN_AFTER, PROP_RUN_BEFORE, PROP_SERVICE_CONFIGURATION, PROP_SERVICE_NAME, PROP_SERVICE_NAMESPACE, PROP_SHARED_BUCKET_SET, PROP_SHARED_BUCKET_SET_ID, PROP_SHOW_CONSTANTS, PROP_SHOW_FUNCTIONS, PROP_SHOW_VARIABLES, PROP_SIMPLE_TEST_TABLE, PROP_SOURCE, PROP_STATELESS, PROP_STATIC, PROP_SUPER_CLASS, PROP_SUPER_CLASS_ID, PROP_SUPPORT_XPATH, PROP_SUPPORTS_XPATH_ENABLED, PROP_SYSTEM, PROP_TARGET, PROP_TARGET_PACKAGE, PROP_TEST_FORM, PROP_TIMESTAMP, PROP_TOKEN_UNDER_CURSOR, PROP_TREE, PROP_TREE_MODE, PROP_TYPE, PROP_TYPE_ID, PROP_TYPE_IDS, PROP_TYPES, PROP_UPDATE_NUMBER, PROP_VALIDATION_UPDATE_NUMBER, PROP_VALUE, PROP_VALUES, PROP_VARIABLE, PROP_VARIABLE_TABLE, PROP_VERSION, PROP_VISIBILITY_FILTER, PROP_VISIBILITY_FILTER_ENABLED, PROP_VISIBLE, PROP_WEB_SERVICE, PROP_WRAPPER_SIGNATURE, PROP_WRITABLE, PROP_XML_NAME

 

Method Summary
 JavaFactType addJavaClass(java.lang.Class c, boolean isJaxb, java.lang.String[] visibleConstructors, java.lang.String[] visibleFields, java.lang.String[][] visibleMethodsAndAliases, java.lang.String[] visibleProperties)
          Add a Java class to the data model.
 java.lang.StringBuilder generateFactClasses()
           
 BucketSetTable getBucketSetTable()
          Get the global bucketset table
 TableProperty<BucketSet> getBucketSetTableProperty()
          Get BucketSetTable Property.
 DecisionFunctionTable getDecisionFunctionTable()
          Get the decision function table
 TableProperty<DecisionFunction> getDecisionFunctionTableProperty()
          Get DecisionFunctionTable Property.
 FactTypeTable getFactTypeTable()
          Get all FactTypes inside the data model
 TableProperty<FactType> getFactTypeTableProperty()
          Get FactTypeTable Property.
 oracle.rules.sdk2.datamodel.impt.FactTypeImporter getFTI()
           
 FunctionTable getFunctionTable()
          Get the function table
 TableProperty<Function> getFunctionTableProperty()
          Get FunctionTable Property.
 JaxbFactType[] getJaxbFactTypesBySource(java.lang.String xsd)
          Get all JaxbFactTypes generated from the given schema.
 int getUpdateNumber()
           
 VariableTable getVariableTable()
          Get the global variable table
 TableProperty<Variable> getVariableTableProperty()
          Get VariableTable Property.
 boolean isFullyQualifiedName()
          Can a qualifed name be used to name this component?
 boolean isSupportsXPathEnabled()
          Returns true if "supports xpath" is fully enabled (the default).
 boolean isValid()
          is the data model valid?
 void setSupportsXPathEnabled(boolean newValue)
          Enables (disables) "supports xpath" by specifying a new value of true (false).

 

Methods inherited from class oracle.rules.sdk2.datamodel.UnnamedModelComponent
init, isAliasDistinct, isNameDistinct

 

Methods inherited from class oracle.rules.sdk2.datamodel.ModelComponent
getParent, getParentTable, getVisibleProperty, isVisible, setVisible

 

Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
clear, containsKey, containsValue, entrySet, get, getAlias, getAlias, getAliasProperty, getAllReferences, getCustom, getDependents, getDescription, getDescriptionProperty, getDiff, getDiffProperties, getDiffs, getFullyQualifiedAlias, getFullyQualifiedName, getName, getNameProperty, getNext, getObjectPath, getOptions, getPrevious, getProperties, getProperty, getSelected, hasDiff, isEmpty, keySet, put, putAll, remove, setAlias, setCustom, setDescription, setName, size, validate, validate, values

 

Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
equals, exists, getAEReferences, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getLevel, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getReferences, getRuleSet, getState, getWarnings, hashCode, isModified, validate

 

Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.rules.sdk2.dictionary.UnnamedComponent
getAlias, getName, getPropertyNames, setAlias, setName

 

Methods inherited from interface java.util.Map
equals, hashCode

 

Method Detail

getFTI

public oracle.rules.sdk2.datamodel.impt.FactTypeImporter getFTI()

isValid

public boolean isValid()
is the data model valid?
Returns:
boolean result

generateFactClasses

public java.lang.StringBuilder generateFactClasses()
                                            throws SDKException
Throws:
SDKException

getVariableTableProperty

public TableProperty<Variable> getVariableTableProperty()
Get VariableTable Property.
Returns:
Variable TableProperty

getVariableTable

public VariableTable getVariableTable()
Get the global variable table
Returns:
the list of variables inside the data model

getBucketSetTableProperty

public TableProperty<BucketSet> getBucketSetTableProperty()
Get BucketSetTable Property.
Returns:
BucketSet TableProperty

getBucketSetTable

public BucketSetTable getBucketSetTable()
Get the global bucketset table
Returns:
the list of bucketsets inside the data model

getFunctionTableProperty

public TableProperty<Function> getFunctionTableProperty()
Get FunctionTable Property.
Returns:
Function TableProperty

getFunctionTable

public FunctionTable getFunctionTable()
Get the function table
Returns:
the list of functions inside the data model

getFactTypeTableProperty

public TableProperty<FactType> getFactTypeTableProperty()
Get FactTypeTable Property.
Returns:
FactType TableProperty

getFactTypeTable

public FactTypeTable getFactTypeTable()
Get all FactTypes inside the data model
Returns:
all the FactTypes inside the data model

getDecisionFunctionTableProperty

public TableProperty<DecisionFunction> getDecisionFunctionTableProperty()
Get DecisionFunctionTable Property.
Returns:
DecisionFunction TableProperty

getDecisionFunctionTable

public DecisionFunctionTable getDecisionFunctionTable()
Get the decision function table
Returns:
DecisionFunctionTable

isSupportsXPathEnabled

public boolean isSupportsXPathEnabled()
Returns true if "supports xpath" is fully enabled (the default). Returns false if "supports xpath" has been disabled. This will result in better performance for assertXPath but is restricted to an XPath expression of "//*" and XLink facts must not be used.
Returns:
true (false) if "supports xpath" is enabled (disabled).

setSupportsXPathEnabled

public void setSupportsXPathEnabled(boolean newValue)
Enables (disables) "supports xpath" by specifying a new value of true (false).
Parameters:
newValue - enable or disable "supports xpath".

addJavaClass

public JavaFactType addJavaClass(java.lang.Class c,
                                 boolean isJaxb,
                                 java.lang.String[] visibleConstructors,
                                 java.lang.String[] visibleFields,
                                 java.lang.String[][] visibleMethodsAndAliases,
                                 java.lang.String[] visibleProperties)
                          throws SDKException
Add a Java class to the data model.
Parameters:
c - reflected Class
isJaxb - flag
visibleConstructors - names to keep, or null to keep all
visibleFields - names to keep, or null to keep all
visibleMethodsAndAliases - names to keep, or null to keep all
visibleProperties - names to keep, or null to keep all
Returns:
JavaFactType added to the datamodel
Throws:
SDKException

getJaxbFactTypesBySource

public JaxbFactType[] getJaxbFactTypesBySource(java.lang.String xsd)
Get all JaxbFactTypes generated from the given schema.
Returns:
all JaxbFactTypes generated from the given schema.

isFullyQualifiedName

public boolean isFullyQualifiedName()
Description copied from class: DictionaryComponent
Can a qualifed name be used to name this component? Many components, e.g. rules, must have single component names and a qualifed name is constructed using the name of its parent (e.g. rulesetName.ruleName)
Overrides:
isFullyQualifiedName in class DictionaryComponent
Returns:
boolean flag

getUpdateNumber

public int getUpdateNumber()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-02


Copyright © 2009, Oracle and/or its affiliates. All rights reserved.