Package io.ebean.bean
Class PersistenceContext.WithOption
- java.lang.Object
-
- io.ebean.bean.PersistenceContext.WithOption
-
- Enclosing interface:
- PersistenceContext
public static class PersistenceContext.WithOption extends Object
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
Fields Modifier and Type Field Description static PersistenceContext.WithOption
DELETED
The bean was previously deleted from this persistence context (can't hit L2 cache).
-
Constructor Summary
Constructors Constructor Description WithOption(Object bean)
The bean exists in the persistence context (and not been previously deleted).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getBean()
Return the bean (from the persistence context).boolean
isDeleted()
Return true if the bean was deleted.
-
-
-
Field Detail
-
DELETED
public static final PersistenceContext.WithOption DELETED
The bean was previously deleted from this persistence context (can't hit L2 cache).
-
-
Constructor Detail
-
WithOption
public WithOption(Object bean)
The bean exists in the persistence context (and not been previously deleted).
-
-