Connector

class Connector(url: String, user: String, password: String, driverClassName: String, driverClassPath: Seq[URL]) extends DataSource

Provides basic implementation of data source.

Value parameters:
driverClassName

fully qualified class name of JDBC driver

driverClassPath

class path from which JDBC driver is loaded

password

data source password

url

data source url

user

data source user

Note:

If driverClassPath is empty, the driver is loaded using this instance's class loader; otherwise, the driver is loaded using a class loader constructed from supplied class path.

trait DataSource
trait Wrapper
trait CommonDataSource
class Object
trait Matchable
class Any

Value members

Constructors

def this(url: String, user: String, password: String, driverClassName: String)

Creates connector.

Creates connector.

def this(url: String, user: String, password: String, driverClassName: String, headDriverClassPath: URL, tailDriverClassPath: URL*)

Creates connector.

Creates connector.

Concrete methods

def getConnection(): Connection

Gets connection.

Gets connection.

def getConnection(user: String, password: String): Connection

Gets connection using supplied credentials.

Gets connection using supplied credentials.

def getLogWriter(): PrintWriter

Gets log writer.

Gets log writer.

def getLoginTimeout(): Int

Gets login timeout.

Gets login timeout.

def getParentLogger(): Logger

Gets parent logger.

Gets parent logger.

Throws:
SQLFeatureNotSupportedException

  unconditionally

def isWrapperFor(kind: Class[_]): Boolean

Tests for wrapper.

Tests for wrapper.

def setLogWriter(out: PrintWriter): Unit

Sets log writer.

Sets log writer.

def setLoginTimeout(seconds: Int): Unit

Sets login timeout.

Sets login timeout.

def unwrap[T](kind: Class[T]): T

Unwraps this to specified type.

Unwraps this to specified type.

Concrete fields

lazy override val toString: String

Returns string representation.

Returns string representation.