Connector

case class Connector(url: String, user: String, password: String, driverClassName: String)

Creates database connections.

Value Params
driverClassName

fully qualified class name of JDBC driver

password

database password

url

database url

user

database user

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def getConnection(): Connection

Creates and returns Connection.

Creates and returns Connection.

override def toString(): String

Returns string representation of connector.

Returns string representation of connector.

Definition Classes
Any
def withConnection[T](f: Connection => T): T

Creates Connection and passes it to supplied function. Connection is closed on function's return.

Creates Connection and passes it to supplied function. Connection is closed on function's return.

Value Params
f

function

Returns

value from supplied function

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product