Class ClassType
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.Type
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.ClassType
-
- Direct Known Subclasses:
DateType
,MathType
,StringType
,WrapperClassType
public class ClassType extends Type
- Version:
- 0.1
- Author:
- Michael Bouschen
-
-
Field Summary
Fields Modifier and Type Field Description protected Map
fieldInfos
protected PersistenceClassElement
pce
protected TypeTable
typetab
The associated type table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldInfo
getFieldInfo(String fieldName)
Return FieldInfo object for the field with the specified name.FieldInfo[]
getFieldInfos()
Returns an array of fieldInfos for all declared fields.List
getKeyFieldNames()
Return the list of key field namesboolean
isCompatibleWith(Type type)
Checks the compatibility of this with the specified type.boolean
isOrderable()
Returns whether this represents a type with an defined order.boolean
isPersistenceCapable()
Returns true if this is defined as persistence capable class.-
Methods inherited from class com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.Type
equals, getEnumType, getJavaClass, getName, toString
-
-
-
-
Field Detail
-
typetab
protected TypeTable typetab
The associated type table.
-
fieldInfos
protected Map fieldInfos
-
pce
protected PersistenceClassElement pce
-
-
Method Detail
-
isCompatibleWith
public boolean isCompatibleWith(Type type)
Checks the compatibility of this with the specified type. A ClassType object is compatible to errorType, to the type of null (NullType), to itself and to a super class (direct or indirect).- Specified by:
isCompatibleWith
in classType
- Parameters:
type
- type for compatibility check- Returns:
- true if this is compatible with type; false otherwise.
- See Also:
Type.isCompatibleWith(Type)
-
isOrderable
public boolean isOrderable()
Returns whether this represents a type with an defined order.- Overrides:
isOrderable
in classType
- Returns:
- true if an order is defined for this; false otherwise.
-
isPersistenceCapable
public boolean isPersistenceCapable()
Returns true if this is defined as persistence capable class.- Returns:
- true if this is a persistence capable class; false otherwise.
-
getFieldInfos
public FieldInfo[] getFieldInfos()
Returns an array of fieldInfos for all declared fields.
-
getFieldInfo
public FieldInfo getFieldInfo(String fieldName)
Return FieldInfo object for the field with the specified name.
-
getKeyFieldNames
public List getKeyFieldNames()
Return the list of key field names
-
-