Interface TypeHelper
-
- All Known Implementing Classes:
TypeHelperImpl
public interface TypeHelperINTERNALPurpose: Specify type helper methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectextendedBinaryNumericPromotion(java.lang.Object left, java.lang.Object right)Binary numeric promotion as specified in the JLS, extended by wrapper classes, BigDecimal and BigInteger.java.lang.ObjectgetBigDecimalType()Returns the type representation of class BigDecimal.java.lang.ObjectgetBigIntegerType()Returns the type representation of class BigInteger.java.lang.ObjectgetBooleanType()Returns the boolean type representation.java.lang.ObjectgetCharType()Returns the char type representation.java.lang.ObjectgetDoubleClassType()Returns the type representation of class Double.java.lang.ObjectgetDoubleType()Returns the double type representation.java.lang.ObjectgetFloatType()Returns the float type representation.java.lang.ObjectgetIntType()Returns the int type representation.java.lang.ClassgetJavaClass(java.lang.Object type)Returns the class object of the specified type.java.lang.ObjectgetLongClassType()Returns the type representation of class Long.java.lang.ObjectgetLongType()Returns the long type representation.java.lang.ObjectgetMapEntryType()Returns the type representation of class Map.Entry.java.lang.ObjectgetObjectType()Returns the type representation of class Object.java.lang.ObjectgetSQLDateType()Returns the char type representation.java.lang.ObjectgetStringType()Returns the type representation oc class String.java.lang.ObjectgetTimestampType()Returns the char type representation.java.lang.ObjectgetTimeType()Returns the char type representation.java.lang.StringgetTypeName(java.lang.Object type)Returns the name of the specified type.booleanisAssignableFrom(java.lang.Object left, java.lang.Object right)Returns true if left is assignable from right.booleanisBigDecimalType(java.lang.Object type)Returns true if the specified type represents java.math.BigDecimal.booleanisBigIntegerType(java.lang.Object type)Returns true if the specified type represents java.math.BigInteger.booleanisCollectionValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified attribute denotes a collection valued relationship attribute.booleanisEmbeddable(java.lang.Object type)Returns true if the specified type denotes an embedded class.booleanisEmbeddedAttribute(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified type denotes an embedded attribute.booleanisEntityClass(java.lang.Object type)Returns true if the specified type denotes an entity class.booleanisEnumType(java.lang.Object type)Returns true if the specified type denotes an enum type.booleanisFloatingPointType(java.lang.Object type)Returns true if the specified type represents an floating point type or a wrapper class of an floating point type.booleanisIntegralType(java.lang.Object type)Returns true if the specified type represents an integral type or a wrapper class of an integral type.booleanisNumericType(java.lang.Object type)Returns true if the specified type represents an integral type (or wrapper), a floating point type (or wrapper), BigInteger or BigDecimal.booleanisOrderableType(java.lang.Object type)Returns true if the specified type denotes an orderable type.booleanisRelationship(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified attribute denotes a single valued or collection valued relationship attribute.booleanisSimpleStateAttribute(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified type denotes a simple state attribute.booleanisSingleValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified attribute denotes a single valued relationship attribute.booleanisStringType(java.lang.Object type)Returns true if the specified type represents java.lang.String.java.lang.ObjectresolveAttribute(java.lang.Object ownerClass, java.lang.String attribute)Returns the type of the attribute with the specified name in the specified owner class.java.lang.ObjectresolveEnumConstant(java.lang.Object enumType, java.lang.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.java.lang.ObjectresolveMapKey(java.lang.Object ownerClass, java.lang.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 keyQueryKeyresolveQueryKey(java.lang.Object ownerClass, java.lang.String attribute)Returns a query key associated with the name of the attributejava.lang.ObjectresolveSchema(java.lang.String schemaName)Returns the type of the class corresponding to the specified abstract schema type.java.lang.ObjectresolveTypeName(java.lang.String typeName)Returns a type representation for the specified type name or null if there is no such type.
-
-
-
Method Detail
-
getTypeName
java.lang.String getTypeName(java.lang.Object type)
Returns the name of the specified type.
-
getJavaClass
java.lang.Class getJavaClass(java.lang.Object type)
Returns the class object of the specified type.
-
resolveTypeName
java.lang.Object resolveTypeName(java.lang.String typeName)
Returns a type representation for the specified type name or null if there is no such type.
-
resolveAttribute
java.lang.Object resolveAttribute(java.lang.Object ownerClass, java.lang.String attribute)Returns the type of the attribute with the specified name in the specified owner class.
-
resolveQueryKey
QueryKey resolveQueryKey(java.lang.Object ownerClass, java.lang.String attribute)
Returns a query key associated with the name of the attribute
-
resolveMapKey
java.lang.Object resolveMapKey(java.lang.Object ownerClass, java.lang.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
java.lang.Object resolveSchema(java.lang.String schemaName)
Returns the type of the class corresponding to the specified abstract schema type.
-
resolveEnumConstant
java.lang.Object resolveEnumConstant(java.lang.Object enumType, java.lang.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
java.lang.Object getObjectType()
Returns the type representation of class Object.
-
getBooleanType
java.lang.Object getBooleanType()
Returns the boolean type representation.
-
getCharType
java.lang.Object getCharType()
Returns the char type representation.
-
getSQLDateType
java.lang.Object getSQLDateType()
Returns the char type representation.
-
getTimeType
java.lang.Object getTimeType()
Returns the char type representation.
-
getTimestampType
java.lang.Object getTimestampType()
Returns the char type representation.
-
getIntType
java.lang.Object getIntType()
Returns the int type representation.
-
getLongType
java.lang.Object getLongType()
Returns the long type representation.
-
getLongClassType
java.lang.Object getLongClassType()
Returns the type representation of class Long.
-
getMapEntryType
java.lang.Object getMapEntryType()
Returns the type representation of class Map.Entry.
-
getFloatType
java.lang.Object getFloatType()
Returns the float type representation.
-
getDoubleType
java.lang.Object getDoubleType()
Returns the double type representation.
-
getDoubleClassType
java.lang.Object getDoubleClassType()
Returns the type representation of class Double.
-
getStringType
java.lang.Object getStringType()
Returns the type representation oc class String.
-
getBigIntegerType
java.lang.Object getBigIntegerType()
Returns the type representation of class BigInteger.
-
getBigDecimalType
java.lang.Object getBigDecimalType()
Returns the type representation of class BigDecimal.
-
isEnumType
boolean isEnumType(java.lang.Object type)
Returns true if the specified type denotes an enum type.
-
isNumericType
boolean isNumericType(java.lang.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(java.lang.Object type)
Returns true if the specified type represents an integral type or a wrapper class of an integral type.
-
isFloatingPointType
boolean isFloatingPointType(java.lang.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(java.lang.Object type)
Returns true if the specified type represents java.lang.String.
-
isBigIntegerType
boolean isBigIntegerType(java.lang.Object type)
Returns true if the specified type represents java.math.BigInteger.
-
isBigDecimalType
boolean isBigDecimalType(java.lang.Object type)
Returns true if the specified type represents java.math.BigDecimal.
-
isOrderableType
boolean isOrderableType(java.lang.Object type)
Returns true if the specified type denotes an orderable type.
-
isEntityClass
boolean isEntityClass(java.lang.Object type)
Returns true if the specified type denotes an entity class.
-
isEmbeddable
boolean isEmbeddable(java.lang.Object type)
Returns true if the specified type denotes an embedded class.
-
isEmbeddedAttribute
boolean isEmbeddedAttribute(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified type denotes an embedded attribute.
-
isSimpleStateAttribute
boolean isSimpleStateAttribute(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified type denotes a simple state attribute.
-
isRelationship
boolean isRelationship(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified attribute denotes a single valued or collection valued relationship attribute.
-
isSingleValuedRelationship
boolean isSingleValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified attribute denotes a single valued relationship attribute.
-
isCollectionValuedRelationship
boolean isCollectionValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified attribute denotes a collection valued relationship attribute.
-
isAssignableFrom
boolean isAssignableFrom(java.lang.Object left, java.lang.Object right)Returns true if left is assignable from right.
-
extendedBinaryNumericPromotion
java.lang.Object extendedBinaryNumericPromotion(java.lang.Object left, java.lang.Object right)Binary numeric promotion as specified in the JLS, extended by wrapper classes, BigDecimal and BigInteger.
-
-