class DatabaseUrlDataSource extends DriverDataSource
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. This implementation is design specifically to handle a non-JDBC Database URL in the format defined by the libpq standard.
- Alphabetic
- By Inheritance
- DatabaseUrlDataSource
- DriverDataSource
- Logging
- Closeable
- AutoCloseable
- DataSource
- Wrapper
- CommonDataSource
- AnyRef
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DatabaseUrlDataSource()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ->[B](y: B): (DatabaseUrlDataSource, B)
- Implicit
- This member is added by an implicit conversion from DatabaseUrlDataSource toArrowAssoc[DatabaseUrlDataSource] 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
- Definition Classes
- DriverDataSource
- 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
- Definition Classes
- DriverDataSource
- var driverClassName: String
- Definition Classes
- DriverDataSource
- var driverObject: Driver
- Definition Classes
- DriverDataSource
- def ensuring(cond: (DatabaseUrlDataSource) => Boolean, msg: => Any): DatabaseUrlDataSource
- Implicit
- This member is added by an implicit conversion from DatabaseUrlDataSource toEnsuring[DatabaseUrlDataSource] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (DatabaseUrlDataSource) => Boolean): DatabaseUrlDataSource
- Implicit
- This member is added by an implicit conversion from DatabaseUrlDataSource toEnsuring[DatabaseUrlDataSource] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): DatabaseUrlDataSource
- Implicit
- This member is added by an implicit conversion from DatabaseUrlDataSource toEnsuring[DatabaseUrlDataSource] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): DatabaseUrlDataSource
- Implicit
- This member is added by an implicit conversion from DatabaseUrlDataSource toEnsuring[DatabaseUrlDataSource] 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
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def getDriver: String
- Definition Classes
- DriverDataSource
- def getDriverClassName(): String
- Definition Classes
- DriverDataSource
- 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
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def getProperties(): Properties
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def getUrl(): String
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def getUser(): String
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def init: Unit
- Definition Classes
- DatabaseUrlDataSource → DriverDataSource
- 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
- Definition Classes
- DriverDataSource
- var properties: Properties
- Definition Classes
- DriverDataSource
- def setDeregisterDriver(arg0: Boolean): Unit
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def setDriver(s: String): Unit
- Definition Classes
- DriverDataSource
- def setDriverClassName(arg0: String): Unit
- Definition Classes
- DriverDataSource
- 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
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def setProperties(arg0: Properties): Unit
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def setUrl(arg0: String): Unit
- Definition Classes
- DriverDataSource
- Annotations
- @BeanProperty() @volatile()
- def setUser(arg0: String): Unit
- Definition Classes
- DriverDataSource
- 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
- Definition Classes
- DriverDataSource
- var user: String
- Definition Classes
- DriverDataSource
- 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 DatabaseUrlDataSource toStringFormat[DatabaseUrlDataSource] 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): (DatabaseUrlDataSource, B)
- Implicit
- This member is added by an implicit conversion from DatabaseUrlDataSource toArrowAssoc[DatabaseUrlDataSource] 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...