summaryrefslogtreecommitdiff
path: root/src/dbc/scala/dbc/statement/expression/FunctionCall.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbc/scala/dbc/statement/expression/FunctionCall.scala')
-rw-r--r--src/dbc/scala/dbc/statement/expression/FunctionCall.scala32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/dbc/scala/dbc/statement/expression/FunctionCall.scala b/src/dbc/scala/dbc/statement/expression/FunctionCall.scala
new file mode 100644
index 0000000000..bfee8701dd
--- /dev/null
+++ b/src/dbc/scala/dbc/statement/expression/FunctionCall.scala
@@ -0,0 +1,32 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2003-2006, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+
+// $Id$
+
+
+package scala.dbc.statement.expression;
+
+
+case class FunctionCall (
+ functionName: String,
+ arguments: List[Expression]
+) extends Expression {
+
+ /** A SQL-99 compliant string representation of the relation sub-
+ * statement. This only has a meaning inside another statement. */
+ def sqlInnerString: String = {
+ functionName + "(" + arguments.mkString("",", ","") + ")"
+ }
+
+ /** The name of the function to call. */
+ //def functionName: String;
+
+ /** A list of all argument expressions to pass to the function, in order. */
+ //def arguments: List[Expression];
+
+}