Skip navigation links

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

E10663-02


oracle.rules.sdk2.dictionary
Class IDTable<T extends DictionaryComponent>

java.lang.Object
  extended by oracle.rules.sdk2.dictionary.DictionaryObject
      extended by oracle.rules.sdk2.dictionary.IDTable<T>

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>

public class IDTable<T extends DictionaryComponent>
extends DictionaryObject
implements java.util.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:
Serialized Form

Constructor Summary
IDTable(DictionaryObject parent)
           

 

Method Summary
 void add(int index, T element)
           
 boolean add(T o)
           
 boolean addAll(java.util.Collection<? extends T> c)
           
 boolean addAll(int index, java.util.Collection<? extends T> c)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
 T get(int index)
           
 java.util.List<DOID> getAEReferences()
          Get DOIDs referenced by this Object and descendants.
 java.util.List<DOID> getAllReferences()
          Get all DOIDs referenced by this Object and descendants.
 T getByAlias(java.lang.String alias)
          Get a DictionaryComponent from this table by its alias.
 T getByID(DOID id)
          Get a DictionaryComponent from this table by its ID.
 T getByName(java.lang.String name)
          Get a DictionaryComponent from this table by its name.
 java.util.List<DOID> getReferences()
          Get all DOIDs referenced by this Component and IDTable properties, but does not include contained dictonary components.
 int indexOf(java.lang.Object o)
           
 boolean isEmpty()
           
 java.util.Iterator<T> iterator()
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator<T> listIterator()
          Not Supported
 java.util.ListIterator<T> listIterator(int index)
          Not Supported
 T remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 T removeByAlias(java.lang.String alias)
          Remove the DictionaryComponent with the given alias from the table
 T removeByID(DOID id)
          Remove the DictionaryComponent with the given id from the table
 T removeByName(java.lang.String name)
          Remove the DictionaryComponent with the given name from the table
 boolean retainAll(java.util.Collection<?> c)
           
 T set(int index, T element)
           
 int size()
           
 java.util.List<T> subList(int fromIndex, int toIndex)
          Not Supported
 java.lang.Object[] toArray()
           
<U> U[]
toArray(U[] a)
           
 void validate(java.util.List<SDKException> errors, java.util.List<SDKWarning> warnings)
          Validate the entire dictionary object and its decendants.
 void validate(java.util.List<SDKException> errors, java.util.List<SDKWarning> warnings, int modelChangeLowerBound, int ruleChangeLowerBound)
          Validate does nothing

 

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, 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
equals, hashCode

 

Constructor Detail

IDTable

public IDTable(DictionaryObject parent)

Method Detail

getByName

public T getByName(java.lang.String name)
Get a DictionaryComponent from this table by its name.
Parameters:
name - name of component
Returns:
the component

getByID

public T getByID(DOID id)
Get a DictionaryComponent from this table by its ID.
Parameters:
id - ID of component
Returns:
the component

getByAlias

public T getByAlias(java.lang.String alias)
Get a DictionaryComponent from this table by its alias.
Parameters:
alias - alias of component
Returns:
the component

removeByID

public T removeByID(DOID id)
                                         throws DeleteException
Remove the DictionaryComponent with the given id from the table
Parameters:
id - the id returned by DictionaryComponent.getId()
Throws:
DeleteException

removeByName

public T removeByName(java.lang.String name)
                                           throws DeleteException
Remove the DictionaryComponent with the given name from the table
Parameters:
name - the name returned by DictionaryComponent.getName()
Throws:
DeleteException

removeByAlias

public T removeByAlias(java.lang.String alias)
                                            throws DeleteException
Remove the DictionaryComponent with the given alias from the table
Parameters:
alias - the alias returned by DictionaryComponent.getAlias()
Throws:
DeleteException

validate

public void validate(java.util.List<SDKException> errors,
                     java.util.List<SDKWarning> warnings,
                     int modelChangeLowerBound,
                     int ruleChangeLowerBound)
Validate does nothing
Overrides:
validate in class DictionaryObject
Parameters:
errors - validation errors
warnings - validation warnings
modelChangeLowerBound - 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

public void validate(java.util.List<SDKException> errors,
                     java.util.List<SDKWarning> warnings)
Description copied from class: DictionaryObject
Validate the entire dictionary object and its decendants. Not incremental.
Specified by:
validate in class DictionaryObject
Parameters:
errors - a List of error exceptions to append to.
warnings - a List of warning exceptions to append to.
See Also:
DictionaryObject.validate(List,List,int,int)

size

public int size()
Specified by:
size in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
size in interface java.util.List<T extends DictionaryComponent>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
isEmpty in interface java.util.List<T extends DictionaryComponent>

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
contains in interface java.util.List<T extends DictionaryComponent>

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T extends DictionaryComponent>
Specified by:
iterator in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
iterator in interface java.util.List<T extends DictionaryComponent>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
toArray in interface java.util.List<T extends DictionaryComponent>

toArray

public <U> U[] toArray(U[] a)
Specified by:
toArray in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
toArray in interface java.util.List<T extends DictionaryComponent>

add

public boolean add(T o)
Specified by:
add in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
add in interface java.util.List<T extends DictionaryComponent>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
remove in interface java.util.List<T extends DictionaryComponent>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
containsAll in interface java.util.List<T extends DictionaryComponent>

addAll

public boolean addAll(java.util.Collection<? extends T> c)
Specified by:
addAll in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
addAll in interface java.util.List<T extends DictionaryComponent>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends T> c)
Specified by:
addAll in interface java.util.List<T extends DictionaryComponent>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
removeAll in interface java.util.List<T extends DictionaryComponent>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
retainAll in interface java.util.List<T extends DictionaryComponent>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<T extends DictionaryComponent>
Specified by:
clear in interface java.util.List<T extends DictionaryComponent>

get

public T get(int index)
Specified by:
get in interface java.util.List<T extends DictionaryComponent>

set

public T set(int index,
             T element)
Specified by:
set in interface java.util.List<T extends DictionaryComponent>

add

public void add(int index,
                T element)
Specified by:
add in interface java.util.List<T extends DictionaryComponent>

remove

public T remove(int index)
Specified by:
remove in interface java.util.List<T extends DictionaryComponent>

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List<T extends DictionaryComponent>

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List<T extends DictionaryComponent>

listIterator

public java.util.ListIterator<T> listIterator()
Not Supported
Specified by:
listIterator in interface java.util.List<T extends DictionaryComponent>
Throws:
java.lang.UnsupportedOperationException

listIterator

public java.util.ListIterator<T> listIterator(int index)
Not Supported
Specified by:
listIterator in interface java.util.List<T extends DictionaryComponent>
Throws:
java.lang.UnsupportedOperationException

subList

public java.util.List<T> subList(int fromIndex,
                                 int toIndex)
Not Supported
Specified by:
subList in interface java.util.List<T extends DictionaryComponent>
Throws:
java.lang.UnsupportedOperationException

getReferences

public java.util.List<DOID> getReferences()
Description copied from class: DictionaryObject
Get all DOIDs referenced by this Component and IDTable properties, but does not include contained dictonary components.
Overrides:
getReferences in class DictionaryObject
Returns:
list of the DOIDS

getAEReferences

public java.util.List<DOID> getAEReferences()
Description copied from class: DictionaryObject
Get 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:
getAEReferences in class DictionaryObject
Returns:
list of the DOIDS

getAllReferences

public java.util.List<DOID> getAllReferences()
Description copied from class: DictionaryObject
Get all DOIDs referenced by this Object and descendants.
Specified by:
getAllReferences in class DictionaryObject
Returns:
list of the DOIDS

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.