| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static Any | buildAnyValue(Column discriminatorColumn, Formula discriminatorFormula, AnnotatedJoinColumns keyColumns, PropertyData inferredData, OnDeleteAction onDeleteAction, boolean lazy, Nullability nullability, PropertyHolder propertyHolder, EntityBinder entityBinder, boolean optional, MetadataBuildingContext context)
|
| private static void | checkColumnInSameTable(AnnotatedJoinColumns joinColumns, PersistentClass targetEntity, PersistentClass associatedEntity, MetadataBuildingContext context, Object columnOwner)
All the referenced columns must belong to the same table, that is
|
| public static void | checkMappedByType(String mappedBy, Value targetValue, String propertyName, PropertyHolder propertyHolder, Map<String, PersistentClass> persistentClasses)
|
| private static boolean | |
| private static Property | cloneProperty(PersistentClass ownerEntity, MetadataBuildingContext context, Property property)
Create a (deep) copy of the |
| private static CascadeType | |
| private static EnumSet | |
| public static void | createSyntheticPropertyReference(AnnotatedJoinColumns joinColumns, PersistentClass targetEntity, PersistentClass associatedEntity, Value value, String propertyName, boolean inverse, MetadataBuildingContext context)
Here we address a fundamental problem: the |
| public static <A extends Annotation> A | Returns: The annotation ornullThe type of annotation to return annotationType, XClass The class in the package xClass, MetadataBuildingContext The processing context context)Extract an annotation from the package-info for the package the given class is defined in |
| public static AttributeContainer | findColumnOwner(PersistentClass persistentClass, String columnName, MetadataBuildingContext context)
Find the column owner (ie PersistentClass or Join) of columnName. |
| private static List | findPropertiesByColumns(Object columnOwner, AnnotatedJoinColumns columns, PersistentClass associatedEntity, MetadataBuildingContext context)
|
| public static Property | findPropertyByName(PersistentClass associatedClass, 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 |
| public static Property | findPropertyByName(Component component, String propertyName)
Retrieve the property by path in a recursive way |
| public static AttributeContainer | findReferencedColumnOwner(PersistentClass persistentClass, AnnotatedJoinColumn joinColumn, MetadataBuildingContext context)
|
| public static String | getCascadeStrategy(CascadeType[] ejbCascades, Cascade hibernateCascadeAnnotation, boolean orphanRemoval, boolean forcePersist)
|
| public static FetchMode | |
| public static MappedSuperclass | getMappedSuperclassOrNull(XClass declaringClass, Map<XClass, InheritanceState> inheritanceStatePerClass, MetadataBuildingContext context)
|
| public static <T extends Annotation> T | getOverridableAnnotation(XAnnotatedElement element, Class<T> annotationType, MetadataBuildingContext context)
|
| public static String | |
| pack-priv static PropertyData | getPropertyOverriddenByMapperOrMapsId(boolean isId, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext)
|
| public static String | |
| public static boolean | |
| pack-priv static boolean | |
| public static boolean | |
| pack-priv static boolean | |
| public static boolean | |
| private static Property | makeSyntheticComponentProperty(PersistentClass ownerEntity, AttributeContainer persistentClassOrJoin, MetadataBuildingContext context, String syntheticPropertyName, List<Property> properties)
Build the "synthetic" |
| private static void | |
| public static boolean | |
| private static void | |
| private static Property | referencedProperty(PersistentClass ownerEntity, PersistentClass associatedEntity, String propertyName, boolean inverse, AttributeContainer columnOwner, List<Property> properties, MetadataBuildingContext context)
If the referenced columns correspond to exactly one property of the primary table of the exact target entity subclass, just use that property. |
| private static void | registerSyntheticProperty(PersistentClass ownerEntity, Value value, boolean inverse, PersistentClass associatedClass, String propertyName, String syntheticPropertyName, MetadataBuildingContext context)
|
| private static String | |
| public static Property | shallowCopy(Property property)
Create a copy of the |
| private static String | |
| public static Map | |
| public static Map |
| PRIMITIVE_NAMES | back to summary |
|---|---|
| public static final Set<String> PRIMITIVE_NAMES | |
| BinderHelper | back to summary |
|---|---|
| private BinderHelper() | |
| associationMessage | back to summary |
|---|---|
| private static String associationMessage(PersistentClass associatedEntity, AnnotatedJoinColumns joinColumns) | |
| buildAnyValue | back to summary |
|---|---|
| public static Any buildAnyValue(Column discriminatorColumn, Formula discriminatorFormula, AnnotatedJoinColumns keyColumns, PropertyData inferredData, OnDeleteAction onDeleteAction, boolean lazy, Nullability nullability, PropertyHolder propertyHolder, EntityBinder entityBinder, boolean optional, MetadataBuildingContext context) | |
| checkColumnInSameTable | back to summary |
|---|---|
| private static void checkColumnInSameTable(AnnotatedJoinColumns joinColumns, PersistentClass targetEntity, PersistentClass associatedEntity, MetadataBuildingContext context, Object columnOwner) All the referenced columns must belong to the same table, that is
| |
| checkMappedByType | back to summary |
|---|---|
| public static void checkMappedByType(String mappedBy, Value targetValue, String propertyName, PropertyHolder propertyHolder, Map<String, PersistentClass> persistentClasses) | |
| checkReferencedClass | back to summary |
|---|---|
| private static boolean checkReferencedClass(PersistentClass ownerClass, PersistentClass referencedClass) | |
| cloneProperty | back to summary |
|---|---|
| private static Property cloneProperty(PersistentClass ownerEntity, MetadataBuildingContext context, Property property) Create a (deep) copy of the | |
| convertCascadeType | back to summary |
|---|---|
| private static CascadeType convertCascadeType(CascadeType cascade) | |
| convertToHibernateCascadeType | back to summary |
|---|---|
| private static EnumSet | |
| createSyntheticPropertyReference | back to summary |
|---|---|
| public static void createSyntheticPropertyReference(AnnotatedJoinColumns joinColumns, PersistentClass targetEntity, PersistentClass associatedEntity, Value value, String propertyName, boolean inverse, MetadataBuildingContext context) Here we address a fundamental problem: the
Complicating this hugely is the fact that an association might
be based on a composite key with multiple The solution here is:
Certain limitations arise from the way this solution is currently
implemented: for example, if a referenced column belongs to a
property of an | |
| extractFromPackage | back to summary |
|---|---|
| public static <A extends Annotation> A extractFromPackage(Class<A> annotationType, XClass xClass, MetadataBuildingContext context) Extract an annotation from the package-info for the package the given class is defined in
| |
| findColumnOwner | back to summary |
|---|---|
| public static AttributeContainer findColumnOwner(PersistentClass persistentClass, String columnName, MetadataBuildingContext context) Find the column owner (ie PersistentClass or Join) of columnName. If columnName is null or empty, persistentClass is returned | |
| findPropertiesByColumns | back to summary |
|---|---|
| private static List | |
| findPropertyByName | back to summary |
|---|---|
| public static Property findPropertyByName(PersistentClass associatedClass, 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 | back to summary |
|---|---|
| public static Property findPropertyByName(Component component, String propertyName) Retrieve the property by path in a recursive way | |
| findReferencedColumnOwner | back to summary |
|---|---|
| public static AttributeContainer findReferencedColumnOwner(PersistentClass persistentClass, AnnotatedJoinColumn joinColumn, MetadataBuildingContext context) | |
| getCascadeStrategy | back to summary |
|---|---|
| public static String getCascadeStrategy(CascadeType[] ejbCascades, Cascade hibernateCascadeAnnotation, boolean orphanRemoval, boolean forcePersist) | |
| getFetchMode | back to summary |
|---|---|
| public static FetchMode getFetchMode(FetchType fetch) | |
| getMappedSuperclassOrNull | back to summary |
|---|---|
| public static MappedSuperclass getMappedSuperclassOrNull(XClass declaringClass, Map<XClass, InheritanceState> inheritanceStatePerClass, MetadataBuildingContext context) | |
| getOverridableAnnotation | back to summary |
|---|---|
| public static <T extends Annotation> T getOverridableAnnotation(XAnnotatedElement element, Class<T> annotationType, MetadataBuildingContext context) | |
| getPath | back to summary |
|---|---|
| public static String getPath(PropertyHolder holder, PropertyData property) | |
| getPropertyOverriddenByMapperOrMapsId | back to summary |
|---|---|
| pack-priv static PropertyData getPropertyOverriddenByMapperOrMapsId(boolean isId, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext) | |
| getRelativePath | back to summary |
|---|---|
| public static String getRelativePath(PropertyHolder propertyHolder, String propertyName) | |
| hasToOneAnnotation | back to summary |
|---|---|
| public static boolean hasToOneAnnotation(XAnnotatedElement property) | |
| isCompositeId | back to summary |
|---|---|
| pack-priv static boolean isCompositeId(XClass entityClass, XProperty idProperty) | |
| isDefault | back to summary |
|---|---|
| public static boolean isDefault(XClass clazz, MetadataBuildingContext context) | |
| isGlobalGeneratorNameGlobal | back to summary |
|---|---|
| pack-priv static boolean isGlobalGeneratorNameGlobal(MetadataBuildingContext context) | |
| isPrimitive | back to summary |
|---|---|
| public static boolean isPrimitive(String elementTypeName) | |
| makeSyntheticComponentProperty | back to summary |
|---|---|
| private static Property makeSyntheticComponentProperty(PersistentClass ownerEntity, AttributeContainer persistentClassOrJoin, MetadataBuildingContext context, String syntheticPropertyName, List<Property> properties) Build the "synthetic" | |
| matchColumnsByProperty | back to summary |
|---|---|
| private static void matchColumnsByProperty(Property property, Map<Column, Set<Property>> columnsToProperty) | |
| noConstraint | back to summary |
|---|---|
| public static boolean noConstraint(ForeignKey foreignKey, boolean noConstraintByDefault) | |
| processAnyDiscriminatorValues | back to summary |
|---|---|
| private static void processAnyDiscriminatorValues(XProperty property, Consumer<AnyDiscriminatorValue> consumer) | |
| referencedProperty | back to summary |
|---|---|
| private static Property referencedProperty(PersistentClass ownerEntity, PersistentClass associatedEntity, String propertyName, boolean inverse, AttributeContainer columnOwner, List<Property> properties, MetadataBuildingContext context) If the referenced columns correspond to exactly one property
of the primary table of the exact target entity subclass,
just use that property. Otherwise, if a composite key is
spread out over multiple properties, then create a "synthetic"
| |
| registerSyntheticProperty | back to summary |
|---|---|
| private static void registerSyntheticProperty(PersistentClass ownerEntity, Value value, boolean inverse, PersistentClass associatedClass, String propertyName, String syntheticPropertyName, MetadataBuildingContext context) | |
| renderCascadeTypeList | back to summary |
|---|---|
| private static String renderCascadeTypeList(EnumSet<CascadeType> cascadeTypes) | |
| shallowCopy | back to summary |
|---|---|
| public static Property shallowCopy(Property property) Create a copy of the | |
| syntheticPropertyName | back to summary |
|---|---|
| private static String syntheticPropertyName(String propertyName, boolean inverse, PersistentClass associatedClass) | |
| toAliasEntityMap | back to summary |
|---|---|
| public static Map | |
| toAliasTableMap | back to summary |
|---|---|
| public static Map | |