2005-06-05 Peter Bartok <pbartok@novell.com>
[mono.git] / mcs / class / System.Data.ObjectSpaces / System.Data.ObjectSpaces.Query / Enumerations.cs
1 //
2 // System.Data.ObjectSpaces.Query enumerations
3 //
4 //
5 // Author:
6 //      Richard Thombs (stony@stony.org)
7 //
8
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
17 // 
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
20 // 
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 //
29
30 #if NET_2_0
31
32 using System;
33
34 namespace System.Data.ObjectSpaces.Query
35 {
36         public enum AnnotationType
37         {
38                 QilAnnotation,
39                 ParseAnnotation,
40                 AxisNode,
41                 DebugInfo,
42                 UserInterface
43         }
44
45         public enum BinaryOperator
46         {
47                 LogicalAnd,
48                 LogicalOr,
49                 Equality,
50                 Inequality,
51                 LessThan,
52                 LessEqual,
53                 GreaterThan,
54                 GreaterEqual,
55                 Addition,
56                 Subtraction,
57                 Multiplication,
58                 Division,
59                 Modulus,
60                 Concatenation
61         }
62
63         public enum FunctionOperator
64         {
65                 Trim,
66                 Len,
67                 Like,
68                 Substring
69         }
70
71         public enum LiteralType
72         {
73                 String,
74                 SByte,
75                 Byte,
76                 Int16,
77                 Int32,
78                 Int64,
79                 UInt16,
80                 UInt32,
81                 UInt64,
82                 Char,
83                 Single,
84                 Double,
85                 Boolean,
86                 Decimal,
87                 Guid,
88                 DateTime,
89                 TimeSpan
90         }
91
92         public enum NodeType
93         {
94                 Aggregate,
95                 Axis,
96                 Binary,
97                 Conditional,
98                 Context,
99                 Distinct,
100                 Empty,
101                 Expression,
102                 Filter,
103                 Function,
104                 Join,
105                 InOperator,
106                 Literal,
107                 ObjectSpaceNode,
108                 OrderBy,
109                 Parameter,
110                 Parent,
111                 Projection,
112                 Property,
113                 RelTraversal,
114                 Span,
115                 Reference,
116                 TypeCast,
117                 TypeConversion,
118                 Unary
119         }
120
121         public enum RelTraversalDirection
122         {
123                 ToTarget,
124                 ToSource
125         }
126
127         public enum UnaryOperator
128         {
129                 Negation,
130                 LogicalNot,
131                 IsNull,
132                 Exists
133         }
134 }
135
136 #endif