public class MStatefulRuleSession extends AbstractMRuleSession implements javax.rules.StatefulRuleSession
Constructor and Description |
---|
MStatefulRuleSession(IMRuleExecutionSet executionSet,
Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
MHandle |
addObject(Object o)
JSR94 spec entry point AND real entry point
|
List<MHandle> |
addObjects(Collection<?> c)
real entry point for
addObjects(List) |
List<MHandle> |
addObjects(List l)
JSR94 spec entry point
|
boolean |
containsObject(javax.rules.Handle h)
JSR94 spec entry point
|
boolean |
containsObject(MHandle h)
real entry point for
containsObject(Handle) |
void |
executeRules()
JSR94 spec entry point AND real entry point
|
List<MHandle> |
getHandles()
JSR94 spec entry point AND real entry point
|
Object |
getObject(javax.rules.Handle h)
JSR94 spec entry point
|
Object |
getObject(MHandle h)
real entry point for
getObject(Handle) |
List<?> |
getObjects()
JSR94 spec entry point AND real entry point
|
List<?> |
getObjects(javax.rules.ObjectFilter filter)
JSR94 spec entry point AND real entry point
|
int |
getType() |
void |
removeObject(javax.rules.Handle h)
JSR94 spec entry point
|
Object |
removeObject(MHandle h)
real entry point for
removeObject(Handle) |
void |
reset()
JSR94 spec entry point AND real entry point
|
void |
updateObject(javax.rules.Handle h,
Object o)
JSR94 spec entry point
|
void |
updateObject(MHandle h,
Object o)
real entry point for
removeObject(Handle) |
check, clone, executeInternal, getDebugInfo, getDescription, getExecutionSet, getName, getRuleExecutionSetMetadata, isReleased, release, setDebugInfo, setDescription, setName
MStatefulRuleSession(IMRuleExecutionSet executionSet, Map<String,String> parameters)
public int getType()
getType
in interface javax.rules.RuleSession
public MHandle addObject(Object o) throws MInvalidRuleSessionException
addObject
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
public List<MHandle> addObjects(List l) throws MInvalidRuleSessionException
addObjects
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
public List<MHandle> addObjects(Collection<?> c) throws MInvalidRuleSessionException
addObjects(List)
MInvalidRuleSessionException
public boolean containsObject(javax.rules.Handle h) throws MInvalidRuleSessionException, javax.rules.InvalidHandleException
containsObject
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
javax.rules.InvalidHandleException
public boolean containsObject(MHandle h) throws MInvalidRuleSessionException, javax.rules.InvalidHandleException
containsObject(Handle)
MInvalidRuleSessionException
javax.rules.InvalidHandleException
public void executeRules() throws MInvalidRuleSessionException
executeRules
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
public List<MHandle> getHandles() throws MInvalidRuleSessionException
getHandles
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
public Object getObject(javax.rules.Handle h) throws javax.rules.InvalidHandleException, MInvalidRuleSessionException
getObject
in interface javax.rules.StatefulRuleSession
javax.rules.InvalidHandleException
MInvalidRuleSessionException
public Object getObject(MHandle h) throws MInvalidHandleException, MInvalidRuleSessionException
getObject(Handle)
public List<?> getObjects() throws MInvalidRuleSessionException
getObjects
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
public List<?> getObjects(javax.rules.ObjectFilter filter) throws MInvalidRuleSessionException
getObjects
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
public void removeObject(javax.rules.Handle h) throws javax.rules.InvalidHandleException, MInvalidRuleSessionException
removeObject
in interface javax.rules.StatefulRuleSession
javax.rules.InvalidHandleException
MInvalidRuleSessionException
public Object removeObject(MHandle h) throws javax.rules.InvalidHandleException, MInvalidRuleSessionException
removeObject(Handle)
javax.rules.InvalidHandleException
MInvalidRuleSessionException
public void reset() throws MInvalidRuleSessionException
reset
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
public void updateObject(javax.rules.Handle h, Object o) throws MInvalidRuleSessionException, javax.rules.InvalidHandleException
updateObject
in interface javax.rules.StatefulRuleSession
MInvalidRuleSessionException
javax.rules.InvalidHandleException
public void updateObject(MHandle h, Object o) throws MInvalidRuleSessionException, javax.rules.InvalidHandleException
removeObject(Handle)
MInvalidRuleSessionException
javax.rules.InvalidHandleException