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

E10663-11

oracle.rules.sdk2.decisiontable
Class DimensionTable

java.lang.Object
  extended by oracle.rules.sdk2.dictionary.DictionaryObject
      extended by oracle.rules.sdk2.dictionary.DictionaryComponentTable<T>
          extended by oracle.rules.sdk2.ruleset.RuleComponentTable<T>
              extended by oracle.rules.sdk2.decisiontable.DTComponentTable<Dimension>
                  extended by oracle.rules.sdk2.decisiontable.DimensionTable
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Dimension>, java.util.Collection<Dimension>, java.util.List<Dimension>

public class DimensionTable
extends DTComponentTable<Dimension>

An ordered list of Dimensions in the decision table. RuleSheet contains a DimensionTable, which holds multiple Dimensions shared by all the DTRules in the sheet. Dimensions may be added, removed, and moved. No other table mutations are supported.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponentTable
SORT, SORT_ASCEND, SORT_DECEND
 
Method Summary
 void clear()
          remove all elements in the table
 DimensionNode[][] getNodeMatrix()
          Get the DimensionNodes in the sheet as an D x R matrix (D rows x R columns, D is #dimensions and R is #rules)
 void move(int fromIndex, int toIndex, boolean replace)
          Move the DictionaryComponent with the given id from its current location to the location of the second id.
 boolean remove(java.lang.Object o)
          remove the object from this table
 void reorder(java.util.List<java.lang.Integer> ordering)
          reorder this table according to a list of indexes.
 void validate(java.util.List<SDKException> errors, java.util.List<SDKWarning> warnings, int modelChangeLowerBound, int ruleChangeLowerBound)
          Validate each DictionaryObject in the table.
 
Methods inherited from class oracle.rules.sdk2.decisiontable.DTComponentTable
addAll, addAll, parentRuleSheet, removeAll, retainAll, set
 
Methods inherited from class oracle.rules.sdk2.ruleset.RuleComponentTable
getParent
 
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponentTable
add, add, add, contains, containsAll, copyTo, cut, get, getAEReferences, getAllReferences, getByAlias, getByAlias, getByID, getByName, getLast, getMarked, getProtoType, indexOf, isEmpty, isLocked, iterator, listIterator, listIterator, mark, move, paste, remove, removeByAlias, removeByID, removeByName, removeMarked, size, sort, sort, sort, subList, toArray, toArray, unMark, validate
 
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
equals, exists, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getLevel, getObjectPath, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getReferences, getRuleSet, getState, getWarnings, hashCode, isModified, validate
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
add, equals, hashCode, lastIndexOf
 

Method Detail

clear

public void clear()
Description copied from class: DictionaryComponentTable
remove all elements in the table

Specified by:
clear in interface java.util.Collection<Dimension>
Specified by:
clear in interface java.util.List<Dimension>
Overrides:
clear in class DictionaryComponentTable<Dimension>

remove

public boolean remove(java.lang.Object o)
remove the object from this table

Specified by:
remove in interface java.util.Collection<Dimension>
Specified by:
remove in interface java.util.List<Dimension>
Overrides:
remove in class DictionaryComponentTable<Dimension>

getNodeMatrix

public DimensionNode[][] getNodeMatrix()
Get the DimensionNodes in the sheet as an D x R matrix (D rows x R columns, D is #dimensions and R is #rules)

Returns:
matrix

move

public void move(int fromIndex,
                 int toIndex,
                 boolean replace)
Description copied from class: DictionaryComponentTable
Move the DictionaryComponent with the given id from its current location to the location of the second id. Shift the row currently at that location up, or replace it.

Overrides:
move in class DictionaryComponentTable<Dimension>
Parameters:
fromIndex - the index of the row to move
toIndex - move row to this location
replace - if true, replace existing row at toIndex, if false move existing row to next higher index

validate

public void validate(java.util.List<SDKException> errors,
                     java.util.List<SDKWarning> warnings,
                     int modelChangeLowerBound,
                     int ruleChangeLowerBound)
Description copied from class: DictionaryComponentTable
Validate each DictionaryObject in the table.

Overrides:
validate in class DictionaryComponentTable<Dimension>
Parameters:
errors - validation errors
warnings - validation warnings
modelChangeLowerBound - determines what needs to be revalidated based on changes to the dictionary
ruleChangeLowerBound - smallest RuleComponent.CreationUpdateNumber modified in thix tx. Rulesets and rules with UpdateNumber >= modelChangeLowerBound will be revalidated. a value of 0 will force revalidation of all rulesets. A value of Integer.MAX_VALUE will skip validation of all rulesets.

reorder

public void reorder(java.util.List<java.lang.Integer> ordering)
Description copied from class: DictionaryComponentTable
reorder this table according to a list of indexes. e.g. to reverse a list of 3 elements, use ordering (2,1,0).

Overrides:
reorder in class DictionaryComponentTable<Dimension>
Parameters:
ordering - a list of indexes the same size as this list.

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.