scalikejdbc

ConnectionPool

object ConnectionPool extends LogSupport

Connection Pool

Using Commons DBCP internally.

See also

http://commons.apache.org/dbcp/

Linear Supertypes
LogSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ConnectionPool
  2. LogSupport
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. type CPFactory = ConnectionPoolFactory

  2. type CPSettings = ConnectionPoolSettings

  3. type MutableMap [A, B] = HashMap[A, B]

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

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

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. val DEFAULT_NAME : Symbol

  7. def add (name: Any, url: String, user: String, password: String, settings: CPSettings = ConnectionPoolSettings())(implicit factory: CPFactory = CommonsConnectionPoolFactory): Unit

    Register new named Connection pool.

    Register new named Connection pool.

    name

    pool name

    url

    JDBC URL

    user

    JDBC username

    password

    JDBC password

    settings

    Settings

  8. def apply (name: Any = DEFAULT_NAME): ConnectionPool

    Returns Connection pool.

    Returns Connection pool. If the specified Connection pool does not exist, returns null.

    name

    pool name

    returns

    connection pool

  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def borrow (name: Any = DEFAULT_NAME): Connection

    Borrows a java.

    Borrows a java.sql.Connection from the specified connection pool.

    name

    pool name

    returns

    connection

  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def close (name: Any = DEFAULT_NAME): Unit

    Close a pool by name

    Close a pool by name

    name

    pool name

  13. def closeAll (): Unit

    Close all connection pools

  14. def dataSource (name: Any = DEFAULT_NAME): DataSource

    Returns javax.

    Returns javax.sql.DataSource.

    name

    pool name

    returns

    datasource

  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def get (name: Any = DEFAULT_NAME): ConnectionPool

    Returns Connection pool.

    Returns Connection pool. If the specified Connection pool does not exist, returns null.

    name

    pool name

    returns

    connection pool

  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  20. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  21. def isInitialized (name: Any = DEFAULT_NAME): Boolean

    Returns true when the specified Connection pool is already initialized.

    Returns true when the specified Connection pool is already initialized.

    name

    pool name

    returns

    is initialized

  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. val log : Log

    Logger

    Logger

    Attributes
    protected
    Definition Classes
    LogSupport
  24. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def singleton (url: String, user: String, password: String, settings: CPSettings = ConnectionPoolSettings())(implicit factory: CPFactory = CommonsConnectionPoolFactory): Unit

    Register the default Connection pool.

    Register the default Connection pool.

    url

    JDBC URL

    user

    JDBC username

    password

    JDBC password

    settings

    Settings

  28. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  29. def toString (): String

    Definition Classes
    AnyRef → Any
  30. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from LogSupport

Inherited from AnyRef

Inherited from Any