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
- Alphabetic
- By Inheritance
- DriverDataSource
- Logging
- Closeable
- AutoCloseable
- DataSource
- Wrapper
- CommonDataSource
- AnyRef
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DriverDataSource()
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- var classLoader: ClassLoader
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
- Definition Classes
- DriverDataSource → Closeable → AutoCloseable
- def createConnectionBuilder(): ConnectionBuilder
- Definition Classes
- DataSource
- Annotations
- @throws(classOf[java.sql.SQLException])
- def createShardingKeyBuilder(): ShardingKeyBuilder
- Definition Classes
- CommonDataSource
- Annotations
- @throws(classOf[java.sql.SQLException])
- var deregisterDriver: Boolean
- var driverClassName: String
- var driverObject: Driver
- 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
- 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
- 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
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getConnection(username: String, password: String): Connection
- Definition Classes
- DriverDataSource → DataSource
- def getConnection(): Connection
- Definition Classes
- DriverDataSource → DataSource
- def getDeregisterDriver(): Boolean
- Annotations
- @BeanProperty() @volatile()
- def getDriver: String
- def getDriverClassName(): String
- Annotations
- @BeanProperty() @volatile()
- def getLogWriter(): PrintWriter
- Definition Classes
- DriverDataSource → DataSource → CommonDataSource
- def getLoginTimeout(): Int
- Definition Classes
- DriverDataSource → DataSource → CommonDataSource
- def getParentLogger(): Logger
- Definition Classes
- DriverDataSource → CommonDataSource
- def getPassword(): String
- Annotations
- @BeanProperty() @volatile()
- def getProperties(): Properties
- Annotations
- @BeanProperty() @volatile()
- def getUrl(): String
- Annotations
- @BeanProperty() @volatile()
- def getUser(): String
- Annotations
- @BeanProperty() @volatile()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def init: Unit
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isWrapperFor(iface: Class[_]): Boolean
- Definition Classes
- DriverDataSource → Wrapper
- lazy val logger: SlickLogger
- Attributes
- protected[this]
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- var password: String
- var properties: Properties
- def setDeregisterDriver(arg0: Boolean): Unit
- Annotations
- @BeanProperty() @volatile()
- def setDriver(s: String): Unit
- def setDriverClassName(arg0: String): Unit
- Annotations
- @BeanProperty() @volatile()
- def setLogWriter(out: PrintWriter): Unit
- Definition Classes
- DriverDataSource → DataSource → CommonDataSource
- def setLoginTimeout(seconds: Int): Unit
- Definition Classes
- DriverDataSource → DataSource → CommonDataSource
- def setPassword(arg0: String): Unit
- Annotations
- @BeanProperty() @volatile()
- def setProperties(arg0: Properties): Unit
- Annotations
- @BeanProperty() @volatile()
- def setUrl(arg0: String): Unit
- Annotations
- @BeanProperty() @volatile()
- def setUser(arg0: String): Unit
- Annotations
- @BeanProperty() @volatile()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unwrap[T](iface: Class[T]): T
- Definition Classes
- DriverDataSource → Wrapper
- var url: String
- var user: String
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- 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 ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- 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.
edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...