Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


oracle.rules.sdk.editor.datamodel
Class FunctionTable

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byoracle.rules.sdk.editor.datamodel.ModelComponentTable
                  extended byoracle.rules.sdk.editor.datamodel.FunctionTable

All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class FunctionTable
extends ModelComponentTable

Top level table in the datamodel. It contains a list of RL functions

See Also:
Serialized Form

Constructor Summary
FunctionTable(DataModel dm)
           

 

Method Summary
 Function add()
          Create a Function and add it to the Function table
 Function getFunction(int index)
          get a function by index
 Function getFunction(java.lang.String id)
          get a function by id
 Function getFunctionByName(java.lang.String name)
          get a function by name
 java.lang.Object removeByID(java.lang.String id)
          Remove a function by id.
 java.lang.Object removeByName(java.lang.String name)
          Remove a function by name.

 

Methods inherited from class oracle.rules.sdk.editor.datamodel.ModelComponentTable
getParent, mark, removeMarked

 

Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize

 

Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList

 

Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList

 

Constructor Detail

FunctionTable

public FunctionTable(DataModel dm)

Method Detail

add

public Function add()
Create a Function and add it to the Function table
Returns:
The newly created function.

getFunction

public Function getFunction(int index)
get a function by index
Parameters:
index - the index of the function list
Returns:
The function in the position

getFunction

public Function getFunction(java.lang.String id)
get a function by id
Parameters:
id - the id of the function requested
Returns:
The function matching the id

getFunctionByName

public Function getFunctionByName(java.lang.String name)
get a function by name
Parameters:
name - the name of the function requested
Returns:
The function matching the name

removeByID

public java.lang.Object removeByID(java.lang.String id)
                            throws DeleteException
Remove a function by id. If the given id does not match any constraint, then no constraint is removed. If the constraint is used in other datamodel/rule definition(s), a DeleteException is thrown.
Specified by:
removeByID in class ModelComponentTable
Parameters:
id - the id of the function to be removed
Returns:
The function being removed. Null if no function is removed.
Throws:
thrown - if the function is used in other datamodel/rule definition(s). The message of the exception contains all the places where the function is used
DeleteException

removeByName

public java.lang.Object removeByName(java.lang.String name)
                              throws DeleteException
Remove a function by name. If the given name does not match any constraint, then no constraint is removed. If the constraint is used in other datamodel/rule definition(s), a DeleteException is thrown.
Parameters:
name - the name of the function to be removed
Returns:
The function being removed. Null if no function is removed.
Throws:
thrown - if the function is used in other datamodel/rule definition(s). The message of the exception contains all the places where the function is used
DeleteException

Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


Copyright © 2006, Oracle. All rights reserved.