org.opencredo.esper
Interface EsperStatementOperations

All Known Implementing Classes:
EsperStatement

public interface EsperStatementOperations

Esper support the capability to 'pull' query filter results from a statement. This interface expresses the simplified Esper 'pull' query operations. For more information on 'pull' operations, see ://esper.codehaus.org /esper-3.3.0/doc/reference/en/html/api.html#api-receive-results

Author:
Russ Miles (russ.miles@opencredo.com)
See Also:
EsperStatement

Method Summary
<T> java.util.List<T>
concurrentSafeQuery(ParameterizedEsperRowMapper<T> rm)
          Performs a concurrency safe 'pull' to retrieve query filtered results from the esper statement.
<T> T
concurrentSafeQueryForObject(ParameterizedEsperRowMapper<T> rm)
          Performs a concurrency safe 'pull' to retrieve query filtered results from the esper statement.
<T> java.util.List<T>
concurrentUnsafeQuery(ParameterizedEsperRowMapper<T> rm)
          Performs a concurrency unsafe 'pull' (i.e.
<T> T
concurrentUnsafeQueryForObject(ParameterizedEsperRowMapper<T> rm)
          Performs a concurrency unsafe 'pull' (i.e.
 

Method Detail

concurrentSafeQueryForObject

<T> T concurrentSafeQueryForObject(ParameterizedEsperRowMapper<T> rm)
Performs a concurrency safe 'pull' to retrieve query filtered results from the esper statement. Be aware that this operation will lock the underlying esper statement resources while executing.

Parameters:
rm - the ParameterizedEsperRowMapper to use for result mapping
Returns:
the single mapped object

concurrentSafeQuery

<T> java.util.List<T> concurrentSafeQuery(ParameterizedEsperRowMapper<T> rm)
Performs a concurrency safe 'pull' to retrieve query filtered results from the esper statement. The supplied ParameterizedEsperRowMapper is then used to populate the objects that are then collected together and returned as a List.

Parameters:
rm - the ParameterizedEsperRowMapper to use for result mapping
Returns:
a list containing all the objects mapped from the query results

concurrentUnsafeQueryForObject

<T> T concurrentUnsafeQueryForObject(ParameterizedEsperRowMapper<T> rm)
Performs a concurrency unsafe 'pull' (i.e. should only be used in a single threaded environment) to retrieve a query filtered result from the esper statement. The supplied ParameterizedEsperRowMapper is then used to populate the object that is returned.

Parameters:
rm - the ParameterizedEsperRowMapper to use for result mapping
Returns:
the mapped object

concurrentUnsafeQuery

<T> java.util.List<T> concurrentUnsafeQuery(ParameterizedEsperRowMapper<T> rm)
Performs a concurrency unsafe 'pull' (i.e. should only be used in a single threaded environment) to retrieve query filtered results from the esper statement. The supplied ParameterizedEsperRowMapper is then used to populate the objects that are then collected together and returned as a List.

Parameters:
rm - the ParameterizedEsperRowMapper to use for result mapping
Returns:
a list containing all the objects mapped from the query results


Copyright © 2010. All Rights Reserved.