Package play.db

Class DBPlugin

  • All Implemented Interfaces:
    java.lang.Comparable<PlayPlugin>

    public class DBPlugin
    extends PlayPlugin
    • Field Detail

      • url

        public static java.lang.String url
    • Constructor Detail

      • DBPlugin

        public DBPlugin()
    • Method Detail

      • 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
      • testDataSource

        protected java.lang.String testDataSource​(javax.sql.DataSource ds)
                                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • 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
      • invocationFinally

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