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

Inherited by implicit conversion Ensuring fromDriverDataSource to Ensuring[DriverDataSource]

Inherited by implicit conversion ArrowAssoc fromDriverDataSource to ArrowAssoc[DriverDataSource]

Ungrouped