Class TypeHelperImpl
- java.lang.Object
-
- org.eclipse.persistence.internal.helper.BasicTypeHelperImpl
-
- org.eclipse.persistence.internal.jpa.parsing.TypeHelperImpl
-
- All Implemented Interfaces:
TypeHelper
public class TypeHelperImpl extends BasicTypeHelperImpl implements TypeHelper
INTERNALPurpose: Implement type helper methods specified by TypeHelper. This implementation uses Class instances to represent a type.
-
-
Constructor Summary
Constructors Constructor Description TypeHelperImpl(AbstractSession session, java.lang.ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.booleanisOrderableType(java.lang.Object type)Returns true if the specified type denotes an orderable typebooleanisRelationship(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.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 type, 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.-
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, isWrapperClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
TypeHelperImpl
public TypeHelperImpl(AbstractSession session, java.lang.ClassLoader classLoader)
-
-
Method Detail
-
resolveTypeName
public 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.- Specified by:
resolveTypeNamein interfaceTypeHelper
-
resolveAttribute
public 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.- Specified by:
resolveAttributein interfaceTypeHelper
-
resolveMapKey
public 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- Specified by:
resolveMapKeyin interfaceTypeHelper
-
resolveSchema
public java.lang.Object resolveSchema(java.lang.String schemaName)
Returns the type of the class corresponding to the specified abstract schema type.- Specified by:
resolveSchemain interfaceTypeHelper
-
resolveEnumConstant
public java.lang.Object resolveEnumConstant(java.lang.Object type, 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.- Specified by:
resolveEnumConstantin interfaceTypeHelper
-
isEntityClass
public boolean isEntityClass(java.lang.Object type)
Returns true if the specified type denotes an entity class.- Specified by:
isEntityClassin interfaceTypeHelper
-
isOrderableType
public boolean isOrderableType(java.lang.Object type)
Returns true if the specified type denotes an orderable type- Specified by:
isOrderableTypein interfaceTypeHelper- Overrides:
isOrderableTypein classBasicTypeHelperImpl
-
isEmbeddable
public boolean isEmbeddable(java.lang.Object type)
Returns true if the specified type denotes an embedded class.- Specified by:
isEmbeddablein interfaceTypeHelper
-
isEmbeddedAttribute
public boolean isEmbeddedAttribute(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified type denotes an embedded attribute.- Specified by:
isEmbeddedAttributein interfaceTypeHelper
-
isSimpleStateAttribute
public boolean isSimpleStateAttribute(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified type denotes a simple state attribute.- Specified by:
isSimpleStateAttributein interfaceTypeHelper
-
isRelationship
public 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.- Specified by:
isRelationshipin interfaceTypeHelper
-
isSingleValuedRelationship
public boolean isSingleValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified attribute denotes a single valued relationship attribute.- Specified by:
isSingleValuedRelationshipin interfaceTypeHelper
-
isCollectionValuedRelationship
public boolean isCollectionValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)Returns true if the specified attribute denotes a collection valued relationship attribute.- Specified by:
isCollectionValuedRelationshipin interfaceTypeHelper
-
resolveQueryKey
public QueryKey resolveQueryKey(java.lang.Object ownerClass, java.lang.String attribute)
Description copied from interface:TypeHelperReturns a query key associated with the name of the attribute- Specified by:
resolveQueryKeyin interfaceTypeHelper
-
-