public class FlushClearCache
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT |
static java.lang.String |
Drop
Call to clear method causes to drop the whole EntityManager cache.
|
static java.lang.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 java.lang.String |
Merge
Call to clear method causes to drop from EntityManager cache only the objects that haven't been flushed.
|
Constructor and Description |
---|
FlushClearCache() |
public static final java.lang.String Merge
public static final java.lang.String Drop
public static final java.lang.String DropInvalidate
public static final java.lang.String DEFAULT