org.drools.reteoo
Class ReteStatelessSessionResult

java.lang.Object
  extended by org.drools.reteoo.ReteStatelessSessionResult
All Implemented Interfaces:
Externalizable, Serializable, StatelessSessionResult

public class ReteStatelessSessionResult
extends Object
implements StatelessSessionResult, Externalizable

See Also:
Serialized Form

Constructor Summary
ReteStatelessSessionResult()
           
ReteStatelessSessionResult(InternalWorkingMemory workingMemory, GlobalResolver globalResolver)
           
 
Method Summary
 Object getGlobal(String identifier)
          Retrieves the global value for the given identifier, note that globals must be exported from the StatelessSession to be accessible.
 GlobalResolver getGlobalResolver()
          The GlobalResolver returned from the GlobalExporter by the StatelessSessoin
 QueryResults getQueryResults(String query)
          Retrieve the QueryResults of the specified query.
 QueryResults getQueryResults(String query, Object[] arguments)
          Allows for parameters to be passed to a query.
 Iterator iterateObjects()
          Iterator all Objects inserted into the StatelessSession.
 Iterator iterateObjects(org.drools.runtime.ObjectFilter filter)
          Iterate only those objects that match the provided ObjectFilter.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReteStatelessSessionResult

public ReteStatelessSessionResult()

ReteStatelessSessionResult

public ReteStatelessSessionResult(InternalWorkingMemory workingMemory,
                                  GlobalResolver globalResolver)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getQueryResults

public QueryResults getQueryResults(String query)
Description copied from interface: StatelessSessionResult
Retrieve the QueryResults of the specified query.

Specified by:
getQueryResults in interface StatelessSessionResult
Parameters:
query - The name of the query.
Returns:
The QueryResults of the specified query. If no results match the query it is empty..

getQueryResults

public QueryResults getQueryResults(String query,
                                    Object[] arguments)
Description copied from interface: StatelessSessionResult
Allows for parameters to be passed to a query.

Specified by:
getQueryResults in interface StatelessSessionResult
Parameters:
query - The name of the query.
arguments - The Object[] of arguments to pass to the query's parameters.
Returns:
java.util.Iterator.

iterateObjects

public Iterator iterateObjects()
Description copied from interface: StatelessSessionResult
Iterator all Objects inserted into the StatelessSession.

Specified by:
iterateObjects in interface StatelessSessionResult
Returns:
java.util.Iterators.

iterateObjects

public Iterator iterateObjects(org.drools.runtime.ObjectFilter filter)
Description copied from interface: StatelessSessionResult
Iterate only those objects that match the provided ObjectFilter.

Specified by:
iterateObjects in interface StatelessSessionResult
Parameters:
filter - The ObjectFilter instance.
Returns:
java.util.Iterators.

getGlobal

public Object getGlobal(String identifier)
Description copied from interface: StatelessSessionResult
Retrieves the global value for the given identifier, note that globals must be exported from the StatelessSession to be accessible.

Specified by:
getGlobal in interface StatelessSessionResult
Parameters:
identifier - The global identifier.
Returns:
The instance the global identifier points to.

getGlobalResolver

public GlobalResolver getGlobalResolver()
Description copied from interface: StatelessSessionResult
The GlobalResolver returned from the GlobalExporter by the StatelessSessoin

Specified by:
getGlobalResolver in interface StatelessSessionResult
Returns:
The GlobalResolver used for this StatelessSessionResult


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.