blob: 1f224eae97fa1e2f44c6761bb5c48f5162172b8f (
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
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2010, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
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"
}
}
|