|
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
oracle.rules.jsr94.RLRuleSession
oracle.rules.jsr94.RLStatefulRuleSession
The Oracle Business Rules implementation of a JSR-94 Stateful rule session.
Method Summary | |
javax.rules.Handle |
addObject(java.lang.Object object) Adds an Object to the rule session state of this rule session. |
java.util.List |
addObjects(java.util.List objects) Adds the List of objects to the rule session state of this rule session. |
java.lang.Object |
callFunction(java.lang.String name) Execute the RL function with no arguments, returning result. |
java.lang.Object |
callFunctionWithArgument(java.lang.String name, java.lang.Object arg) Execute the RL function with one argument, returning result. |
java.lang.Object |
callFunctionWithArgumentArray(java.lang.String name, java.lang.Object[] args) Execute the RL function with given array arguments, returning result. |
java.lang.Object |
callFunctionWithArgumentList(java.lang.String name, java.util.List args) Execute the RL function with given list of arguments, returning result. |
boolean |
containsObject(javax.rules.Handle h) Returns true if the Object associated with the specified Handle is in the rule session state of this rule session. |
void |
executeRules() Executes the rules in the rule execution set bound to this rule session. |
java.util.List |
getHandles() Returns a List of Handles, one for each Object in the rule session state for this rule session. |
java.lang.Object |
getObject(javax.rules.Handle h) Returns the Object associated with the specified Handle. |
java.util.List |
getObjects() Returns a List of all objects in the rule session state of this rule session. |
java.util.List |
getObjects(javax.rules.ObjectFilter filter) Returns a List of all objects in the rule session state of this rule session. |
javax.rules.RuleExecutionSetMetadata |
getRuleExecutionSetMetadata() |
int |
getType() |
void |
release() |
void |
removeObject(javax.rules.Handle h) Removes the Object associated with the specified Handle from the rule session state of this rule session. |
void |
reset() Resets this rule session. |
void |
updateObject(javax.rules.Handle h, java.lang.Object newObj) Updates the rule session state to reflect that the specified object should be now associated with the specified handle. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.rules.RuleSession |
getRuleExecutionSetMetadata, getType, release |
Method Detail |
public javax.rules.Handle addObject(java.lang.Object object) throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
addObject
in interface javax.rules.StatefulRuleSession
object
- the Object to addjavax.rules.InvalidRuleSessionException
- if an error is encountered adding the objectjava.rmi.RemoteException
public java.util.List addObjects(java.util.List objects) throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
addObjects
in interface javax.rules.StatefulRuleSession
objects
- the object to addjavax.rules.InvalidRuleSessionException
- if an error is encountered adding the objectsjava.rmi.RemoteException
public boolean containsObject(javax.rules.Handle h) throws javax.rules.InvalidRuleSessionException, javax.rules.InvalidHandleException, java.rmi.RemoteException
containsObject
in interface javax.rules.StatefulRuleSession
h
- the Handle for the object of interestjavax.rules.InvalidHandleException
- if the Handle is no longer validjavax.rules.InvalidRuleSessionException
- if an error is encounteredjava.rmi.RemoteException
public void updateObject(javax.rules.Handle h, java.lang.Object newObj) throws javax.rules.InvalidRuleSessionException, javax.rules.InvalidHandleException, java.rmi.RemoteException
updateObject
in interface javax.rules.StatefulRuleSession
h
- the Handle for the object of interestnewObj
- the modified objectjavax.rules.InvalidHandleException
- if the Handle is no longer validjavax.rules.InvalidRuleSessionException
- if an error is encountered updating the object.java.rmi.RemoteException
public void removeObject(javax.rules.Handle h) throws javax.rules.InvalidRuleSessionException, javax.rules.InvalidHandleException, java.rmi.RemoteException
removeObject
in interface javax.rules.StatefulRuleSession
h
- the Handle for the object of interestjavax.rules.InvalidHandleException
- if the Handle is no longer validjavax.rules.InvalidRuleSessionException
- if an error is encounteredjava.rmi.RemoteException
public java.lang.Object getObject(javax.rules.Handle h) throws javax.rules.InvalidRuleSessionException, javax.rules.InvalidHandleException, java.rmi.RemoteException
getObject
in interface javax.rules.StatefulRuleSession
h
- the Handle for the object of interestjavax.rules.InvalidHandleException
- if the Handle is no longer validjavax.rules.InvalidRuleSessionException
- if an error is encounteredjava.rmi.RemoteException
public java.util.List getHandles() throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
getHandles
in interface javax.rules.StatefulRuleSession
javax.rules.InvalidRuleSessionException
- if an error is encounteredjava.rmi.RemoteException
public java.util.List getObjects() throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
getObjects
in interface javax.rules.StatefulRuleSession
javax.rules.InvalidRuleSessionException
- if an error is encounteredjava.rmi.RemoteException
public java.util.List getObjects(javax.rules.ObjectFilter filter) throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
getObjects
in interface javax.rules.StatefulRuleSession
javax.rules.InvalidRuleSessionException
- if an error is encounteredjava.rmi.RemoteException
public void executeRules() throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
executeRules
in interface javax.rules.StatefulRuleSession
javax.rules.InvalidRuleSessionException
- if an error is encounteredjava.rmi.RemoteException
public void reset() throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
reset
in interface javax.rules.StatefulRuleSession
javax.rules.InvalidRuleSessionException
- if an error is encounteredjava.rmi.RemoteException
public java.lang.Object callFunction(java.lang.String name) throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
name
- name of RL function, optionally ruleset-qualifiedjavax.rules.InvalidRuleSessionException
- if an error is encountered executing the functionjava.rmi.RemoteException
public java.lang.Object callFunctionWithArgument(java.lang.String name, java.lang.Object arg) throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
name
- name of RL function, optionally ruleset-qualifiedarg
- Object to pass to functionjavax.rules.InvalidRuleSessionException
- if an error is encountered executing the functionjava.rmi.RemoteException
public java.lang.Object callFunctionWithArgumentArray(java.lang.String name, java.lang.Object[] args) throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
name
- name of RL function, optionally ruleset-qualifiedargs
- array of arguments to pass to functionjavax.rules.InvalidRuleSessionException
- if an error is encountered executing the functionjava.rmi.RemoteException
public java.lang.Object callFunctionWithArgumentList(java.lang.String name, java.util.List args) throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
name
- name of RL function, optionally ruleset-qualifiedargs
- list to pass to functionjavax.rules.InvalidRuleSessionException
- if an error is encountered executing the functionjava.rmi.RemoteException
public javax.rules.RuleExecutionSetMetadata getRuleExecutionSetMetadata() throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
getRuleExecutionSetMetadata
in interface javax.rules.RuleSession
javax.rules.InvalidRuleSessionException
java.rmi.RemoteException
public int getType() throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
getType
in interface javax.rules.RuleSession
javax.rules.InvalidRuleSessionException
java.rmi.RemoteException
public void release() throws javax.rules.InvalidRuleSessionException, java.rmi.RemoteException
release
in interface javax.rules.RuleSession
javax.rules.InvalidRuleSessionException
java.rmi.RemoteException
|
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 |