Interface TypeHelper

  • All Known Implementing Classes:
    TypeHelperImpl

    public interface TypeHelper
    INTERNAL

    Purpose: Specify type helper methods.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
      java.lang.Object getBigDecimalType()
      Returns the type representation of class BigDecimal.
      java.lang.Object getBigIntegerType()
      Returns the type representation of class BigInteger.
      java.lang.Object getBooleanType()
      Returns the boolean type representation.
      java.lang.Object getCharType()
      Returns the char type representation.
      java.lang.Object getDoubleClassType()
      Returns the type representation of class Double.
      java.lang.Object getDoubleType()
      Returns the double type representation.
      java.lang.Object getFloatType()
      Returns the float type representation.
      java.lang.Object getIntType()
      Returns the int type representation.
      java.lang.Class getJavaClass​(java.lang.Object type)
      Returns the class object of the specified type.
      java.lang.Object getLongClassType()
      Returns the type representation of class Long.
      java.lang.Object getLongType()
      Returns the long type representation.
      java.lang.Object getMapEntryType()
      Returns the type representation of class Map.Entry.
      java.lang.Object getObjectType()
      Returns the type representation of class Object.
      java.lang.Object getSQLDateType()
      Returns the char type representation.
      java.lang.Object getStringType()
      Returns the type representation oc class String.
      java.lang.Object getTimestampType()
      Returns the char type representation.
      java.lang.Object getTimeType()
      Returns the char type representation.
      java.lang.String getTypeName​(java.lang.Object type)
      Returns the name of the specified type.
      boolean isAssignableFrom​(java.lang.Object left, java.lang.Object right)
      Returns true if left is assignable from right.
      boolean isBigDecimalType​(java.lang.Object type)
      Returns true if the specified type represents java.math.BigDecimal.
      boolean isBigIntegerType​(java.lang.Object type)
      Returns true if the specified type represents java.math.BigInteger.
      boolean isCollectionValuedRelationship​(java.lang.Object ownerClass, java.lang.String attribute)
      Returns true if the specified attribute denotes a collection valued relationship attribute.
      boolean isEmbeddable​(java.lang.Object type)
      Returns true if the specified type denotes an embedded class.
      boolean isEmbeddedAttribute​(java.lang.Object ownerClass, java.lang.String attribute)
      Returns true if the specified type denotes an embedded attribute.
      boolean isEntityClass​(java.lang.Object type)
      Returns true if the specified type denotes an entity class.
      boolean isEnumType​(java.lang.Object type)
      Returns true if the specified type denotes an enum type.
      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.
      boolean isIntegralType​(java.lang.Object type)
      Returns true if the specified type represents an integral type or a wrapper class of an integral type.
      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.
      boolean isOrderableType​(java.lang.Object type)
      Returns true if the specified type denotes an orderable type.
      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.
      boolean isSimpleStateAttribute​(java.lang.Object ownerClass, java.lang.String attribute)
      Returns true if the specified type denotes a simple state attribute.
      boolean isSingleValuedRelationship​(java.lang.Object ownerClass, java.lang.String attribute)
      Returns true if the specified attribute denotes a single valued relationship attribute.
      boolean isStringType​(java.lang.Object type)
      Returns true if the specified type represents java.lang.String.
      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.
      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.
      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
      QueryKey resolveQueryKey​(java.lang.Object ownerClass, java.lang.String attribute)
      Returns a query key associated with the name of the attribute
      java.lang.Object resolveSchema​(java.lang.String schemaName)
      Returns the type of the class corresponding to the specified abstract schema type.
      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.
    • 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.