Module org.eclipse.persistence.core
Class TypeHelperImpl
java.lang.Object
org.eclipse.persistence.internal.helper.BasicTypeHelperImpl
org.eclipse.persistence.internal.jpa.parsing.TypeHelperImpl
- All Implemented Interfaces:
TypeHelper
INTERNAL
Purpose: Implement type helper methods specified by TypeHelper. This implementation uses Class instances to represent a type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCollectionValuedRelationship(Object ownerClass, String attribute) Returns true if the specified attribute denotes a collection valued relationship attribute.booleanisEmbeddable(Object type) Returns true if the specified type denotes an embedded class.booleanisEmbeddedAttribute(Object ownerClass, String attribute) Returns true if the specified type denotes an embedded attribute.booleanisEntityClass(Object type) Returns true if the specified type denotes an entity class.booleanisOrderableType(Object type) Returns true if the specified type denotes an orderable typebooleanisRelationship(Object ownerClass, String attribute) Returns true if the specified attribute denotes a single valued or collection valued relationship attribute.booleanisSimpleStateAttribute(Object ownerClass, String attribute) Returns true if the specified type denotes a simple state attribute.booleanisSingleValuedRelationship(Object ownerClass, String attribute) Returns true if the specified attribute denotes a single valued relationship attribute.resolveAttribute(Object ownerClass, String attribute) Returns the type of the attribute with the specified name in the specified owner class.resolveEnumConstant(Object type, 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.Methods inherited from class org.eclipse.persistence.internal.helper.BasicTypeHelperImpl
binaryNumericPromotion, extendedBinaryNumericPromotion, getBigDecimalType, getBigIntegerType, getBooleanClassType, getBooleanType, getByteClassType, getByteType, getCharacterClassType, getCharType, getDateType, getDoubleClassType, getDoubleType, getFloatClassType, getFloatType, getInstance, getIntegerClassType, getIntType, getJavaClass, getLongClassType, getLongType, getMapEntryType, getObjectType, getPrimitiveType, getShortClassType, getShortType, getSQLDateType, getStringType, getTimestampType, getTimeType, getTypeName, getWrapperClass, isAssignableFrom, isBigDecimalType, isBigIntegerType, isBooleanType, isByteType, isCharacterType, isDateClass, isDoubleType, isEnumType, isFloatingPointType, isFloatType, isIntegerType, isIntegralType, isIntType, isLongType, isNumericType, isShortType, isStrictlyAssignableFrom, isStringType, isWrapperClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.persistence.internal.jpa.parsing.TypeHelper
extendedBinaryNumericPromotion, getBigDecimalType, getBigIntegerType, getBooleanType, getCharType, getDoubleClassType, getDoubleType, getFloatType, getIntType, getJavaClass, getLongClassType, getLongType, getMapEntryType, getObjectType, getSQLDateType, getStringType, getTimestampType, getTimeType, getTypeName, isAssignableFrom, isBigDecimalType, isBigIntegerType, isEnumType, isFloatingPointType, isIntegralType, isNumericType, isStringType
-
Constructor Details
-
TypeHelperImpl
-
-
Method Details
-
resolveTypeName
Returns a type representation for the specified type name or null if there is no such type.- Specified by:
resolveTypeNamein interfaceTypeHelper
-
resolveAttribute
Returns the type of the attribute with the specified name in the specified owner class.- Specified by:
resolveAttributein interfaceTypeHelper
-
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- Specified by:
resolveMapKeyin interfaceTypeHelper
-
resolveSchema
Returns the type of the class corresponding to the specified abstract schema type.- Specified by:
resolveSchemain interfaceTypeHelper
-
resolveEnumConstant
Returns the enum constant if the specified type denotes an enum type and the specified constant denotes a constant of the enum type.- Specified by:
resolveEnumConstantin interfaceTypeHelper
-
isEntityClass
Returns true if the specified type denotes an entity class.- Specified by:
isEntityClassin interfaceTypeHelper
-
isOrderableType
Returns true if the specified type denotes an orderable type- Specified by:
isOrderableTypein interfaceTypeHelper- Overrides:
isOrderableTypein classBasicTypeHelperImpl
-
isEmbeddable
Returns true if the specified type denotes an embedded class.- Specified by:
isEmbeddablein interfaceTypeHelper
-
isEmbeddedAttribute
Returns true if the specified type denotes an embedded attribute.- Specified by:
isEmbeddedAttributein interfaceTypeHelper
-
isSimpleStateAttribute
Returns true if the specified type denotes a simple state attribute.- Specified by:
isSimpleStateAttributein interfaceTypeHelper
-
isRelationship
Returns true if the specified attribute denotes a single valued or collection valued relationship attribute.- Specified by:
isRelationshipin interfaceTypeHelper
-
isSingleValuedRelationship
Returns true if the specified attribute denotes a single valued relationship attribute.- Specified by:
isSingleValuedRelationshipin interfaceTypeHelper
-
isCollectionValuedRelationship
Returns true if the specified attribute denotes a collection valued relationship attribute.- Specified by:
isCollectionValuedRelationshipin interfaceTypeHelper
-
resolveQueryKey
Description copied from interface:TypeHelperReturns a query key associated with the name of the attribute- Specified by:
resolveQueryKeyin interfaceTypeHelper
-