blob: 93d824f7583abfe2f251271f101977b4edf7c3d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2009, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id:SetQuantifier.scala 6853 2006-03-20 16:58:47 +0100 (Mon, 20 Mar 2006) dubochet $
package scala.dbc
package statement
/** A set quantifier that defines the collection type of a relation. */
abstract class SetQuantifier {
/** A SQL-99 compliant string representation of the set quantifier. */
def sqlString: String
}
object SetQuantifier {
/** A set quantifier that defines a relation as being a bag. That means
* that duplicates are allowed.
*/
case object AllTuples extends SetQuantifier {
/** A SQL-99 compliant string representation of the set quantifier. */
def sqlString: String = "ALL"
}
/** A set quantifier that defines a relation as being a set. That means
* that duplicates are not allowed and will be pruned.
*/
case object DistinctTuples extends SetQuantifier {
/** A SQL-99 compliant string representation of the set quantifier. */
def sqlString: String = "DISTINCT"
}
}
|