|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.config.FlushClearCache
public class FlushClearCache
FlushClearCache persistence property defines modes of cache handling after em.flush call followed by em.clear call. This property could be specified while creating either EntityManagerFactory (createEntityManagerFactory or persistence.xml) or EntityManager (createEntityManager); the latter overrides the former.
JPA persistence property Usage:
properties.add(PersistenceUnitProperties.FLUSH_CLEAR_CACHE, FlushClearCache.Drop);
Values are case-insensitive. "" could be used instead of default value FlushClearCache.DEFAULT.
Field Summary | |
---|---|
static String |
DEFAULT
|
static String |
Drop
Call to clear method causes to drop the whole EntityManager cache. |
static String |
DropInvalidate
Call to clear method causes to drops the whole EntityManager cache, on commit the classes that have at least one object updated or deleted are invalidated in the shared cache. |
static String |
Merge
Call to clear method causes to drop from EntityManager cache only the objects that haven't been flushed. |
Constructor Summary | |
---|---|
FlushClearCache()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Merge
public static final String Drop
public static final String DropInvalidate
public static final String DEFAULT
Constructor Detail |
---|
public FlushClearCache()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |