public interface TypeHelper
Purpose: Specify type helper methods.
Modifier and Type | Method and 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.
|
java.lang.String getTypeName(java.lang.Object type)
java.lang.Class getJavaClass(java.lang.Object type)
java.lang.Object resolveTypeName(java.lang.String typeName)
java.lang.Object resolveAttribute(java.lang.Object ownerClass, java.lang.String attribute)
QueryKey resolveQueryKey(java.lang.Object ownerClass, java.lang.String attribute)
java.lang.Object resolveMapKey(java.lang.Object ownerClass, java.lang.String attribute)
java.lang.Object resolveSchema(java.lang.String schemaName)
java.lang.Object resolveEnumConstant(java.lang.Object enumType, java.lang.String constant)
java.lang.Object getObjectType()
java.lang.Object getBooleanType()
java.lang.Object getCharType()
java.lang.Object getSQLDateType()
java.lang.Object getTimeType()
java.lang.Object getTimestampType()
java.lang.Object getIntType()
java.lang.Object getLongType()
java.lang.Object getLongClassType()
java.lang.Object getMapEntryType()
java.lang.Object getFloatType()
java.lang.Object getDoubleType()
java.lang.Object getDoubleClassType()
java.lang.Object getStringType()
java.lang.Object getBigIntegerType()
java.lang.Object getBigDecimalType()
boolean isEnumType(java.lang.Object type)
boolean isNumericType(java.lang.Object type)
boolean isIntegralType(java.lang.Object type)
boolean isFloatingPointType(java.lang.Object type)
boolean isStringType(java.lang.Object type)
boolean isBigIntegerType(java.lang.Object type)
boolean isBigDecimalType(java.lang.Object type)
boolean isOrderableType(java.lang.Object type)
boolean isEntityClass(java.lang.Object type)
boolean isEmbeddable(java.lang.Object type)
boolean isEmbeddedAttribute(java.lang.Object ownerClass, java.lang.String attribute)
boolean isSimpleStateAttribute(java.lang.Object ownerClass, java.lang.String attribute)
boolean isRelationship(java.lang.Object ownerClass, java.lang.String attribute)
boolean isSingleValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)
boolean isCollectionValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)
boolean isAssignableFrom(java.lang.Object left, java.lang.Object right)
java.lang.Object extendedBinaryNumericPromotion(java.lang.Object left, java.lang.Object right)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference