java.lang.Object
io.ebean.bean.PersistenceContext.WithOption
- Enclosing interface:
- PersistenceContext
Wrapper on a bean to also indicate if a bean has been deleted.
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PersistenceContext.WithOption
The bean was previously deleted from this persistence context (can't hit L2 cache). -
Constructor Summary
ConstructorDescriptionWithOption
(Object bean) The bean exists in the persistence context (and not been previously deleted). -
Method Summary
-
Field Details
-
DELETED
The bean was previously deleted from this persistence context (can't hit L2 cache).
-
-
Constructor Details
-
WithOption
The bean exists in the persistence context (and not been previously deleted).
-
-
Method Details
-
isDeleted
public boolean isDeleted()Return true if the bean was deleted. This means you can't hit the L2 cache. -
getBean
Return the bean (from the persistence context).
-