Package play.db

Class DefaultDBApi

  • All Implemented Interfaces:
    play.db.DBApi

    @Singleton
    public class DefaultDBApi
    extends java.lang.Object
    implements play.db.DBApi
    Default delegating implementation of the DB API.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultDBApi​(play.api.db.DBApi dbApi)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      play.db.Database getDatabase​(java.lang.String name)  
      java.util.List<play.db.Database> getDatabases()  
      void shutdown()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultDBApi

        @Inject
        public DefaultDBApi​(play.api.db.DBApi dbApi)
    • Method Detail

      • getDatabases

        public java.util.List<play.db.Database> getDatabases()
        Specified by:
        getDatabases in interface play.db.DBApi
      • getDatabase

        public play.db.Database getDatabase​(java.lang.String name)
        Specified by:
        getDatabase in interface play.db.DBApi
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface play.db.DBApi