play.api.db

PooledDatabase

class PooledDatabase extends DefaultDatabase

Default implementation of the database API using a connection pool.

Source
Database.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PooledDatabase
  2. DefaultDatabase
  3. Database
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PooledDatabase(name: String, configuration: Configuration)

  2. new PooledDatabase(name: String, configuration: Configuration, classLoader: ClassLoader, pool: ConnectionPool)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def closeDataSource(dataSource: DataSource): Unit

    Definition Classes
    PooledDatabaseDefaultDatabase
  7. def createDataSource(): DataSource

    Definition Classes
    PooledDatabaseDefaultDatabase
  8. lazy val dataSource: DataSource

    The underlying JDBC data source for this database.

    The underlying JDBC data source for this database.

    Definition Classes
    DefaultDatabaseDatabase
  9. def deregisterDriver(): Unit

    Definition Classes
    DefaultDatabase
  10. lazy val driver: Driver

    Definition Classes
    DefaultDatabase
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def getConnection(autocommit: Boolean): Connection

    Get a JDBC connection from the underlying data source.

    Get a JDBC connection from the underlying data source.

    Don't forget to release the connection at some point by calling close().

    autocommit

    determines whether to autocommit the connection

    returns

    a JDBC connection

    Definition Classes
    DefaultDatabaseDatabase
  16. def getConnection(): Connection

    Get a JDBC connection from the underlying data source.

    Get a JDBC connection from the underlying data source. Autocommit is enabled by default.

    Don't forget to release the connection at some point by calling close().

    returns

    a JDBC connection

    Definition Classes
    DefaultDatabaseDatabase
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. val name: String

    The configuration name for this database.

    The configuration name for this database.

    Definition Classes
    DefaultDatabaseDatabase
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def shutdown(): Unit

    Shutdown this database, closing the underlying data source.

    Shutdown this database, closing the underlying data source.

    Definition Classes
    DefaultDatabaseDatabase
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. lazy val url: String

    The JDBC connection URL this database, i.e.

    The JDBC connection URL this database, i.e. jdbc:... Normally retrieved via a connection.

    Definition Classes
    DefaultDatabaseDatabase
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def withConnection[A](autocommit: Boolean)(block: (Connection) ⇒ A): A

    Execute a block of code, providing a JDBC connection.

    Execute a block of code, providing a JDBC connection. The connection and all created statements are automatically released.

    autocommit

    determines whether to autocommit the connection

    block

    code to execute

    returns

    the result of the code block

    Definition Classes
    DefaultDatabaseDatabase
  31. def withConnection[A](block: (Connection) ⇒ A): A

    Execute a block of code, providing a JDBC connection.

    Execute a block of code, providing a JDBC connection. The connection and all created statements are automatically released.

    block

    code to execute

    returns

    the result of the code block

    Definition Classes
    DefaultDatabaseDatabase
  32. def withTransaction[A](block: (Connection) ⇒ A): A

    Execute a block of code in the scope of a JDBC transaction.

    Execute a block of code in the scope of a JDBC transaction. The connection and all created statements are automatically released. The transaction is automatically committed, unless an exception occurs.

    block

    code to execute

    returns

    the result of the code block

    Definition Classes
    DefaultDatabaseDatabase

Inherited from DefaultDatabase

Inherited from Database

Inherited from AnyRef

Inherited from Any

Ungrouped