Class CollectionBinder

    • Constructor Detail

      • CollectionBinder

        protected CollectionBinder​(boolean isSortedCollection)
    • Method Detail

      • isMap

        public boolean isMap()
      • setIsHibernateExtensionMapping

        protected void setIsHibernateExtensionMapping​(boolean hibernateExtensionMapping)
      • isHibernateExtensionMapping

        protected boolean isHibernateExtensionMapping()
      • setUpdatable

        public void setUpdatable​(boolean updatable)
      • setInheritanceStatePerClass

        public void setInheritanceStatePerClass​(Map<org.hibernate.annotations.common.reflection.XClass,​InheritanceState> inheritanceStatePerClass)
      • setInsertable

        public void setInsertable​(boolean insertable)
      • setCascadeStrategy

        public void setCascadeStrategy​(String cascadeStrategy)
      • setAccessType

        public void setAccessType​(AccessType accessType)
      • setInverseJoinColumns

        public void setInverseJoinColumns​(Ejb3JoinColumn[] inverseJoinColumns)
      • setJoinColumns

        public void setJoinColumns​(Ejb3JoinColumn[] joinColumns)
      • setPropertyHolder

        public void setPropertyHolder​(PropertyHolder propertyHolder)
      • setBatchSize

        public void setBatchSize​(BatchSize batchSize)
      • setJpaOrderBy

        public void setJpaOrderBy​(jakarta.persistence.OrderBy jpaOrderBy)
      • setSqlOrderBy

        public void setSqlOrderBy​(OrderBy sqlOrderBy)
      • setNaturalSort

        public void setNaturalSort​(SortNatural naturalSort)
      • setComparatorSort

        public void setComparatorSort​(SortComparator comparatorSort)
      • getCollectionBinder

        public static CollectionBinder getCollectionBinder​(String entityName,
                                                           org.hibernate.annotations.common.reflection.XProperty property,
                                                           boolean isIndexed,
                                                           boolean isHibernateExtensionMapping,
                                                           MetadataBuildingContext buildingContext)
        collection binder factory
      • setMappedBy

        public void setMappedBy​(String mappedBy)
      • setTableBinder

        public void setTableBinder​(TableBinder tableBinder)
      • setCollectionType

        public void setCollectionType​(org.hibernate.annotations.common.reflection.XClass collectionType)
      • setTargetEntity

        public void setTargetEntity​(org.hibernate.annotations.common.reflection.XClass targetEntity)
      • getCollection

        public Collection getCollection()
      • setPropertyName

        public void setPropertyName​(String propertyName)
      • setDeclaringClass

        public void setDeclaringClass​(org.hibernate.annotations.common.reflection.XClass declaringClass)
      • bind

        public void bind()
      • bindStarToManySecondPass

        protected boolean bindStarToManySecondPass​(Map<String,​PersistentClass> persistentClasses,
                                                   org.hibernate.annotations.common.reflection.XClass collType,
                                                   Ejb3JoinColumn[] fkJoinColumns,
                                                   Ejb3JoinColumn[] keyColumns,
                                                   Ejb3JoinColumn[] inverseColumns,
                                                   Ejb3Column[] elementColumns,
                                                   boolean isEmbedded,
                                                   org.hibernate.annotations.common.reflection.XProperty property,
                                                   boolean unique,
                                                   TableBinder associationTableBinder,
                                                   boolean ignoreNotFound,
                                                   MetadataBuildingContext buildingContext)
        return true if it's a Fk, false if it's an association table
      • setCache

        public void setCache​(Cache cacheAnn)
      • setOneToMany

        public void setOneToMany​(boolean oneToMany)
      • setIndexColumn

        public void setIndexColumn​(IndexColumn indexColumn)
      • setMapKey

        public void setMapKey​(jakarta.persistence.MapKey key)
      • adjustUserSuppliedValueCollectionOrderingFragment

        public static String adjustUserSuppliedValueCollectionOrderingFragment​(String orderByFragment)
      • setCascadeDeleteEnabled

        public void setCascadeDeleteEnabled​(boolean onDeleteCascade)
      • bindManytoManyInverseFk

        public static void bindManytoManyInverseFk​(PersistentClass referencedEntity,
                                                   Ejb3JoinColumn[] columns,
                                                   SimpleValue value,
                                                   boolean unique,
                                                   MetadataBuildingContext buildingContext)
        bind the inverse FK of a ManyToMany If we are in a mappedBy case, read the columns from the associated collection element Otherwise delegates to the usual algorithm
      • setFkJoinColumns

        public void setFkJoinColumns​(Ejb3JoinColumn[] ejb3JoinColumns)
      • setExplicitAssociationTable

        public void setExplicitAssociationTable​(boolean explicitAssocTable)
      • setElementColumns

        public void setElementColumns​(Ejb3Column[] elementColumns)
      • setEmbedded

        public void setEmbedded​(boolean annotationPresent)
      • setProperty

        public void setProperty​(org.hibernate.annotations.common.reflection.XProperty property)
      • setIgnoreNotFound

        public void setIgnoreNotFound​(boolean ignoreNotFound)
      • setMapKeyColumns

        public void setMapKeyColumns​(Ejb3Column[] mapKeyColumns)
      • setMapKeyManyToManyColumns

        public void setMapKeyManyToManyColumns​(Ejb3JoinColumn[] mapJoinColumns)