|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.Plugin play.db.jpa.JPAPlugin
public class JPAPlugin
A Play plugin that automatically manages JPA configuration.
Constructor Summary | |
---|---|
JPAPlugin(Application application)
|
Method Summary | |
---|---|
javax.persistence.EntityManager |
em(java.lang.String key)
|
boolean |
enabled()
Is this plugin enabled. |
void |
onStart()
Reads the configuration file and initialises required JPA EntityManagerFactories. |
void |
onStop()
Called when the application stops. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JPAPlugin(Application application)
Method Detail |
---|
public void onStart()
onStart
in interface play.api.Plugin
onStart
in class Plugin
public boolean enabled()
Plugin
enabled
in interface play.api.Plugin
enabled
in class Plugin
public void onStop()
Plugin
onStop
in interface play.api.Plugin
onStop
in class Plugin
public javax.persistence.EntityManager em(java.lang.String key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |