Object/Class

scalikejdbc

ConnectionPool

Related Docs: class ConnectionPool | package scalikejdbc

Permalink

object ConnectionPool extends LogSupport

Connection Pool

The default implementation uses Commons DBCP 2 internally.

Source
ConnectionPool.scala
See also

https://commons.apache.org/proper/commons-dbcp/

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

Type Members

  1. type CPFactory = ConnectionPoolFactory

    Permalink
  2. type CPSettings = ConnectionPoolSettings

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

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val DEFAULT_CONNECTION_POOL_FACTORY: Commons2ConnectionPoolFactory.type

    Permalink
  5. val DEFAULT_NAME: Symbol

    Permalink
  6. def add(name: Any, dataSource: AuthenticatedDataSourceConnectionPool): Unit

    Permalink

    Registers new named Connection pool.

    Registers new named Connection pool.

    name

    pool name

    dataSource

    DataSource based ConnectionPool

  7. def add(name: Any, dataSource: DataSourceConnectionPool): Unit

    Permalink

    Registers new named Connection pool.

    Registers new named Connection pool.

    name

    pool name

    dataSource

    DataSource based ConnectionPool

  8. def add(name: Any, url: String, user: String, password: String, settings: CPSettings = ConnectionPoolSettings())(implicit factory: CPFactory = DEFAULT_CONNECTION_POOL_FACTORY, ec: ExecutionContext = DEFAULT_EXECUTION_CONTEXT): Unit

    Permalink

    Registers new named Connection pool.

    Registers new named Connection pool.

    name

    pool name

    url

    JDBC URL

    user

    JDBC username

    password

    JDBC password

    settings

    Settings

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

    Permalink

    Returns Connection pool.

    Returns Connection pool. If the specified Connection pool does not exist, throws IllegalStateException.

    name

    pool name

    returns

    connection pool

    Exceptions thrown

    IllegalStateException if the specified Connection pool does not exist

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def borrow(name: Any = DEFAULT_NAME): Connection

    Permalink

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

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

    name

    pool name

    returns

    connection

  12. def clone(): AnyRef

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

    Permalink

    Close a pool by name

    Close a pool by name

    name

    pool name

  14. def closeAll(): Unit

    Permalink

    Close all connection pools

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

    Permalink

    Returns javax.sql.DataSource.

    Returns javax.sql.DataSource.

    name

    pool name

    returns

    datasource

  16. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def get(name: Any = DEFAULT_NAME): ConnectionPool

    Permalink

    Returns Connection pool.

    Returns Connection pool. If the specified Connection pool does not exist, throws IllegalStateException.

    name

    pool name

    returns

    connection pool

    Exceptions thrown

    IllegalStateException if the specified Connection pool does not exist

  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

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

    Permalink

    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

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. val log: Log

    Permalink

    Logger

    Logger

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

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def singleton(dataSource: AuthenticatedDataSourceConnectionPool): Unit

    Permalink

    Registers the default Connection pool.

    Registers the default Connection pool.

    dataSource

    DataSource

  29. def singleton(dataSource: DataSourceConnectionPool): Unit

    Permalink

    Registers the default Connection pool.

    Registers the default Connection pool.

    dataSource

    DataSource

  30. def singleton(url: String, user: String, password: String, settings: CPSettings = ConnectionPoolSettings())(implicit factory: CPFactory = DEFAULT_CONNECTION_POOL_FACTORY): Unit

    Permalink

    Registers the default Connection pool.

    Registers the default Connection pool.

    url

    JDBC URL

    user

    JDBC username

    password

    JDBC password

    settings

    Settings

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LogSupport

Inherited from AnyRef

Inherited from Any

Ungrouped