Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


oracle.eclipselink.coherence.integrated.querying
Interface FilterFactory

All Known Implementing Classes:
EclipseLinkFilterFactory

public interface FilterFactory

Purpose: This interface provides the template for implementations of a Filter Factory. The Filter Factory is responsible for translating from EclipseLink queries to Coherence Filters. Custom implementations can be created and used by setting the class name within the Persistence Unit Property "eclipselink.coherence.filter-factory". Implementations must have a default constructor.

Since:
Oracle TopLink 11g (11.1.1.4.0)
Author:
Gordon Yorke

Field Summary
static com.tangosol.util.Filter NO_FILTER
          This constant represents a failure to translate the Filter.

 

Method Summary
 com.tangosol.util.Filter create(ObjectLevelReadQuery query, Record args, Session session)
          Given the query and the provided arguments translate this query into a Coherence Filter
 com.tangosol.util.InvocableMap.EntryAggregator createAggregator(org.eclipse.persistence.internal.queries.ReportItem item, ReportQuery query, Record args, org.eclipse.persistence.internal.sessions.AbstractSession session)
          Translates ReportQueryItem into an equivalent Coherence aggregation artifact.
 FilterExtractor createValueExtractor(Expression baseExpression, org.eclipse.persistence.internal.sessions.AbstractSession session)
          Creates a valueExtract that should be used for this Expression.
 com.tangosol.util.InvocableMap.EntryProcessor createValueExtractor(org.eclipse.persistence.internal.queries.ReportItem item, ReportQuery query, Record args, org.eclipse.persistence.internal.sessions.AbstractSession session)
          Create a value Extraction to return the selection of the ReportQuery

 

Field Detail

NO_FILTER

static final com.tangosol.util.Filter NO_FILTER
This constant represents a failure to translate the Filter. Any factory that is unable to translate the filter must return this value.

Method Detail

create

com.tangosol.util.Filter create(ObjectLevelReadQuery query,
                                Record args,
                                Session session)
Given the query and the provided arguments translate this query into a Coherence Filter

createValueExtractor

FilterExtractor createValueExtractor(Expression baseExpression,
                                     org.eclipse.persistence.internal.sessions.AbstractSession session)
Creates a valueExtract that should be used for this Expression.

createAggregator

com.tangosol.util.InvocableMap.EntryAggregator createAggregator(org.eclipse.persistence.internal.queries.ReportItem item,
                                                                ReportQuery query,
                                                                Record args,
                                                                org.eclipse.persistence.internal.sessions.AbstractSession session)
Translates ReportQueryItem into an equivalent Coherence aggregation artifact. Called when the Query is returning aggregations

createValueExtractor

com.tangosol.util.InvocableMap.EntryProcessor createValueExtractor(org.eclipse.persistence.internal.queries.ReportItem item,
                                                                   ReportQuery query,
                                                                   Record args,
                                                                   org.eclipse.persistence.internal.sessions.AbstractSession session)
Create a value Extraction to return the selection of the ReportQuery

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.