01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: QueryParameterType.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.database.queries;
09:
10: import com.uwyn.rife.datastructures.EnumClass;
11:
12: public class QueryParameterType extends EnumClass<String> {
13: public static final QueryParameterType FIELD = new QueryParameterType(
14: "FIELD", false);
15: public static final QueryParameterType TABLE = new QueryParameterType(
16: "TABLE", false);
17: public static final QueryParameterType WHERE = new QueryParameterType(
18: "WHERE", false);
19: public static final QueryParameterType UNION = new QueryParameterType(
20: "UNION", false);
21: public static final QueryParameterType LIMIT = new QueryParameterType(
22: "LIMIT", true);
23: public static final QueryParameterType OFFSET = new QueryParameterType(
24: "OFFSET", true);
25:
26: private boolean mSingular = false;
27:
28: private QueryParameterType(String identifier, boolean singular) {
29: super (identifier);
30:
31: mSingular = singular;
32: }
33:
34: public boolean isSingular() {
35: return mSingular;
36: }
37: }
|