Interface TypeHelper
-
- All Known Implementing Classes:
TypeHelperImpl
public interface TypeHelper
INTERNALPurpose: Specify type helper methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
extendedBinaryNumericPromotion(Object left, Object right)
Binary numeric promotion as specified in the JLS, extended by wrapper classes, BigDecimal and BigInteger.Object
getBigDecimalType()
Returns the type representation of class BigDecimal.Object
getBigIntegerType()
Returns the type representation of class BigInteger.Object
getBooleanType()
Returns the boolean type representation.Object
getCharType()
Returns the char type representation.Object
getDoubleClassType()
Returns the type representation of class Double.Object
getDoubleType()
Returns the double type representation.Object
getFloatType()
Returns the float type representation.Object
getIntType()
Returns the int type representation.Class
getJavaClass(Object type)
Returns the class object of the specified type.Object
getLongClassType()
Returns the type representation of class Long.Object
getLongType()
Returns the long type representation.Object
getMapEntryType()
Returns the type representation of class Map.Entry.Object
getObjectType()
Returns the type representation of class Object.Object
getSQLDateType()
Returns the char type representation.Object
getStringType()
Returns the type representation oc class String.Object
getTimestampType()
Returns the char type representation.Object
getTimeType()
Returns the char type representation.String
getTypeName(Object type)
Returns the name of the specified type.boolean
isAssignableFrom(Object left, Object right)
Returns true if left is assignable from right.boolean
isBigDecimalType(Object type)
Returns true if the specified type represents java.math.BigDecimal.boolean
isBigIntegerType(Object type)
Returns true if the specified type represents java.math.BigInteger.boolean
isCollectionValuedRelationship(Object ownerClass, String attribute)
Returns true if the specified attribute denotes a collection valued relationship attribute.boolean
isEmbeddable(Object type)
Returns true if the specified type denotes an embedded class.boolean
isEmbeddedAttribute(Object ownerClass, String attribute)
Returns true if the specified type denotes an embedded attribute.boolean
isEntityClass(Object type)
Returns true if the specified type denotes an entity class.boolean
isEnumType(Object type)
Returns true if the specified type denotes an enum type.boolean
isFloatingPointType(Object type)
Returns true if the specified type represents an floating point type or a wrapper class of an floating point type.boolean
isIntegralType(Object type)
Returns true if the specified type represents an integral type or a wrapper class of an integral type.boolean
isNumericType(Object type)
Returns true if the specified type represents an integral type (or wrapper), a floating point type (or wrapper), BigInteger or BigDecimal.boolean
isOrderableType(Object type)
Returns true if the specified type denotes an orderable type.boolean
isRelationship(Object ownerClass, String attribute)
Returns true if the specified attribute denotes a single valued or collection valued relationship attribute.boolean
isSimpleStateAttribute(Object ownerClass, String attribute)
Returns true if the specified type denotes a simple state attribute.boolean
isSingleValuedRelationship(Object ownerClass, String attribute)
Returns true if the specified attribute denotes a single valued relationship attribute.boolean
isStringType(Object type)
Returns true if the specified type represents java.lang.String.Object
resolveAttribute(Object ownerClass, String attribute)
Returns the type of the attribute with the specified name in the specified owner class.Object
resolveEnumConstant(Object enumType, String constant)
Returns the enum constant if the specified type denotes an enum type and the specified constant denotes a constant of the enum type.Object
resolveMapKey(Object ownerClass, String attribute)
Returns the type of the map key for the mapping on ownerClass named attribute Returns null if that mapping does not exist or does not contain a map keyQueryKey
resolveQueryKey(Object ownerClass, String attribute)
Returns a query key associated with the name of the attributeObject
resolveSchema(String schemaName)
Returns the type of the class corresponding to the specified abstract schema type.Object
resolveTypeName(String typeName)
Returns a type representation for the specified type name or null if there is no such type.
-
-
-
Method Detail
-
resolveTypeName
Object resolveTypeName(String typeName)
Returns a type representation for the specified type name or null if there is no such type.
-
resolveAttribute
Object resolveAttribute(Object ownerClass, String attribute)
Returns the type of the attribute with the specified name in the specified owner class.
-
resolveQueryKey
QueryKey resolveQueryKey(Object ownerClass, String attribute)
Returns a query key associated with the name of the attribute
-
resolveMapKey
Object resolveMapKey(Object ownerClass, String attribute)
Returns the type of the map key for the mapping on ownerClass named attribute Returns null if that mapping does not exist or does not contain a map key
-
resolveSchema
Object resolveSchema(String schemaName)
Returns the type of the class corresponding to the specified abstract schema type.
-
resolveEnumConstant
Object resolveEnumConstant(Object enumType, String constant)
Returns the enum constant if the specified type denotes an enum type and the specified constant denotes a constant of the enum type.
-
getObjectType
Object getObjectType()
Returns the type representation of class Object.
-
getBooleanType
Object getBooleanType()
Returns the boolean type representation.
-
getCharType
Object getCharType()
Returns the char type representation.
-
getSQLDateType
Object getSQLDateType()
Returns the char type representation.
-
getTimeType
Object getTimeType()
Returns the char type representation.
-
getTimestampType
Object getTimestampType()
Returns the char type representation.
-
getIntType
Object getIntType()
Returns the int type representation.
-
getLongType
Object getLongType()
Returns the long type representation.
-
getLongClassType
Object getLongClassType()
Returns the type representation of class Long.
-
getMapEntryType
Object getMapEntryType()
Returns the type representation of class Map.Entry.
-
getFloatType
Object getFloatType()
Returns the float type representation.
-
getDoubleType
Object getDoubleType()
Returns the double type representation.
-
getDoubleClassType
Object getDoubleClassType()
Returns the type representation of class Double.
-
getStringType
Object getStringType()
Returns the type representation oc class String.
-
getBigIntegerType
Object getBigIntegerType()
Returns the type representation of class BigInteger.
-
getBigDecimalType
Object getBigDecimalType()
Returns the type representation of class BigDecimal.
-
isEnumType
boolean isEnumType(Object type)
Returns true if the specified type denotes an enum type.
-
isNumericType
boolean isNumericType(Object type)
Returns true if the specified type represents an integral type (or wrapper), a floating point type (or wrapper), BigInteger or BigDecimal.
-
isIntegralType
boolean isIntegralType(Object type)
Returns true if the specified type represents an integral type or a wrapper class of an integral type.
-
isFloatingPointType
boolean isFloatingPointType(Object type)
Returns true if the specified type represents an floating point type or a wrapper class of an floating point type.
-
isStringType
boolean isStringType(Object type)
Returns true if the specified type represents java.lang.String.
-
isBigIntegerType
boolean isBigIntegerType(Object type)
Returns true if the specified type represents java.math.BigInteger.
-
isBigDecimalType
boolean isBigDecimalType(Object type)
Returns true if the specified type represents java.math.BigDecimal.
-
isOrderableType
boolean isOrderableType(Object type)
Returns true if the specified type denotes an orderable type.
-
isEntityClass
boolean isEntityClass(Object type)
Returns true if the specified type denotes an entity class.
-
isEmbeddable
boolean isEmbeddable(Object type)
Returns true if the specified type denotes an embedded class.
-
isEmbeddedAttribute
boolean isEmbeddedAttribute(Object ownerClass, String attribute)
Returns true if the specified type denotes an embedded attribute.
-
isSimpleStateAttribute
boolean isSimpleStateAttribute(Object ownerClass, String attribute)
Returns true if the specified type denotes a simple state attribute.
-
isRelationship
boolean isRelationship(Object ownerClass, String attribute)
Returns true if the specified attribute denotes a single valued or collection valued relationship attribute.
-
isSingleValuedRelationship
boolean isSingleValuedRelationship(Object ownerClass, String attribute)
Returns true if the specified attribute denotes a single valued relationship attribute.
-
isCollectionValuedRelationship
boolean isCollectionValuedRelationship(Object ownerClass, String attribute)
Returns true if the specified attribute denotes a collection valued relationship attribute.
-
isAssignableFrom
boolean isAssignableFrom(Object left, Object right)
Returns true if left is assignable from right.
-
-