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 boolean
equals(Object obj)
Indicates whether some other object is "equal to" this one.int
getEnumType()
Returns the FieldTypeEnumeration value for this type.Class
getJavaClass()
Returns the corresponding class object.String
getName()
Returns the name of the type.abstract boolean
isCompatibleWith(Type type)
Checks type compatibility.boolean
isOrderable()
Returns whether this represents a type with an defined order.String
toString()
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.
-
-