Module org.eclipse.persistence.core
Interface TypeHelper
- All Known Implementing Classes:
TypeHelperImpl
public interface TypeHelper
INTERNAL
Purpose: Specify type helper methods.
-
Method Summary
Modifier and TypeMethodDescriptionextendedBinaryNumericPromotion
(Object left, Object right) Binary numeric promotion as specified in the JLS, extended by wrapper classes, BigDecimal and BigInteger.Returns the type representation of class BigDecimal.Returns the type representation of class BigInteger.Returns the boolean type representation.Returns the char type representation.Returns the type representation of class Double.Returns the double type representation.Returns the float type representation.Returns the int type representation.Class
<?> getJavaClass
(Object type) Returns the class object of the specified type.Returns the type representation of class Long.Returns the long type representation.Returns the type representation of class Map.Entry.Returns the type representation of class Object.Returns the char type representation.Returns the type representation oc class String.Returns the char type representation.Returns the char type representation.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.resolveAttribute
(Object ownerClass, String attribute) Returns the type of the attribute with the specified name in the specified owner class.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.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 keyresolveQueryKey
(Object ownerClass, String attribute) Returns a query key associated with the name of the attributeresolveSchema
(String schemaName) Returns the type of the class corresponding to the specified abstract schema type.resolveTypeName
(String typeName) Returns a type representation for the specified type name or null if there is no such type.
-
Method Details
-
getTypeName
Returns the name of the specified type. -
getJavaClass
Returns the class object of the specified type. -
resolveTypeName
Returns a type representation for the specified type name or null if there is no such type. -
resolveAttribute
Returns the type of the attribute with the specified name in the specified owner class. -
resolveQueryKey
Returns a query key associated with the name of the attribute -
resolveMapKey
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
Returns the type of the class corresponding to the specified abstract schema type. -
resolveEnumConstant
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
Returns true if the specified type denotes an enum type. -
isNumericType
Returns true if the specified type represents an integral type (or wrapper), a floating point type (or wrapper), BigInteger or BigDecimal. -
isIntegralType
Returns true if the specified type represents an integral type or a wrapper class of an integral type. -
isFloatingPointType
Returns true if the specified type represents an floating point type or a wrapper class of an floating point type. -
isStringType
Returns true if the specified type represents java.lang.String. -
isBigIntegerType
Returns true if the specified type represents java.math.BigInteger. -
isBigDecimalType
Returns true if the specified type represents java.math.BigDecimal. -
isOrderableType
Returns true if the specified type denotes an orderable type. -
isEntityClass
Returns true if the specified type denotes an entity class. -
isEmbeddable
Returns true if the specified type denotes an embedded class. -
isEmbeddedAttribute
Returns true if the specified type denotes an embedded attribute. -
isSimpleStateAttribute
Returns true if the specified type denotes a simple state attribute. -
isRelationship
Returns true if the specified attribute denotes a single valued or collection valued relationship attribute. -
isSingleValuedRelationship
Returns true if the specified attribute denotes a single valued relationship attribute. -
isCollectionValuedRelationship
Returns true if the specified attribute denotes a collection valued relationship attribute. -
isAssignableFrom
Returns true if left is assignable from right. -
extendedBinaryNumericPromotion
Binary numeric promotion as specified in the JLS, extended by wrapper classes, BigDecimal and BigInteger.
-