public class InsertObjectToCoherence extends CoherenceRedirector implements QueryRedirector
Purpose: This Query Redirector should be set on any class that is stored within Coherence and Coherence will be used for data storage. With this Redirector set TopLink will not issue any SQL for Inserts unless this class is using Identity Sequencing. Coherence will be responsible for all database interaction. 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
Constructor and Description |
---|
InsertObjectToCoherence() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invokeQuery(DatabaseQuery query, Record arguments, Session session)
REQUIRED: Perform the query.
|
public java.lang.Object invokeQuery(DatabaseQuery query, Record arguments, Session session)
QueryRedirector
invokeQuery
in interface QueryRedirector