|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.PlayPlugin play.db.jpa.JPAPlugin
public class JPAPlugin
JPA Plugin
Field Summary | |
---|---|
static boolean |
autoTxs
|
Fields inherited from class play.PlayPlugin |
---|
index |
Constructor Summary | |
---|---|
JPAPlugin()
|
Method Summary | |
---|---|
void |
afterActionInvocation()
Called at the end of the action invocation. |
void |
afterInvocation()
Called after an invocation. |
void |
beforeInvocation()
Called before a Play! invocation. |
static void |
closeTx(boolean rollback)
clear current JPA context and transaction |
void |
invocationFinally()
Called at the end of the invocation. |
void |
onApplicationStart()
Called at application start (and at each reloading) Time to start statefull things. |
void |
onApplicationStop()
Called at application stop (and before each reloading) Time to shutdown statefull things. |
void |
onInvocationException(java.lang.Throwable e)
Called if an exception occured during the invocation. |
static void |
startTx(boolean readonly)
initialize the JPA context and starts a JPA transaction |
Methods inherited from class play.PlayPlugin |
---|
afterApplicationStart, beforeActionInvocation, compareTo, compileAll, detectChange, enhance, getStatus, onActionInvocationResult, onConfigurationRead, onEvent, onLoad, onRoutesLoaded, postEvent, rawInvocation, routeRequest, serveStatic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean autoTxs
Constructor Detail |
---|
public JPAPlugin()
Method Detail |
---|
public void onApplicationStart()
PlayPlugin
onApplicationStart
in class PlayPlugin
public void onApplicationStop()
PlayPlugin
onApplicationStop
in class PlayPlugin
public void beforeInvocation()
PlayPlugin
beforeInvocation
in class PlayPlugin
public void afterInvocation()
PlayPlugin
afterInvocation
in class PlayPlugin
public void afterActionInvocation()
PlayPlugin
afterActionInvocation
in class PlayPlugin
public void onInvocationException(java.lang.Throwable e)
PlayPlugin
onInvocationException
in class PlayPlugin
e
- The catched exception.public void invocationFinally()
PlayPlugin
invocationFinally
in class PlayPlugin
public static void startTx(boolean readonly)
readonly
- true for a readonly transactionpublic static void closeTx(boolean rollback)
rollback
- shall current transaction be committed (false) or cancelled (true)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |