Class BinderHelper


  • public class BinderHelper
    extends java.lang.Object
    • Field Detail

      • ANNOTATION_STRING_DEFAULT

        public static final java.lang.String ANNOTATION_STRING_DEFAULT
        See Also:
        Constant Field Values
      • PRIMITIVE_NAMES

        public static final java.util.Set<java.lang.String> PRIMITIVE_NAMES
    • Method Detail

      • shallowCopy

        public static Property shallowCopy​(Property property)
        create a property copy reusing the same value
      • findPropertyByName

        public static Property findPropertyByName​(PersistentClass associatedClass,
                                                  java.lang.String propertyName)
        Retrieve the property by path in a recursive way, including IdentifierProperty in the loop If propertyName is null or empty, the IdentifierProperty is returned
      • findPropertyByName

        public static Property findPropertyByName​(Component component,
                                                  java.lang.String propertyName)
        Retrieve the property by path in a recursive way
      • getRelativePath

        public static java.lang.String getRelativePath​(PropertyHolder propertyHolder,
                                                       java.lang.String propertyName)
      • findColumnOwner

        public static java.lang.Object findColumnOwner​(PersistentClass persistentClass,
                                                       java.lang.String columnName,
                                                       MetadataBuildingContext context)
        Find the column owner (ie PersistentClass or Join) of columnName. If columnName is null or empty, persistentClass is returned
      • makeIdGenerator

        public static void makeIdGenerator​(SimpleValue id,
                                           org.hibernate.annotations.common.reflection.XProperty idXProperty,
                                           java.lang.String generatorType,
                                           java.lang.String generatorName,
                                           MetadataBuildingContext buildingContext,
                                           java.util.Map<java.lang.String,​IdentifierGeneratorDefinition> localGenerators)
        apply an id generator to a SimpleValue
      • makeIdGenerator

        public static void makeIdGenerator​(SimpleValue id,
                                           org.hibernate.annotations.common.reflection.XProperty idXProperty,
                                           java.lang.String generatorType,
                                           java.lang.String generatorName,
                                           MetadataBuildingContext buildingContext,
                                           IdentifierGeneratorDefinition foreignKGeneratorDefinition)
        apply an id generator to a SimpleValue
      • isEmptyAnnotationValue

        public static boolean isEmptyAnnotationValue​(java.lang.String annotationString)
      • isEmptyOrNullAnnotationValue

        public static boolean isEmptyOrNullAnnotationValue​(java.lang.String annotationString)
      • bindAnyMetaDefs

        public static void bindAnyMetaDefs​(org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement,
                                           MetadataBuildingContext context)
      • getMappedSuperclassOrNull

        public static MappedSuperclass getMappedSuperclassOrNull​(org.hibernate.annotations.common.reflection.XClass declaringClass,
                                                                 java.util.Map<org.hibernate.annotations.common.reflection.XClass,​InheritanceState> inheritanceStatePerClass,
                                                                 MetadataBuildingContext context)
      • toAliasTableMap

        public static java.util.Map<java.lang.String,​java.lang.String> toAliasTableMap​(SqlFragmentAlias[] aliases)
      • toAliasEntityMap

        public static java.util.Map<java.lang.String,​java.lang.String> toAliasEntityMap​(SqlFragmentAlias[] aliases)