View Javadoc

1   /*
2    * $Header: /cvsroot/jdbforms/dbforms/src/org/dbforms/config/FieldTypes.java,v 1.7 2006/01/13 21:22:56 hkollmann Exp $
3    * $Revision: 1.7 $
4    * $Date: 2006/01/13 21:22:56 $
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   * DOCUMENT ME!
29   *
30   * @author $author$
31   * @version $Revision: 1.7 $
32   */
33  public class FieldTypes {
34     /*** DOCUMENT ME! */
35     public static final int INTEGER = java.sql.Types.INTEGER;
36  
37     /*** DOCUMENT ME! */
38     public static final int CHAR = java.sql.Types.CHAR;
39     public static final int VARCHAR = java.sql.Types.VARCHAR;
40     public static final int LONGVARCHAR = java.sql.Types.LONGVARCHAR;
41  
42     /*** DOCUMENT ME! */
43     public static final int DATE = java.sql.Types.DATE;
44  
45     /*** DOCUMENT ME! */
46     public static final int TIMESTAMP = java.sql.Types.TIMESTAMP;
47  
48     /*** DOCUMENT ME! */
49     public static final int TIME = java.sql.Types.TIME;
50  
51     /*** DOCUMENT ME! */
52     public static final int DOUBLE = java.sql.Types.DOUBLE;
53  
54     /*** DOCUMENT ME! */
55     public static final int FLOAT = java.sql.Types.FLOAT;
56  
57     /*** DOCUMENT ME! */
58     public static final int BLOB = java.sql.Types.BLOB;
59  
60     /*** DOCUMENT ME! */
61     public static final int DISKBLOB = 4200;
62  
63     /*** DOCUMENT ME! */
64     public static final int NUMERIC = java.sql.Types.NUMERIC;
65  
66     /*** DOCUMENT ME! */
67     public static final int BOOLEAN = java.sql.Types.BOOLEAN;
68     public static boolean isCHAR(int type) {
69         return (type == CHAR) || (type == VARCHAR) || (type == LONGVARCHAR);
70     }
71  }