org.apache.jdo.impl.model.java
Class IntegralType

java.lang.Object
  extended byorg.apache.jdo.impl.model.java.AbstractJavaType
      extended byorg.apache.jdo.impl.model.java.BaseReflectionJavaType
          extended byorg.apache.jdo.impl.model.java.PredefinedType
              extended byorg.apache.jdo.impl.model.java.PrimitiveType
                  extended byorg.apache.jdo.impl.model.java.IntegralType
All Implemented Interfaces:
JavaType

public class IntegralType
extends PrimitiveType

A IntegralType instance represents an integral type as defined in the Java language. There are five are integral types: byte, short, int, long, and char.

Class PredefinedType provides public static final variables referring to the JavaType representation for integral types.

Since:
JDO 1.0.1
Author:
Michael Bouschen
See Also:
PredefinedType.byteType, PredefinedType.shortType, PredefinedType.intType, PredefinedType.longType, PredefinedType.charType

Field Summary
 
Fields inherited from class org.apache.jdo.impl.model.java.PredefinedType
abstractCollectionType, abstractListType, abstractMapType, abstractSetType, arrayListType, bigDecimalType, bigIntegerType, bitsetType, booleanClassType, booleanType, byteClassType, byteType, characterClassType, charType, collectionType, dateType, dictionaryType, doubleClassType, doubleType, floatClassType, floatType, hashMapType, hashSetType, hashtableType, integerClassType, intType, linkedListType, listType, localeType, longClassType, longType, mapType, numberType, objectType, propertiesType, setType, shortClassType, shortType, sqlDateType, sqlTimestampType, sqlTimeType, stackType, stringType, treeMapType, treeSetType, vectorType, voidType
 
Fields inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType
clazz, superclass
 
Constructor Summary
IntegralType(java.lang.Class clazz)
          Constructor.
 
Method Summary
 boolean isIntegral()
          Returns true if this JavaType represents an integral type.
 boolean isOrderable()
          Returns true if this JavaType represents an orderable type as specified by JDO.
 
Methods inherited from class org.apache.jdo.impl.model.java.PrimitiveType
getWrapperClassType, isPrimitive, isValue
 
Methods inherited from class org.apache.jdo.impl.model.java.PredefinedType
getPredefinedType, getPredefinedTypes
 
Methods inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType
getJavaClass, getJavaField, getModifiers, getName, getSuperclass, isCompatibleWith, isInterface
 
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaType
equals, getArrayComponentType, getJDOClass, hashCode, isArray, isFloatingPoint, isJDOSupportedCollection, isJDOSupportedMap, isPersistenceCapable, isTrackable, isWrapperClass, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegralType

public IntegralType(java.lang.Class clazz)
Constructor.

Method Detail

isIntegral

public boolean isIntegral()
Returns true if this JavaType represents an integral type.

Specified by:
isIntegral in interface JavaType
Overrides:
isIntegral in class AbstractJavaType
Returns:
true if this JavaTypre represents an integral type; false otherwise.

isOrderable

public boolean isOrderable()
Returns true if this JavaType represents an orderable type as specified by JDO.

Specified by:
isOrderable in interface JavaType
Overrides:
isOrderable in class AbstractJavaType
Returns:
true if this JavaType represents an orderable type; false otherwise.


Copyright © 2005 Apache Software Foundation. All Rights Reserved.