|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.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. |
Object |
bind(String name,
Class clazz,
Type type,
Map<String,String[]> params)
Called when play need to bind a Java object from HTTP params |
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(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, beforeDetectingChanges, compareTo, compileAll, detectChange, enhance, getJsonStatus, 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 Object bind(String name,
Class clazz,
Type type,
Map<String,String[]> params)
PlayPlugin
bind in class PlayPluginpublic void onApplicationStart()
PlayPlugin
onApplicationStart in class PlayPluginpublic void onApplicationStop()
PlayPlugin
onApplicationStop in class PlayPluginpublic void beforeInvocation()
PlayPlugin
beforeInvocation in class PlayPluginpublic void afterInvocation()
PlayPlugin
afterInvocation in class PlayPluginpublic void afterActionInvocation()
PlayPlugin
afterActionInvocation in class PlayPluginpublic void onInvocationException(Throwable e)
PlayPlugin
onInvocationException in class PlayPlugine - The catched exception.public void invocationFinally()
PlayPlugin
invocationFinally in class PlayPluginpublic 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 | |||||||||