in scala/dbc
class Database
-
case class Database(dbms: Vendor)
- extends Object
- with ScalaObject
- with CaseClass
-
A link to a database. The
Database
abstract class must
be specialised for every different DBMS.
- Author:
-
Gilles Dubochet
Methods inherited from java/lang/Object-class
|
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
dbms
val dbms: Vendor
close
def close: Unit
-
..
executeStatement
def executeStatement(relationStatement: Relation): Relation
-
Executes a statement that returns a relation on this database.
- Parameters:
relationStatement
-
The statement to execute.
- Returns:
-
The relation returned by the database for this statement.
executeStatement
def executeStatement(relationStatement: Relation, debug: Boolean): Relation
-
Executes a statement that returns a relation on this database.
- Parameters:
relationStatement
-
The statement to execute.
debug
-
Whether debugging information should be printed on the console.
- Returns:
-
The relation returned by the database for this statement.
executeStatement
def executeStatement(statusStatement: Status): Status[Unit]
-
Executes a statement that updates the state of the database.
- Parameters:
statusStatement
-
The statement to execute.
- Returns:
-
The status of the database after the statement has been executed.
executeStatement
def executeStatement(statusStatement: Status, debug: Boolean): Status[Unit]
-
Executes a statement that updates the state of the database.
- Parameters:
statusStatement
-
The statement to execute.
debug
-
Whether debugging information should be printed on the console.
- Returns:
-
The status of the database after the statement has been executed.
executeStatement
def executeStatement[ResultType](transactionStatement: Transaction[ResultType]): Status[ResultType]
-
Executes a list of statements or other operations inside a transaction.
Only statements are protected in a transaction, other Scala code is not.
- Parameters:
transactionStatement
-
The transaction to execute as a closure.
- Returns:
-
The status of the database after the transaction has been executed.
executeStatement
def executeStatement[ResultType](transactionStatement: Transaction[ResultType], debug: Boolean): Status[ResultType]
-
Executes a list of statements or other operations inside a transaction.
Only statements are protected in a transaction, other Scala code is not.
- Parameters:
transactionStatement
-
The transaction to execute as a closure.
debug
-
Whether debugging information should be printed on the console.
- Returns:
-
The status of the database after the transaction has been executed.