001: /**********************************************************************
002: Copyright (c) 2005 Erik Bengtson and others. All rights reserved.
003: Licensed under the Apache License, Version 2.0 (the "License");
004: you may not use this file except in compliance with the License.
005: You may obtain a copy of the License at
006:
007: http://www.apache.org/licenses/LICENSE-2.0
008:
009: Unless required by applicable law or agreed to in writing, software
010: distributed under the License is distributed on an "AS IS" BASIS,
011: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012: See the License for the specific language governing permissions and
013: limitations under the License.
014:
015: Contributors:
016: ...
017: **********************************************************************/package org.jpox;
018:
019: import java.io.Serializable;
020: import java.math.BigDecimal;
021: import java.math.BigInteger;
022:
023: import org.jpox.identity.OIDImpl;
024:
025: /**
026: * Constants with classes names (class created to reduce overhead on calling Class.class.getName() *performance*
027: * Make sure this class is initialized when the PMF is initialized.
028: *
029: * @version $Revision: 1.24 $
030: */
031: public class ClassNameConstants {
032: /** Object **/
033: public static final String Object = Object.class.getName();
034: /** Serializable **/
035: public static final String Serializable = Serializable.class
036: .getName();
037:
038: /** primitive boolean. **/
039: public static final String BOOLEAN = boolean.class.getName();
040: /** primitive byte. **/
041: public static final String BYTE = byte.class.getName();
042: /** primitive char. **/
043: public static final String CHAR = char.class.getName();
044: /** primitive double. **/
045: public static final String DOUBLE = double.class.getName();
046: /** primitive float. **/
047: public static final String FLOAT = float.class.getName();
048: /** primitive int. **/
049: public static final String INT = int.class.getName();
050: /** primitive long. **/
051: public static final String LONG = long.class.getName();
052: /** primitive short. **/
053: public static final String SHORT = short.class.getName();
054:
055: /** primitive boolean[]. **/
056: public static final String BOOLEAN_ARRAY = boolean[].class
057: .getName();
058: /** primitive byte[]. **/
059: public static final String BYTE_ARRAY = byte[].class.getName();
060: /** primitive char[]. **/
061: public static final String CHAR_ARRAY = char[].class.getName();
062: /** primitive double[]. **/
063: public static final String DOUBLE_ARRAY = double[].class.getName();
064: /** primitive float[]. **/
065: public static final String FLOAT_ARRAY = float[].class.getName();
066: /** primitive int[]. **/
067: public static final String INT_ARRAY = int[].class.getName();
068: /** primitive long[]. **/
069: public static final String LONG_ARRAY = long[].class.getName();
070: /** primitive short[]. **/
071: public static final String SHORT_ARRAY = short[].class.getName();
072:
073: /** java.lang.Boolean **/
074: public static final String JAVA_LANG_BOOLEAN = Boolean.class
075: .getName();
076: /** java.lang.Byte **/
077: public static final String JAVA_LANG_BYTE = Byte.class.getName();
078: /** java.lang.Character **/
079: public static final String JAVA_LANG_CHARACTER = Character.class
080: .getName();
081: /** java.lang.Double **/
082: public static final String JAVA_LANG_DOUBLE = Double.class
083: .getName();
084: /** java.lang.Float **/
085: public static final String JAVA_LANG_FLOAT = Float.class.getName();
086: /** java.lang.Integer **/
087: public static final String JAVA_LANG_INTEGER = Integer.class
088: .getName();
089: /** java.lang.Long **/
090: public static final String JAVA_LANG_LONG = Long.class.getName();
091: /** java.lang.Short **/
092: public static final String JAVA_LANG_SHORT = Short.class.getName();
093:
094: /** java.lang.Boolean[] **/
095: public static final String JAVA_LANG_BOOLEAN_ARRAY = Boolean[].class
096: .getName();
097: /** java.lang.Byte[] **/
098: public static final String JAVA_LANG_BYTE_ARRAY = Byte[].class
099: .getName();
100: /** java.lang.Character[] **/
101: public static final String JAVA_LANG_CHARACTER_ARRAY = Character[].class
102: .getName();
103: /** java.lang.Double[] **/
104: public static final String JAVA_LANG_DOUBLE_ARRAY = Double[].class
105: .getName();
106: /** java.lang.Float[] **/
107: public static final String JAVA_LANG_FLOAT_ARRAY = Float[].class
108: .getName();
109: /** java.lang.Integer[] **/
110: public static final String JAVA_LANG_INTEGER_ARRAY = Integer[].class
111: .getName();
112: /** java.lang.Long[] **/
113: public static final String JAVA_LANG_LONG_ARRAY = Long[].class
114: .getName();
115: /** java.lang.Short[] **/
116: public static final String JAVA_LANG_SHORT_ARRAY = Short[].class
117: .getName();
118:
119: /** java.lang.String **/
120: public static final String JAVA_LANG_STRING = String.class
121: .getName();
122: /** java.math.BigDecimal **/
123: public static final String JAVA_MATH_BIGDECIMAL = BigDecimal.class
124: .getName();
125: /** java.math.BigInteger **/
126: public static final String JAVA_MATH_BIGINTEGER = BigInteger.class
127: .getName();
128: /** java.sql.Date **/
129: public static final String JAVA_SQL_DATE = java.sql.Date.class
130: .getName();
131: /** java.sql.Time **/
132: public static final String JAVA_SQL_TIME = java.sql.Time.class
133: .getName();
134: /** java.sql.Timestamp **/
135: public static final String JAVA_SQL_TIMESTAMP = java.sql.Timestamp.class
136: .getName();
137: /** java.util.Date **/
138: public static final String JAVA_UTIL_DATE = java.util.Date.class
139: .getName();
140: /** java.io.Serializable **/
141: public static final String JAVA_IO_SERIALIZABLE = java.io.Serializable.class
142: .getName();
143:
144: /** OIDImpl **/
145: public static final String OIDImpl = OIDImpl.class.getName();
146: }
|