play.db
Class DBPlugin

java.lang.Object
  extended by play.PlayPlugin
      extended by play.db.DBPlugin
All Implemented Interfaces:
java.lang.Comparable<PlayPlugin>

public class DBPlugin
extends PlayPlugin

The DB plugin


Nested Class Summary
static class DBPlugin.PlayConnectionCustomizer
           
static class DBPlugin.ProxyDriver
          Needed because DriverManager will not load a driver ouside of the system classloader
 
Field Summary
static java.lang.String url
           
 
Fields inherited from class play.PlayPlugin
index
 
Constructor Summary
DBPlugin()
           
 
Method Summary
 java.lang.String getStatus()
          Return the plugin status
 void invocationFinally()
          Called at the end of the invocation.
 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.
 boolean rawInvocation(Http.Request request, Http.Response response)
          Give a chance to this plugin to fully manage this request
 
Methods inherited from class play.PlayPlugin
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterApplicationStart, afterFixtureLoad, afterInvocation, beforeActionInvocation, beforeDetectingChanges, beforeInvocation, bind, bind, bind, bindBean, compareTo, compileAll, compileSources, detectChange, detectClassesChange, enhance, getJsonStatus, getMessage, loadTemplate, modelFactory, onActionInvocationResult, onApplicationReady, onClassesChange, onConfigurationRead, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, routeRequest, runTest, serveStatic, unBind, willBeValidated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

public static java.lang.String url
Constructor Detail

DBPlugin

public DBPlugin()
Method Detail

rawInvocation

public boolean rawInvocation(Http.Request request,
                             Http.Response response)
                      throws java.lang.Exception
Description copied from class: PlayPlugin
Give a chance to this plugin to fully manage this request

Overrides:
rawInvocation in class PlayPlugin
Parameters:
request - The Play request
response - The Play response
Returns:
true if this plugin has managed this request
Throws:
java.lang.Exception

onApplicationStart

public void onApplicationStart()
Description copied from class: PlayPlugin
Called at application start (and at each reloading) Time to start stateful things.

Overrides:
onApplicationStart in class PlayPlugin

onApplicationStop

public void onApplicationStop()
Description copied from class: PlayPlugin
Called at application stop (and before each reloading) Time to shutdown stateful things.

Overrides:
onApplicationStop in class PlayPlugin

getStatus

public java.lang.String getStatus()
Description copied from class: PlayPlugin
Return the plugin status

Overrides:
getStatus in class PlayPlugin

invocationFinally

public void invocationFinally()
Description copied from class: PlayPlugin
Called at the end of the invocation. (even if an exception occured). Time to close request specific things.

Overrides:
invocationFinally in class PlayPlugin


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly