Record Class FunctionalDependencyAnalysisSupport
java.lang.Object
java.lang.Record
org.hibernate.dialect.aggregate.spi.FunctionalDependencyAnalysisSupport
- Record Components:
supportsAnalysis- whether primary-key functional dependency is recognized for a single table referencesupportsTableGroups- whether it remains valid through joins or unionssupportsConstants- whether table-group analysis also permits constants
@SPI(USE)
public record FunctionalDependencyAnalysisSupport(boolean supportsAnalysis, boolean supportsTableGroups, boolean supportsConstants)
extends Record
Immutable Dialect support for primary-key functional-dependency analysis within
GROUP BY and ORDER BY clauses.
This is a hierarchical capability profile: table-group support is meaningful only when basic analysis is supported, and constant support refines table-group analysis. A Dialect should normally return one of the predefined profiles instead of constructing an ad hoc combination.
- Since:
- 8.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FunctionalDependencyAnalysisSupportNo support for functional-dependency analysis.static final FunctionalDependencyAnalysisSupportAnalysis of joined tables and result sets when only table columns are selected.static final FunctionalDependencyAnalysisSupportAnalysis of joined tables and result sets, including constant values.static final FunctionalDependencyAnalysisSupportAnalysis of a single table reference, without joins or unions. -
Constructor Summary
ConstructorsConstructorDescriptionFunctionalDependencyAnalysisSupport(boolean supportsAnalysis, boolean supportsTableGroups, boolean supportsConstants) Reject a profile whose refinements are enabled without their prerequisite. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesupportsAnalysisrecord component.booleanReturns the value of thesupportsConstantsrecord component.booleanReturns the value of thesupportsTableGroupsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
No support for functional-dependency analysis. -
TABLE_REFERENCE
Analysis of a single table reference, without joins or unions. -
TABLE_GROUP
Analysis of joined tables and result sets when only table columns are selected. -
TABLE_GROUP_AND_CONSTANTS
Analysis of joined tables and result sets, including constant values.
-
-
Constructor Details
-
FunctionalDependencyAnalysisSupport
public FunctionalDependencyAnalysisSupport(boolean supportsAnalysis, boolean supportsTableGroups, boolean supportsConstants) Reject a profile whose refinements are enabled without their prerequisite.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
supportsAnalysis
public boolean supportsAnalysis()Returns the value of thesupportsAnalysisrecord component.- Returns:
- the value of the
supportsAnalysisrecord component
-
supportsTableGroups
public boolean supportsTableGroups()Returns the value of thesupportsTableGroupsrecord component.- Returns:
- the value of the
supportsTableGroupsrecord component
-
supportsConstants
public boolean supportsConstants()Returns the value of thesupportsConstantsrecord component.- Returns:
- the value of the
supportsConstantsrecord component
-