Skip navigation links

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

E28847-01


oracle.eclipselink.coherence.integrated
Class EclipseLinkNativeCacheStore

java.lang.Object
  extended by com.tangosol.util.Base
      extended by oracle.eclipselink.coherence.integrated.EclipseLinkNativeCacheLoader
          extended by oracle.eclipselink.coherence.integrated.EclipseLinkNativeCacheStore

All Implemented Interfaces:
com.tangosol.net.cache.CacheLoader, com.tangosol.net.cache.CacheStore

public class EclipseLinkNativeCacheStore
extends EclipseLinkNativeCacheLoader
implements com.tangosol.net.cache.CacheStore

This is the Coherence Cache Store that should be used with native EclipseLink configuration (sessions.xml) when Coherence interceptors and redirectors have been set through a customizer. This is equivalent to the JPA integration but is used when the pre-existing application uses native EclipseLink configuration. The 'sessions.xml' file must be available on the classpath or packaged within a jar within the META-INF directory.

Coherence Configuration: In order to use the integrated EclipseLinkNativeCacheLoader or EclipseLinkNativeCacheStore the Coherence configuration XML file must specify the loader/store class as well as providing parameters for the cache-name and session name.

This cache store is used in cases where Coherence is expected to be writing as would be the case if 'Write behind' functionality was being used. The Coherence Cache configuration is the same as when using the EclipseLinkNativeCacheLoader.

Since:
Oracle TopLink 11g (11.1.1.4.0)
Author:
gyorke
See Also:
EclipseLinkNativeCacheLoader

Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.util.Base
com.tangosol.util.Base.LoggingWriter, com.tangosol.util.Base.StackFrame

 

Field Summary
protected  DeleteAllQuery daq
           

 

Fields inherited from class oracle.eclipselink.coherence.integrated.EclipseLinkNativeCacheLoader
descriptor, localManager, roq, session

 

Fields inherited from class com.tangosol.util.Base
LOG_ALWAYS, LOG_DEBUG, LOG_ERR, LOG_INFO, LOG_MAX, LOG_MIN, LOG_QUIET, LOG_WARN, POWER_0, POWER_G, POWER_K, POWER_M, POWER_T, UNIT_D, UNIT_H, UNIT_M, UNIT_MS, UNIT_NS, UNIT_S, UNIT_US

 

Constructor Summary
EclipseLinkNativeCacheStore(java.lang.String cacheName, java.lang.String sessionName)
           

 

Method Summary
protected  UnitOfWork acquireUnitOfWork(Session session)
           
 void erase(java.lang.Object id)
           
 void eraseAll(java.util.Collection ids)
           
 void store(java.lang.Object id, java.lang.Object entity)
           
protected  void store(java.lang.Object id, java.lang.Object entity, UnitOfWork uow)
           
 void storeAll(java.util.Map entities)
           

 

Methods inherited from class oracle.eclipselink.coherence.integrated.EclipseLinkNativeCacheLoader
getDescriptor, load, load, loadAll

 

Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, decimalValue, dup, dup, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, redirectAll, replace, setErr, setLog, setLogEcho, setOut, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface com.tangosol.net.cache.CacheLoader
load, loadAll

 

Field Detail

daq

protected DeleteAllQuery daq

Constructor Detail

EclipseLinkNativeCacheStore

public EclipseLinkNativeCacheStore(java.lang.String cacheName,
                                   java.lang.String sessionName)

Method Detail

erase

public void erase(java.lang.Object id)
Specified by:
erase in interface com.tangosol.net.cache.CacheStore

eraseAll

public void eraseAll(java.util.Collection ids)
Specified by:
eraseAll in interface com.tangosol.net.cache.CacheStore

store

public void store(java.lang.Object id,
                  java.lang.Object entity)
Specified by:
store in interface com.tangosol.net.cache.CacheStore

storeAll

public void storeAll(java.util.Map entities)
Specified by:
storeAll in interface com.tangosol.net.cache.CacheStore

store

protected void store(java.lang.Object id,
                     java.lang.Object entity,
                     UnitOfWork uow)

acquireUnitOfWork

protected UnitOfWork acquireUnitOfWork(Session session)

Skip navigation links

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