public static class PersistenceContext.WithOption extends Object
If a bean has been deleted then for the same persistence context is should not be able to be fetched from persistence context or L2 cache.
| Modifier and Type | Field and Description |
|---|---|
static PersistenceContext.WithOption |
DELETED
The bean was previously deleted from this persistence context (can't hit
L2 cache).
|
| Constructor and Description |
|---|
PersistenceContext.WithOption(Object bean)
The bean exists in the persistence context (and not been previously deleted).
|
public static PersistenceContext.WithOption DELETED
public PersistenceContext.WithOption(Object bean)
public boolean isDeleted()
public Object getBean()
Copyright © 2014. All Rights Reserved.