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

E10663-11

oracle.rules.sdk2.datamodel
Class CombinedDataModel

java.lang.Object
  extended by oracle.rules.sdk2.datamodel.CombinedDataModel

public class CombinedDataModel
extends java.lang.Object

Provide readonly access to the total data model including components in linked dictionaries. This class does not extend DictionaryObject.


Nested Class Summary
static class CombinedDataModel.ConversionMode
           
 
Constructor Summary
CombinedDataModel(RuleDictionary dic)
           
 
Method Summary
 java.util.List<AdfBcFactType> getAdfBcFactTypes()
          Get all AdfBc FactTypes inside the data model
 java.lang.String getAlias(DictionaryComponent c)
          Get alias for a dictionary component.
 java.lang.String getAlias(DictionaryComponent c, boolean translate)
          Get alias for a dictionary component.
 BucketSet getAssociatedBucketSet(DOID id)
          Get bucket set associated with given id
 BucketSet getBucketSetByAlias(java.lang.String alias)
          Get a bucketset by alias
 BucketSet getBucketSetByAlias(java.lang.String alias, boolean translate)
           
 java.util.List<BucketSet> getBucketSets()
          Get all bucketsets inside the data model
 DictionaryObject getByID(DOID id)
          Get by ID
 DecisionFunction getDecisionFunctionByAlias(java.lang.String alias)
          Get a decision function by alias
 DecisionFunction getDecisionFunctionByAlias(java.lang.String alias, boolean translate)
           
 java.util.List<DecisionFunction> getDecisionFunctions()
          Get all decision functions inside the data model
 RuleDictionary getDictionary()
           
 FactType getFactTypeByAlias(java.lang.String alias)
          Get a particular facttype by alias
 FactType getFactTypeByAlias(java.lang.String alias, boolean translate)
           
 FactType getFactTypeByName(java.lang.String name)
          Get a particular facttype by name; especially important for programming metadata where the alias is very likely to be changed (ADF-BC fact types, since their default aliases aren't user-friendly at all)
 java.util.List<FactType> getFactTypes()
          Get all FactTypes inside the data model
 Function getFunctionByAlias(java.lang.String alias)
          Get function by alias.
 Function getFunctionByAlias(java.lang.String alias, boolean translate)
           
 java.util.List<Function> getFunctions()
          Get all functions inside the data model
 java.util.List<JavaFactType> getJavaFactTypes()
          Get all Java FactTypes inside the data model (excluding JAXB fact type)
 java.util.List<JaxbFactType> getJaxbFactTypes()
          Get all Jaxb FactTypes inside the data model
 java.util.List<PrimitiveFactType> getPrimitiveTypes()
          Get all primitive FactTypes inside the data model.
 java.util.List<RLFactType> getRLFactTypes()
          Get all RL FactTypes inside the data model
 Variable getVariableByAlias(java.lang.String alias)
          Get a global variable by alias
 Variable getVariableByAlias(java.lang.String alias, boolean translate)
           
 java.util.List<Variable> getVariables()
          Get all global variables inside the data model
 boolean isCollection(DOID doid)
           
 boolean isComparable(DOID doid)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedDataModel

public CombinedDataModel(RuleDictionary dic)
Method Detail

getFactTypeByAlias

public FactType getFactTypeByAlias(java.lang.String alias)
Get a particular facttype by alias

Parameters:
alias - alias of the facttype
Returns:
the facttype matching the alias. null if no such facttype.

getFactTypeByAlias

public FactType getFactTypeByAlias(java.lang.String alias,
                                   boolean translate)

getFactTypeByName

public FactType getFactTypeByName(java.lang.String name)
Get a particular facttype by name; especially important for programming metadata where the alias is very likely to be changed (ADF-BC fact types, since their default aliases aren't user-friendly at all)

Parameters:
name - name of the facttype
Returns:
the facttype matching the alias. null if no such facttype.

getFunctionByAlias

public Function getFunctionByAlias(java.lang.String alias)
Get function by alias. Functions may be overloaded in RL but we require unique aliases in SDK

Parameters:
alias - alias of the function
Returns:
the function matching the name

getFunctionByAlias

public Function getFunctionByAlias(java.lang.String alias,
                                   boolean translate)

getVariableByAlias

public Variable getVariableByAlias(java.lang.String alias)
Get a global variable by alias

Parameters:
alias - alias of the variable
Returns:
the variable matching the name

getVariableByAlias

public Variable getVariableByAlias(java.lang.String alias,
                                   boolean translate)

getBucketSetByAlias

public BucketSet getBucketSetByAlias(java.lang.String alias)
Get a bucketset by alias

Parameters:
alias - alias of the bucketset
Returns:
the bucketset matching the name

getBucketSetByAlias

public BucketSet getBucketSetByAlias(java.lang.String alias,
                                     boolean translate)

getDecisionFunctionByAlias

public DecisionFunction getDecisionFunctionByAlias(java.lang.String alias)
Get a decision function by alias

Parameters:
alias - alias of the decision function
Returns:
the decision function matching the name

getDecisionFunctionByAlias

public DecisionFunction getDecisionFunctionByAlias(java.lang.String alias,
                                                   boolean translate)

getByID

public DictionaryObject getByID(DOID id)
Get by ID

Returns:
DictionaryObject

getFactTypes

public java.util.List<FactType> getFactTypes()
Get all FactTypes inside the data model

Returns:
all the FactTypes inside the data model

getVariables

public java.util.List<Variable> getVariables()
Get all global variables inside the data model

Returns:
all the global variables inside the data model

getBucketSets

public java.util.List<BucketSet> getBucketSets()
Get all bucketsets inside the data model

Returns:
all the bucketsets inside the data model

getDecisionFunctions

public java.util.List<DecisionFunction> getDecisionFunctions()
Get all decision functions inside the data model

Returns:
all the decision functions inside the data model

getFunctions

public java.util.List<Function> getFunctions()
Get all functions inside the data model

Returns:
all the functions inside the data model

getJavaFactTypes

public java.util.List<JavaFactType> getJavaFactTypes()
Get all Java FactTypes inside the data model (excluding JAXB fact type)

Returns:
all the Java FactTypes inside the data model

getJaxbFactTypes

public java.util.List<JaxbFactType> getJaxbFactTypes()
Get all Jaxb FactTypes inside the data model

Returns:
all the Jaxb FactTypes inside the data model

getRLFactTypes

public java.util.List<RLFactType> getRLFactTypes()
Get all RL FactTypes inside the data model

Returns:
all the RL FactTypes inside the data model

getPrimitiveTypes

public java.util.List<PrimitiveFactType> getPrimitiveTypes()
Get all primitive FactTypes inside the data model. Look in all dictionaries, even though they should only be in 1

Returns:
all the primitive FactTypes inside the builtin data model

getAdfBcFactTypes

public java.util.List<AdfBcFactType> getAdfBcFactTypes()
Get all AdfBc FactTypes inside the data model

Returns:
all the AdfBc FactTypes inside the data model

getAlias

public java.lang.String getAlias(DictionaryComponent c)
Get alias for a dictionary component. If component in a linked dictionary, that dictonary's alias is prepended as a qualifier.

Parameters:
c - DictionaryComponent
Returns:
alias of c, possibly qualified with containing dictionary's alias

getAlias

public java.lang.String getAlias(DictionaryComponent c,
                                 boolean translate)
Get alias for a dictionary component. If component in a linked dictionary, that dictonary's alias is prepended as a qualifier.

Parameters:
c - DictionaryComponent
translate - flag to translate alias
Returns:
alias of c, possibly qualified with containing dictionary's alias

getAssociatedBucketSet

public BucketSet getAssociatedBucketSet(DOID id)
Get bucket set associated with given id

Parameters:
id - id of Property, Function, or Method
Returns:
BucketSet or null if none associated

getDictionary

public RuleDictionary getDictionary()

isCollection

public boolean isCollection(DOID doid)

isComparable

public boolean isComparable(DOID doid)

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

E10663-11

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