|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.eclipselink.coherence.integrated.internal.querying.CoherenceRedirector
oracle.eclipselink.coherence.integrated.querying.ReadAllFromCoherence
public class ReadAllFromCoherence
Purpose: This Query Redirector should be set on any class or query where the user wants Coherence to be checked for data instead of the database. With this Redirector set TopLink will not issue any SQL for Reads unless the query can not be translated into a Coherence filter. Developers should note that Coherence will return only those object that are in the Cache any objects that may fit the query but remain on the database only will not be returned. Developers should set the Coherence Cache name that corresponds to this class in a descriptor property called "coherence.cache.name". Each class should have its own Cache unless the PK's of the instances are unique amoung all classes stored in a single cache This Redirector can be set on the class descriptor through a Session or Descriptor customizer or annotations.
setDefaultInsertQueryRedirector(QueryRedirector)
, QueryRedirectors
, Serialized FormField Summary |
---|
Fields inherited from class oracle.eclipselink.coherence.integrated.internal.querying.CoherenceRedirector |
---|
filterFactory, namedCache, shouldTranslatePKs, translationDelegate |
Constructor Summary | |
---|---|
ReadAllFromCoherence() |
Method Summary | |
---|---|
java.lang.Object |
invokeQuery(DatabaseQuery query, Record arguments, Session session) REQUIRED: Perform the query. |
Methods inherited from class oracle.eclipselink.coherence.integrated.internal.querying.CoherenceRedirector |
---|
getFilterFactory, getNamedCache, getTranslationFailureDelegate, shouldTranslatePKs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadAllFromCoherence()
Method Detail |
---|
public java.lang.Object invokeQuery(DatabaseQuery query, Record arguments, Session session)
QueryRedirector
invokeQuery
in interface QueryRedirector
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |