KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > dbforms > config > Constants


1 /*
2  * $Header: /cvsroot/jdbforms/dbforms/src/org/dbforms/config/Constants.java,v 1.10 2004/08/18 12:25:55 hkollmann Exp $
3  * $Revision: 1.10 $
4  * $Date: 2004/08/18 12:25:55 $
5  *
6  * DbForms - a Rapid Application Development Framework
7  * Copyright (C) 2001 Joachim Peer <joepeer@excite.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  */

23
24 package org.dbforms.config;
25
26
27 /**
28  * New class to hold all the different constant values spread around dbForms!
29  *
30  * @author hkk
31  */

32 public interface Constants {
33    /** DOCUMENT ME! */
34    public static final int DATE_STYLE_DEFAULT = java.text.DateFormat.MEDIUM;
35
36    /** DOCUMENT ME! */
37    public static final int TIME_STYLE_DEFAULT = java.text.DateFormat.SHORT;
38
39    /** DOCUMENT ME! */
40    public static final String JavaDoc FIELDNAME_PREFIX = "f_";
41
42    /** DOCUMENT ME! */
43    public static final String JavaDoc FIELDNAME_OLDVALUETAG = "o";
44
45    /** DOCUMENT ME! */
46    public static final String JavaDoc FIELDNAME_PATTERNTAG = "p";
47
48    /** DOCUMENT ME! */
49    public static final String JavaDoc FIELDNAME_INSERTPREFIX = "ins";
50
51    /** DOCUMENT ME! */
52    public static final String JavaDoc FIELDNAME_OVERRIDEFIELDTEST = "overridefieldcheck_";
53
54    /** DOCUMENT ME! */
55    public static final String JavaDoc FIELDNAME_SORT = "sort_";
56
57    /** DOCUMENT ME! */
58    public static final String JavaDoc FIELDNAME_SEARCH = "search_";
59
60    /** DOCUMENT ME! */
61    public static final String JavaDoc FIELDNAME_SEARCHALGO = "searchalgo_";
62
63    /** DOCUMENT ME! */
64    public static final String JavaDoc FIELDNAME_SEARCHMODE = "searchmode_";
65
66    /** DOCUMENT ME! */
67    public static final int COMPARE_NONE = 0;
68
69    /** DOCUMENT ME! */
70    public static final int COMPARE_INCLUSIVE = 1;
71
72    /** DOCUMENT ME! */
73    public static final int COMPARE_EXCLUSIVE = 2;
74
75    /** DOCUMENT ME! */
76    public static final int SEARCHMODE_NONE = 0;
77
78    /** DOCUMENT ME! */
79    public static final int SEARCHMODE_AND = 1;
80
81    /** DOCUMENT ME! */
82    public static final int SEARCHMODE_OR = 2;
83
84    /** DOCUMENT ME! */
85    public static final int SEARCH_ALGO_SHARP = 0;
86
87    /** DOCUMENT ME! */
88    public static final int SEARCH_ALGO_WEAK = 1;
89
90    /** DOCUMENT ME! */
91    public static final int SEARCH_ALGO_WEAK_START = 2;
92
93    /** DOCUMENT ME! */
94    public static final int SEARCH_ALGO_WEAK_END = 3;
95
96    /** DOCUMENT ME! */
97    public static final int SEARCH_ALGO_WEAK_START_END = 4;
98
99    /** DOCUMENT ME! */
100    public static final int SEARCH_ALGO_EXTENDED = 5;
101
102    /** DOCUMENT ME! */
103    public static final int FILTER_EQUAL = 0;
104
105    /** DOCUMENT ME! */
106    public static final int FILTER_GREATER_THEN = 1;
107
108    /** DOCUMENT ME! */
109    public static final int FILTER_GREATER_THEN_EQUAL = 3;
110
111    /** DOCUMENT ME! */
112    public static final int FILTER_SMALLER_THEN = 2;
113
114    /** DOCUMENT ME! */
115    public static final int FILTER_SMALLER_THEN_EQUAL = 4;
116
117    /** DOCUMENT ME! */
118    public static final int FILTER_LIKE = 5;
119
120    /** DOCUMENT ME! */
121    public static final int FILTER_NOT_EQUAL = 6;
122
123    /** DOCUMENT ME! */
124    public static final int FILTER_NULL = 7;
125
126    /** DOCUMENT ME! */
127    public static final int FILTER_NOT_NULL = 8;
128
129    /** DOCUMENT ME! */
130    public static final int FILTER_EMPTY = 9;
131
132    /** DOCUMENT ME! */
133    public static final int FILTER_NOT_EMPTY = 10;
134
135    /** DOCUMENT ME! */
136    public static final int ORDER_NONE = -1;
137
138    /** DOCUMENT ME! */
139    public static final int ORDER_ASCENDING = 0;
140
141    /** DOCUMENT ME! */
142    public static final int ORDER_DESCENDING = 1;
143 }
144
Popular Tags