|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectplay.PlayPlugin
play.db.jpa.JPAPlugin
public class JPAPlugin
JPA Plugin
嵌套类摘要 | |
---|---|
static class |
JPAPlugin.JPAModelLoader
|
字段摘要 | |
---|---|
static boolean |
autoTxs
|
从类 play.PlayPlugin 继承的字段 |
---|
index |
构造方法摘要 | |
---|---|
JPAPlugin()
|
方法摘要 | |
---|---|
void |
afterFixtureLoad()
|
void |
afterInvocation()
Called after an invocation. |
void |
beforeInvocation()
Called before a Play! |
java.lang.Object |
bind(RootParamNode rootParamNode,
java.lang.String name,
java.lang.Class clazz,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
Called when play need to bind a Java object from HTTP params. |
java.lang.Object |
bindBean(RootParamNode rootParamNode,
java.lang.String name,
java.lang.Object bean)
Called when play need to bind an existing Java object from HTTP params. |
protected static void |
closeTx(boolean rollback)
clear current JPA context and transaction if JPAPlugin.autoTxs is true When using multiple databases in the same request this method tries to commit/rollback as many transactions as possible, but there is not guaranteed that all transactions are committed. |
void |
enhance(ApplicationClasses.ApplicationClass applicationClass)
Enhance this class |
protected java.lang.String |
getConfigInfoString(java.lang.String configName)
returns empty string if default config. |
void |
invocationFinally()
Called at the end of the invocation. |
Model.Factory |
modelFactory(java.lang.Class<? extends Model> modelClass)
|
void |
onApplicationStart()
Called at application start (and at each reloading) Time to start stateful things. |
void |
onApplicationStop()
Called at application stop (and before each reloading) Time to shutdown stateful things. |
void |
onInvocationException(java.lang.Throwable e)
Called if an exception occured during the invocation. |
static void |
startTx(boolean readonly)
已过时。 use @Transactional with readOnly-property instead |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static boolean autoTxs
构造方法详细信息 |
---|
public JPAPlugin()
方法详细信息 |
---|
public java.lang.Object bind(RootParamNode rootParamNode, java.lang.String name, java.lang.Class clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations)
PlayPlugin
复制的描述
PlayPlugin
中的 bind
public java.lang.Object bindBean(RootParamNode rootParamNode, java.lang.String name, java.lang.Object bean)
PlayPlugin
复制的描述
PlayPlugin
中的 bindBean
public void enhance(ApplicationClasses.ApplicationClass applicationClass) throws java.lang.Exception
PlayPlugin
复制的描述
PlayPlugin
中的 enhance
java.lang.Exception
protected java.lang.String getConfigInfoString(java.lang.String configName)
public void onApplicationStart()
PlayPlugin
复制的描述
PlayPlugin
中的 onApplicationStart
public void onApplicationStop()
PlayPlugin
复制的描述
PlayPlugin
中的 onApplicationStop
public void beforeInvocation()
PlayPlugin
复制的描述
PlayPlugin
中的 beforeInvocation
public void afterInvocation()
PlayPlugin
复制的描述
PlayPlugin
中的 afterInvocation
public void onInvocationException(java.lang.Throwable e)
PlayPlugin
复制的描述
PlayPlugin
中的 onInvocationException
e
- The catched exception.public void invocationFinally()
PlayPlugin
复制的描述
PlayPlugin
中的 invocationFinally
@Deprecated public static void startTx(boolean readonly)
readonly
- true for a readonly transactionprotected static void closeTx(boolean rollback)
rollback
- shall current transaction be committed (false) or cancelled (true)public Model.Factory modelFactory(java.lang.Class<? extends Model> modelClass)
PlayPlugin
中的 modelFactory
public void afterFixtureLoad()
PlayPlugin
中的 afterFixtureLoad
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |