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 |
---|
WithOption(Object bean)
The bean exists in the persistence context (and not been previously deleted).
|
Modifier and Type | Method and Description |
---|---|
Object |
getBean()
Return the bean (from the persistence context).
|
boolean |
isDeleted()
Return true if the bean was deleted.
|
public static final PersistenceContext.WithOption DELETED
public WithOption(Object bean)
Copyright © 2019. All rights reserved.