play.db
类 DBPlugin

java.lang.Object
  继承者 play.PlayPlugin
      继承者 play.db.DBPlugin
所有已实现的接口:
java.lang.Comparable<PlayPlugin>

public class DBPlugin
extends PlayPlugin

The DB plugin


嵌套类摘要
static class DBPlugin.ProxyDriver
          Needed because DriverManager will not load a driver outside of the system classloader
 
字段摘要
 
从类 play.PlayPlugin 继承的字段
index
 
构造方法摘要
DBPlugin()
           
 
方法摘要
protected  java.util.Set<java.lang.String> detectedExtraDBConfigs(java.util.Properties props)
          Looks for extra db configs in config.
 java.lang.String getStatus()
          Return the plugin status
 void invocationFinally()
          Called at the end of the invocation.
protected  boolean isDefaultDBConfigPresent(java.util.Properties props)
           
 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
 
从类 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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DBPlugin

public DBPlugin()
方法详细信息

rawInvocation

public boolean rawInvocation(Http.Request request,
                             Http.Response response)
                      throws java.lang.Exception
从类 PlayPlugin 复制的描述
Give a chance to this plugin to fully manage this request

覆盖:
PlayPlugin 中的 rawInvocation
参数:
request - The Play request
response - The Play response
返回:
true if this plugin has managed this request
抛出:
java.lang.Exception

onApplicationStart

public void onApplicationStart()
从类 PlayPlugin 复制的描述
Called at application start (and at each reloading) Time to start stateful things.

覆盖:
PlayPlugin 中的 onApplicationStart

isDefaultDBConfigPresent

protected boolean isDefaultDBConfigPresent(java.util.Properties props)
返回:
true if default db config properties is found

detectedExtraDBConfigs

protected java.util.Set<java.lang.String> detectedExtraDBConfigs(java.util.Properties props)
Looks for extra db configs in config. Properties starting with 'db_'

返回:
list of all extra db config names found

onApplicationStop

public void onApplicationStop()
从类 PlayPlugin 复制的描述
Called at application stop (and before each reloading) Time to shutdown stateful things.

覆盖:
PlayPlugin 中的 onApplicationStop

getStatus

public java.lang.String getStatus()
从类 PlayPlugin 复制的描述
Return the plugin status

覆盖:
PlayPlugin 中的 getStatus

invocationFinally

public void invocationFinally()
从类 PlayPlugin 复制的描述
Called at the end of the invocation. (even if an exception occured). Time to close request specific things.

覆盖:
PlayPlugin 中的 invocationFinally


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