KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > sqls > BooleanConstraint


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.ws.jaxme.sqls;
17
18 import org.apache.ws.jaxme.sqls.impl.BooleanConstraintImpl;
19
20 /**
21  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
22  */

23 public interface BooleanConstraint extends Constraint, Parts {
24     /** <p>The type of a boolean constraint.</p>
25      */

26     public interface Type {
27         /** A boolean constraint matching the "equal" condition.
28          */

29         public static final Type EQ = new BooleanConstraintImpl.TypeImpl("EQ");
30         /** A boolean constraint matching the "not equal" condition.
31          */

32         public static final Type NE = new BooleanConstraintImpl.TypeImpl("NE");
33         /** A boolean constraint matching the "lower than" condition.
34          */

35         public static final Type LT = new BooleanConstraintImpl.TypeImpl("LT");
36         /** A boolean constraint matching the "greater than" condition.
37          */

38         public static final Type GT = new BooleanConstraintImpl.TypeImpl("GT");
39         /** A boolean constraint matching the "lower or equal" condition.
40          */

41         public static final Type LE = new BooleanConstraintImpl.TypeImpl("LE");
42         /** A boolean constraint matching the "greater or equal" condition.
43          */

44         public static final Type GE = new BooleanConstraintImpl.TypeImpl("GE");
45         /** A boolean constraint matching the "LIKE" condition.
46          */

47         public static final Type LIKE = new BooleanConstraintImpl.TypeImpl("LIKE");
48         /** A boolean constraint matching the "IS NULL" condition.
49          */

50         public static final Type ISNULL = new BooleanConstraintImpl.TypeImpl("ISNULL");
51         /** A boolean constraint matching the "IN" condition.
52          */

53         public static final Type IN = new BooleanConstraintImpl.TypeImpl("IN");
54         /** A boolean constraint matching the "EXISTS" condition.
55          */

56         public static final Type EXISTS = new BooleanConstraintImpl.TypeImpl("EXISTS");
57         /** A boolean constraint matching the "BETWEEN" condition.
58          */

59         public static final Type BETWEEN = new BooleanConstraintImpl.TypeImpl("BETWEEN");
60     }
61     
62     /** <p>Returns the boolean constraints type.</p>
63      */

64     public BooleanConstraint.Type getType();
65 }
66
Popular Tags