|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.AbstractMap
java.util.HashMap
oracle.rules.sdk.editor.datamodel.ModelComponent
oracle.rules.sdk.editor.datamodel.DataModel
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 can only have one datamodel.
Field Summary | |
static java.lang.String |
DEFAULT_MODEL_NAME Construct a read-only datamodel object for a given version |
static java.lang.String |
PROP_CONSTRAINT_TABLE |
static java.lang.String |
PROP_FACT_TYPE_TABLE |
static java.lang.String |
PROP_FUNCTION_TABLE |
static java.lang.String |
PROP_VARIABLE_TABLE |
Fields inherited from class oracle.rules.sdk.editor.datamodel.ModelComponent |
PROP_ALIAS, PROP_ID, PROP_NAME, PROP_PROPERTIES, PROP_VISIBLE |
Constructor Summary | |
DataModel(RuleDictionary dict) Constructor used to edit a datamodel. |
Method Summary | |
Constraint |
getConstraint(java.lang.String constraintName) Get a constraint by name |
Constraint[] |
getConstraints() Get all constraint inside the data model |
ConstraintTable |
getConstraintTable() Get the constraint Table |
FactType[] |
getFactTypes() Get all FactTypes inside the data model |
FactTypeTable |
getFactTypeTable() Get all FactTypes inside the data model |
Function |
getFunction(java.lang.String funcName) Get a function by name |
Function[] |
getFunctions() Get all functions inside the data model |
FunctionTable |
getFunctionTable() Get the function table |
JavaFactType[] |
getJavaFactTypes() Get all Java FactTypes inside the data model (excluding JAXB fact type) |
JaxbFactType[] |
getJaxbFactTypes() Get all Jaxb FactTypes inside the data model |
PrimitiveFactType[] |
getPrimitiveTypes() Get all primitive FactTypes inside the data model |
RLFactType[] |
getRLFactTypes() Get all RL FactTypes inside the data model |
RuleDictionary |
getRuleDictionary() Get the containing RuleDictionary object |
Variable |
getVariable(java.lang.String variableName) Get a global variable by name |
Variable[] |
getVariables() Get all global variables inside the data model |
VariableTable |
getVariableTable() Get the global variable table |
void |
update() Save the DataModel into an in-memory dictionary. |
void |
validate() Validate the consistency of the datamodel. |
Methods inherited from class oracle.rules.sdk.editor.datamodel.ModelComponent |
get, getAlias, getDataModel, getID, getName, getParent, getProperties, getVisible, setAlias, setName, setVisible |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Field Detail |
public static final java.lang.String DEFAULT_MODEL_NAME
public static final java.lang.String PROP_VARIABLE_TABLE
public static final java.lang.String PROP_CONSTRAINT_TABLE
public static final java.lang.String PROP_FUNCTION_TABLE
public static final java.lang.String PROP_FACT_TYPE_TABLE
Constructor Detail |
public DataModel(RuleDictionary dict) throws RulesSDKException
dict
- The dictionary in which the datamodel is to be editted.thrown
- if error occured when loading the persistent datamodel into the editor datamodelRulesSDKException
Method Detail |
public RuleDictionary getRuleDictionary()
public void validate() throws RulesSDKDMValidationException
validate
in class ModelComponent
thrown
- if the datamodel is not consistent.RulesSDKDMValidationException
public void update() throws RulesSDKException
thrown
- if error occured when validating the datamodel or saving the datamodel.RulesSDKException
public VariableTable getVariableTable()
public Variable getVariable(java.lang.String variableName)
variableName
- name of the variablepublic ConstraintTable getConstraintTable()
public Constraint getConstraint(java.lang.String constraintName)
constraintName
- name of the constraintpublic FunctionTable getFunctionTable()
public Function getFunction(java.lang.String funcName)
funcName
- name of the functionpublic FactTypeTable getFactTypeTable()
public FactType[] getFactTypes()
public Variable[] getVariables()
public Constraint[] getConstraints()
public Function[] getFunctions()
public JavaFactType[] getJavaFactTypes()
public JaxbFactType[] getJaxbFactTypes()
public RLFactType[] getRLFactTypes()
public PrimitiveFactType[] getPrimitiveTypes()
|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |