Showing content from https://www.playframework.com/documentation/2.5.x/api/scala/play/api/db/DefaultDatabase.html below:
DefaultDatabase - play.api.db.DefaultDatabase
final def !=(arg0: Any): Boolean
-
Definition Classes
-
AnyRef â Any
final def ##(): Int
-
Definition Classes
-
AnyRef â Any
final def ==(arg0: Any): Boolean
-
Definition Classes
-
AnyRef â Any
final def asInstanceOf[T0]: T0
def clone(): AnyRef
-
Attributes
-
protected[java.lang]
-
Definition Classes
-
AnyRef
-
Annotations
-
@throws( ... )
lazy val dataSource: DataSource
The underlying JDBC data source for this database.
val databaseConfig: DatabaseConfig
def deregisterDriver(): Unit
lazy val driver: Option[Driver]
final def eq(arg0: AnyRef): Boolean
-
Definition Classes
-
AnyRef
def equals(arg0: Any): Boolean
-
Definition Classes
-
AnyRef â Any
def finalize(): Unit
-
Attributes
-
protected[java.lang]
-
Definition Classes
-
AnyRef
-
Annotations
-
@throws( classOf[java.lang.Throwable] )
final def getClass(): Class[_]
-
Definition Classes
-
AnyRef â Any
def getConnection(autocommit: Boolean): Connection
Get a JDBC connection from the underlying data source.
Get a JDBC connection from the underlying data source.
Don't forget to release the connection at some point by calling close().
-
autocommit
-
determines whether to autocommit the connection
-
returns
-
a JDBC connection
-
Definition Classes
-
DefaultDatabase â Database
def getConnection(): Connection
Get a JDBC connection from the underlying data source.
Get a JDBC connection from the underlying data source. Autocommit is enabled by default.
Don't forget to release the connection at some point by calling close().
-
returns
-
a JDBC connection
-
Definition Classes
-
DefaultDatabase â Database
def hashCode(): Int
-
Definition Classes
-
AnyRef â Any
final def isInstanceOf[T0]: Boolean
val name: String
The configuration name for this database.
final def ne(arg0: AnyRef): Boolean
-
Definition Classes
-
AnyRef
final def notify(): Unit
-
Definition Classes
-
AnyRef
final def notifyAll(): Unit
-
Definition Classes
-
AnyRef
def shutdown(): Unit
Shutdown this database, closing the underlying data source.
final def synchronized[T0](arg0: â T0): T0
-
Definition Classes
-
AnyRef
def toString(): String
-
Definition Classes
-
AnyRef â Any
lazy val url: String
The JDBC connection URL this database, i.e.
The JDBC connection URL this database, i.e. jdbc:...
Normally retrieved via a connection.
-
Definition Classes
-
DefaultDatabase â Database
final def wait(): Unit
-
Definition Classes
-
AnyRef
-
Annotations
-
@throws( ... )
final def wait(arg0: Long, arg1: Int): Unit
-
Definition Classes
-
AnyRef
-
Annotations
-
@throws( ... )
final def wait(arg0: Long): Unit
-
Definition Classes
-
AnyRef
-
Annotations
-
@throws( ... )
def withConnection[A](autocommit: Boolean)(block: (Connection) â A): A
Execute a block of code, providing a JDBC connection.
Execute a block of code, providing a JDBC connection. The connection and all created statements are automatically released.
-
autocommit
-
determines whether to autocommit the connection
-
block
-
code to execute
-
returns
-
the result of the code block
-
Definition Classes
-
DefaultDatabase â Database
def withConnection[A](block: (Connection) â A): A
Execute a block of code, providing a JDBC connection.
Execute a block of code, providing a JDBC connection. The connection and all created statements are automatically released.
-
block
-
code to execute
-
returns
-
the result of the code block
-
Definition Classes
-
DefaultDatabase â Database
def withTransaction[A](block: (Connection) â A): A
Execute a block of code in the scope of a JDBC transaction.
Execute a block of code in the scope of a JDBC transaction. The connection and all created statements are automatically released. The transaction is automatically committed, unless an exception occurs.
-
block
-
code to execute
-
returns
-
the result of the code block
-
Definition Classes
-
DefaultDatabase â Database
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4