Packages

c

slick.jdbc

DriverDataSource

class DriverDataSource extends DataSource with Closeable with Logging

A DataSource that wraps the DriverManager API. It can be configured as a Java Bean and used both stand-alone and as a source for a connection pool.

Source
DriverDataSource.scala
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DriverDataSource
  2. Logging
  3. Closeable
  4. AutoCloseable
  5. DataSource
  6. Wrapper
  7. CommonDataSource
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DriverDataSource()
  2. new DriverDataSource(url: String, user: String = null, password: String = null, properties: Properties = null, driverClassName: String = null, deregisterDriver: Boolean = false, driverObject: Driver = null, classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from DriverDataSource toany2stringadd[DriverDataSource] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (DriverDataSource, B)
    Implicit
    This member is added by an implicit conversion from DriverDataSource toArrowAssoc[DriverDataSource] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. var classLoader: ClassLoader
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  9. def close(): Unit
    Definition Classes
    DriverDataSource → Closeable → AutoCloseable
  10. def createConnectionBuilder(): ConnectionBuilder
    Definition Classes
    DataSource
    Annotations
    @throws(classOf[java.sql.SQLException])
  11. def createShardingKeyBuilder(): ShardingKeyBuilder
    Definition Classes
    CommonDataSource
    Annotations
    @throws(classOf[java.sql.SQLException])
  12. var deregisterDriver: Boolean
  13. var driverClassName: String
  14. var driverObject: Driver
  15. def ensuring(cond: (DriverDataSource) => Boolean, msg: => Any): DriverDataSource
    Implicit
    This member is added by an implicit conversion from DriverDataSource toEnsuring[DriverDataSource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (DriverDataSource) => Boolean): DriverDataSource
    Implicit
    This member is added by an implicit conversion from DriverDataSource toEnsuring[DriverDataSource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: => Any): DriverDataSource
    Implicit
    This member is added by an implicit conversion from DriverDataSource toEnsuring[DriverDataSource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): DriverDataSource
    Implicit
    This member is added by an implicit conversion from DriverDataSource toEnsuring[DriverDataSource] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. def getConnection(username: String, password: String): Connection
    Definition Classes
    DriverDataSource → DataSource
  23. def getConnection(): Connection
    Definition Classes
    DriverDataSource → DataSource
  24. def getDriver: String
  25. def getDriverClassName(): String
  26. def getLogWriter(): PrintWriter
    Definition Classes
    DriverDataSource → DataSource → CommonDataSource
  27. def getLoginTimeout(): Int
    Definition Classes
    DriverDataSource → DataSource → CommonDataSource
  28. def getParentLogger(): Logger
    Definition Classes
    DriverDataSource → CommonDataSource
  29. def getPassword(): String
  30. def getProperties(): Properties
  31. def getUrl(): String
  32. def getUser(): String
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  34. def init(): Unit
  35. def isDeregisterDriver(): Boolean
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def isWrapperFor(iface: Class[_]): Boolean
    Definition Classes
    DriverDataSource → Wrapper
  38. lazy val logger: SlickLogger
    Attributes
    protected[this]
    Definition Classes
    Logging
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  42. var password: String
  43. var properties: Properties
  44. def setDeregisterDriver(deregisterDriver: Boolean): Unit
  45. def setDriver(s: String): Unit
  46. def setDriverClassName(driverClassName: String): Unit
  47. def setLogWriter(out: PrintWriter): Unit
    Definition Classes
    DriverDataSource → DataSource → CommonDataSource
  48. def setLoginTimeout(seconds: Int): Unit
    Definition Classes
    DriverDataSource → DataSource → CommonDataSource
  49. def setPassword(password: String): Unit
  50. def setProperties(properties: Properties): Unit
  51. def setUrl(url: String): Unit
  52. def setUser(user: String): Unit
  53. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  54. def toString(): String
    Definition Classes
    AnyRef → Any
  55. def unwrap[T](iface: Class[T]): T
    Definition Classes
    DriverDataSource → Wrapper
  56. var url: String
  57. var user: String
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from DriverDataSource toStringFormat[DriverDataSource] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (DriverDataSource, B)
    Implicit
    This member is added by an implicit conversion from DriverDataSource toArrowAssoc[DriverDataSource] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Logging

Inherited from Closeable

Inherited from AutoCloseable

Inherited from DataSource

Inherited from Wrapper

Inherited from CommonDataSource

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromDriverDataSource to any2stringadd[DriverDataSource]

Inherited by implicit conversion StringFormat fromDriverDataSource to StringFormat[DriverDataSource]

Inherited by implicit conversion Ensuring fromDriverDataSource to Ensuring[DriverDataSource]

Inherited by implicit conversion ArrowAssoc fromDriverDataSource to ArrowAssoc[DriverDataSource]

Ungrouped