Class Type
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.Type
-
- Direct Known Subclasses:
ClassType,ErrorType,NullType,PrimitiveType
public abstract class Type extends Object
- Version:
- 0.1
- Author:
- Michael Bouschen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Indicates whether some other object is "equal to" this one.intgetEnumType()Returns the FieldTypeEnumeration value for this type.ClassgetJavaClass()Returns the corresponding class object.StringgetName()Returns the name of the type.abstract booleanisCompatibleWith(Type type)Checks type compatibility.booleanisOrderable()Returns whether this represents a type with an defined order.StringtoString()Representation of this type as a string.
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of the type.
-
getJavaClass
public Class getJavaClass()
Returns the corresponding class object.
-
isCompatibleWith
public abstract boolean isCompatibleWith(Type type)
Checks type compatibility.- Parameters:
type- the type this is checked with.- Returns:
- true if this is compatible with type; false otherwise.
-
isOrderable
public boolean isOrderable()
Returns whether this represents a type with an defined order.- Returns:
- true if an order is defined for this; false otherwise.
-
getEnumType
public int getEnumType()
Returns the FieldTypeEnumeration value for this type.
-
toString
public String toString()
Representation of this type as a string.
-
-