|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WriteBehindCache
The WriteBehindCache stores updates to entities before flushing to the
database. A WriteBehindCallback
instance will be used to write the
changes to the database.
Method Summary | |
---|---|
List<Exception> |
add(Collection<OpenJPAStateManager> sms)
Add the provided StateManagerImpl s to the cache. |
void |
clear()
Remove all entities from the cache. |
boolean |
contains(Object o)
Answer whether the provided object is included in the WriteBehindCache |
WriteBehindCacheKey |
getKey(OpenJPAStateManager sm)
Obtain a cache key for the provided StateManagerImpl . |
String |
getName()
Returns a string name that can be used by end-user-visible code to identify this cache. |
int |
getSize()
Obtain the number of entities in the cache. |
Collection<OpenJPAStateManager> |
getStateManagers()
Obtain the StateManagers currently in the cache. |
void |
initialize(WriteBehindCacheManager manager)
Initialize any resources associated with the given WriteBehindCacheManager . |
boolean |
isEmpty()
Determine whether the cache is empty. |
void |
setName(String name)
Sets a string name to be used to identify this cache to end-user needs. |
Method Detail |
---|
int getSize()
boolean contains(Object o)
o
- Object which may be in the cache
String getName()
void setName(String name)
List<Exception> add(Collection<OpenJPAStateManager> sms)
StateManagerImpl
s to the cache. Mimics the
StoreManager.flush() method. If the StateManagers cannot be added to the
cache or if any exceptions occur they will be returned to the caller in a
collection.
sms
- StateManagerImpls to add.
Collection<OpenJPAStateManager> getStateManagers()
void initialize(WriteBehindCacheManager manager)
WriteBehindCacheManager
.
WriteBehindCacheKey getKey(OpenJPAStateManager sm)
StateManagerImpl
.
sm
- A StateManager
boolean isEmpty()
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |