summaryrefslogtreecommitdiff
path: root/src/library/scala/dbc/statement/Status.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/dbc/statement/Status.scala')
-rw-r--r--src/library/scala/dbc/statement/Status.scala26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/library/scala/dbc/statement/Status.scala b/src/library/scala/dbc/statement/Status.scala
new file mode 100644
index 0000000000..61ab479199
--- /dev/null
+++ b/src/library/scala/dbc/statement/Status.scala
@@ -0,0 +1,26 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2003-2005, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+
+package scala.dbc.statement;
+
+/** A statement that changes the status of the database. */
+abstract class Status extends Statement {
+
+ /** A SQL-99 compliant string representation of the statement. */
+ def sqlString: String;
+
+ /** Executes the statement on the given database. */
+ def execute (database: scala.dbc.Database): scala.dbc.result.Status[Unit] = {
+ database.executeStatement(this);
+ }
+
+ def execute (database: scala.dbc.Database, debug: Boolean): scala.dbc.result.Status[Unit] = {
+ database.executeStatement(this,debug);
+ }
+
+} \ No newline at end of file