Package oracle.rules.sdk2.dictionary
Class IDTable<T extends DictionaryComponent>
java.lang.Object
oracle.rules.sdk2.dictionary.DictionaryObject
oracle.rules.sdk2.dictionary.IDTable<T>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>
An ID table is a List of DictionaryComponent IDs that provides
a List<DictionaryComponent> interface similar to DictionaryComponentTable
but does not contain the DictionaryComponents.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) Get DOIDs referenced by this Object and descendants.Get all DOIDs referenced by this Object and descendants.getByAlias(String alias) Get a DictionaryComponent from this table by its alias.Get a DictionaryComponent from this table by its ID.Get a DictionaryComponent from this table by its name.Get all ExprParsers that are directly or Indirectly referenced by this dictionary Object and its descendantsGet all DOIDs referenced by this Component and IDTable properties, but does not include contained dictionary components.intbooleanisEmpty()iterator()intNot SupportedlistIterator(int index) Not Supportedremove(int index) booleanbooleanremoveAll(Collection<?> c) removeByAlias(String alias) Remove the DictionaryComponent with the given alias from the tableremoveByID(DOID id) Remove the DictionaryComponent with the given id from the tableremoveByName(String name) Remove the DictionaryComponent with the given name from the tableintTODO - Ganesh Commented out as this requires further changes in DimensionNode Bump change count when the ID Table is modified to invalidate cachesbooleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Not SupportedObject[]toArray()<U> U[]toArray(U[] a) voidvalidate(List<SDKException> errors, List<SDKWarning> warnings) Validate the entire dictionary object and its decendants.voidvalidate(List<SDKException> errors, List<SDKWarning> warnings, int modelChangeLowerBound, int ruleChangeLowerBound) Validate does nothingMethods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
_clearID, equals, exists, getAEReferenceCount, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getObjectPath, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getRuleSet, getState, getWarnings, hashCode, isModified, setID, validateMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
IDTable
-
-
Method Details
-
getByName
Get a DictionaryComponent from this table by its name.- Parameters:
name- name of component- Returns:
- the component
-
getByID
Get a DictionaryComponent from this table by its ID.- Parameters:
id- ID of component- Returns:
- the component
-
getByAlias
Get a DictionaryComponent from this table by its alias.- Parameters:
alias- alias of component- Returns:
- the component
-
removeByID
Remove the DictionaryComponent with the given id from the table- Parameters:
id- the id returned by DictionaryComponent.getId()- Throws:
DeleteException
-
removeByName
Remove the DictionaryComponent with the given name from the table- Parameters:
name- the name returned by DictionaryComponent.getName()- Throws:
DeleteException
-
removeByAlias
Remove the DictionaryComponent with the given alias from the table- Parameters:
alias- the alias returned by DictionaryComponent.getAlias()- Throws:
DeleteException
-
validate
public void validate(List<SDKException> errors, List<SDKWarning> warnings, int modelChangeLowerBound, int ruleChangeLowerBound) Validate does nothing- Overrides:
validatein classDictionaryObject- Parameters:
errors- validation errorswarnings- validation warningsmodelChangeLowerBound- smallest ModelComponent.CreationUpdateNumber modified in thix tx.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.
-
validate
Description copied from class:DictionaryObjectValidate the entire dictionary object and its decendants. Not incremental.- Specified by:
validatein classDictionaryObject- Parameters:
errors- a List of error exceptions to append to.warnings- a List of warning exceptions to append to.- See Also:
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends DictionaryComponent>- Specified by:
sizein interfaceList<T extends DictionaryComponent>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends DictionaryComponent>- Specified by:
isEmptyin interfaceList<T extends DictionaryComponent>
-
contains
- Specified by:
containsin interfaceCollection<T extends DictionaryComponent>- Specified by:
containsin interfaceList<T extends DictionaryComponent>
-
iterator
- Specified by:
iteratorin interfaceCollection<T extends DictionaryComponent>- Specified by:
iteratorin interfaceIterable<T extends DictionaryComponent>- Specified by:
iteratorin interfaceList<T extends DictionaryComponent>
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends DictionaryComponent>- Specified by:
toArrayin interfaceList<T extends DictionaryComponent>
-
toArray
public <U> U[] toArray(U[] a) - Specified by:
toArrayin interfaceCollection<T extends DictionaryComponent>- Specified by:
toArrayin interfaceList<T extends DictionaryComponent>
-
add
- Specified by:
addin interfaceCollection<T extends DictionaryComponent>- Specified by:
addin interfaceList<T extends DictionaryComponent>
-
remove
- Specified by:
removein interfaceCollection<T extends DictionaryComponent>- Specified by:
removein interfaceList<T extends DictionaryComponent>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends DictionaryComponent>- Specified by:
containsAllin interfaceList<T extends DictionaryComponent>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends DictionaryComponent>- Specified by:
addAllin interfaceList<T extends DictionaryComponent>
-
addAll
- Specified by:
addAllin interfaceList<T extends DictionaryComponent>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends DictionaryComponent>- Specified by:
removeAllin interfaceList<T extends DictionaryComponent>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends DictionaryComponent>- Specified by:
retainAllin interfaceList<T extends DictionaryComponent>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends DictionaryComponent>- Specified by:
clearin interfaceList<T extends DictionaryComponent>
-
get
- Specified by:
getin interfaceList<T extends DictionaryComponent>
-
set
- Specified by:
setin interfaceList<T extends DictionaryComponent>
-
add
- Specified by:
addin interfaceList<T extends DictionaryComponent>
-
remove
- Specified by:
removein interfaceList<T extends DictionaryComponent>
-
indexOf
- Specified by:
indexOfin interfaceList<T extends DictionaryComponent>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T extends DictionaryComponent>
-
listIterator
Not Supported- Specified by:
listIteratorin interfaceList<T extends DictionaryComponent>- Throws:
UnsupportedOperationException
-
listIterator
Not Supported- Specified by:
listIteratorin interfaceList<T extends DictionaryComponent>- Throws:
UnsupportedOperationException
-
subList
Not Supported- Specified by:
subListin interfaceList<T extends DictionaryComponent>- Throws:
UnsupportedOperationException
-
getReferences
Description copied from class:DictionaryObjectGet all DOIDs referenced by this Component and IDTable properties, but does not include contained dictionary components.- Overrides:
getReferencesin classDictionaryObject- Returns:
- list of the DOIDs
-
getAEReferences
Description copied from class:DictionaryObjectGet DOIDs referenced by this Object and descendants. By convention, properties of type DOID and DOID[] are not considered. This basically makes this useful for finding DOIDs referenced in IDTables and in Expressions and Actions. Note that a parent contains its children but (usually) does not reference them.- Specified by:
getAEReferencesin classDictionaryObject- Returns:
- list of the DOIDs
-
getAllReferences
Description copied from class:DictionaryObjectGet all DOIDs referenced by this Object and descendants.- Specified by:
getAllReferencesin classDictionaryObject- Returns:
- list of the DOIDs
-
getExprParserReferences
Description copied from class:DictionaryObjectGet all ExprParsers that are directly or Indirectly referenced by this dictionary Object and its descendants- Specified by:
getExprParserReferencesin classDictionaryObject- Returns:
- Collection of Expression Parsers
-
removeNulls
public int removeNulls()TODO - Ganesh Commented out as this requires further changes in DimensionNode Bump change count when the ID Table is modified to invalidate caches
-