|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WriteBehindCallback
The WriteBehindCallback is responsible for flushing changes to the database when OpenJPA is used in a Write-Behind mode.
| Method Summary | |
|---|---|
void |
close()
Close the WriteBehindCallback releasing resources to the JVM |
Collection<Exception> |
flush()
Manually flush changes to the database. |
void |
initialize(Broker broker,
WriteBehindCache cache)
Initialize the WriteBehindCallback. |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Method Detail |
|---|
void initialize(Broker broker,
WriteBehindCache cache)
broker - A new broker instance that the writebehind callback will use
to flush changes to the database.cache - A WriteBehindCache which contains the inflight
changes.Collection<Exception> flush()
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||