KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > spi > persistence > utility > FieldTypeEnumeration


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * FieldTypeEnumeration
26  *
27  * Created on January 31, 2003
28  */

29
30 package com.sun.jdo.spi.persistence.utility;
31
32 /**
33  *
34  */

35 public interface FieldTypeEnumeration
36 {
37
38     //Not Enumerated
39
public static final int NOT_ENUMERATED = 0;
40
41     //Primitive
42
public static final int BOOLEAN_PRIMITIVE = 1;
43     public static final int CHARACTER_PRIMITIVE = 2;
44     public static final int BYTE_PRIMITIVE = 3;
45     public static final int SHORT_PRIMITIVE = 4;
46     public static final int INTEGER_PRIMITIVE = 5;
47     public static final int LONG_PRIMITIVE = 6;
48     public static final int FLOAT_PRIMITIVE = 7;
49     public static final int DOUBLE_PRIMITIVE = 8;
50     //Number
51
public static final int BOOLEAN = 11;
52     public static final int CHARACTER = 12;
53     public static final int BYTE = 13;
54     public static final int SHORT = 14;
55     public static final int INTEGER = 15;
56     public static final int LONG = 16;
57     public static final int FLOAT = 17;
58     public static final int DOUBLE = 18;
59     public static final int BIGDECIMAL = 19;
60     public static final int BIGINTEGER = 20;
61     //String
62
public static final int STRING = 21;
63     //Dates
64
public static final int UTIL_DATE = 22;
65     public static final int SQL_DATE = 23;
66     public static final int SQL_TIME = 24;
67     public static final int SQL_TIMESTAMP = 25;
68     //Arrays
69
public static final int ARRAY_BYTE_PRIMITIVE = 51;
70
71 }
72
Popular Tags