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 MapfieldInfosprotected PersistenceClassElementpceprotected TypeTabletypetabThe associated type table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldInfogetFieldInfo(String fieldName)Return FieldInfo object for the field with the specified name.FieldInfo[]getFieldInfos()Returns an array of fieldInfos for all declared fields.ListgetKeyFieldNames()Return the list of key field namesbooleanisCompatibleWith(Type type)Checks the compatibility of this with the specified type.booleanisOrderable()Returns whether this represents a type with an defined order.booleanisPersistenceCapable()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:
isCompatibleWithin 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:
isOrderablein 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
-
-