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 reference
supportsTableGroups - whether it remains valid through joins or unions
supportsConstants - 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 Details

  • Constructor Details

    • FunctionalDependencyAnalysisSupport

      public FunctionalDependencyAnalysisSupport(boolean supportsAnalysis, boolean supportsTableGroups, boolean supportsConstants)
      Reject a profile whose refinements are enabled without their prerequisite.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • supportsAnalysis

      public boolean supportsAnalysis()
      Returns the value of the supportsAnalysis record component.
      Returns:
      the value of the supportsAnalysis record component
    • supportsTableGroups

      public boolean supportsTableGroups()
      Returns the value of the supportsTableGroups record component.
      Returns:
      the value of the supportsTableGroups record component
    • supportsConstants

      public boolean supportsConstants()
      Returns the value of the supportsConstants record component.
      Returns:
      the value of the supportsConstants record component