public class TypeHelperImpl extends BasicTypeHelperImpl implements TypeHelper
Purpose: Implement type helper methods specified by TypeHelper. This implementation uses Class instances to represent a type.
Constructor and Description |
---|
TypeHelperImpl(AbstractSession session,
java.lang.ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
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 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.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.
|
extendedBinaryNumericPromotion, getBigDecimalType, getBigIntegerType, getBooleanClassType, getBooleanType, getByteClassType, getByteType, getCharacterClassType, getCharType, getDateType, getDoubleClassType, getDoubleType, getFloatClassType, getFloatType, getInstance, getIntegerClassType, getIntType, getJavaClass, getLongClassType, getLongType, getMapEntryType, getObjectType, getShortClassType, getShortType, getSQLDateType, getStringType, getTimestampType, getTimeType, getTypeName, isAssignableFrom, isBigDecimalType, isBigIntegerType, isBooleanType, isByteType, isCharacterType, isDateClass, isDoubleType, isEnumType, isFloatingPointType, isFloatType, isIntegerType, isIntegralType, isIntType, isLongType, isNumericType, isShortType, isStrictlyAssignableFrom, isStringType, isWrapperClass
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public TypeHelperImpl(AbstractSession session, java.lang.ClassLoader classLoader)
public java.lang.Object resolveTypeName(java.lang.String typeName)
resolveTypeName
in interface TypeHelper
public java.lang.Object resolveAttribute(java.lang.Object ownerClass, java.lang.String attribute)
resolveAttribute
in interface TypeHelper
public java.lang.Object resolveMapKey(java.lang.Object ownerClass, java.lang.String attribute)
resolveMapKey
in interface TypeHelper
public java.lang.Object resolveSchema(java.lang.String schemaName)
resolveSchema
in interface TypeHelper
public java.lang.Object resolveEnumConstant(java.lang.Object type, java.lang.String constant)
resolveEnumConstant
in interface TypeHelper
public boolean isEntityClass(java.lang.Object type)
isEntityClass
in interface TypeHelper
public boolean isOrderableType(java.lang.Object type)
isOrderableType
in interface TypeHelper
isOrderableType
in class BasicTypeHelperImpl
public boolean isEmbeddable(java.lang.Object type)
isEmbeddable
in interface TypeHelper
public boolean isEmbeddedAttribute(java.lang.Object ownerClass, java.lang.String attribute)
isEmbeddedAttribute
in interface TypeHelper
public boolean isSimpleStateAttribute(java.lang.Object ownerClass, java.lang.String attribute)
isSimpleStateAttribute
in interface TypeHelper
public boolean isRelationship(java.lang.Object ownerClass, java.lang.String attribute)
isRelationship
in interface TypeHelper
public boolean isSingleValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)
isSingleValuedRelationship
in interface TypeHelper
public boolean isCollectionValuedRelationship(java.lang.Object ownerClass, java.lang.String attribute)
isCollectionValuedRelationship
in interface TypeHelper
public QueryKey resolveQueryKey(java.lang.Object ownerClass, java.lang.String attribute)
TypeHelper
resolveQueryKey
in interface TypeHelper
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference