Interface ComparisonStyle

  • All Known Implementing Classes:
    ComparisonStyle.Default

    public interface ComparisonStyle
    Defines a comparison style to be applied for query-by-example attribute comparison.
    Since:
    2.0.0
    Author:
    Pinaki Poddar
    • Method Detail

      • isDisjunction

        boolean isDisjunction()
        Affirms if the attribute comparisons are OR'ed. Defaults to false.
      • setDisjunction

        ComparisonStyle setDisjunction​(boolean flag)
        Sets whether the comparison to OR the attribute comparisons.
      • excludeNull

        boolean excludeNull()
        Affirms if the null-valued attribute be excluded from comparison. Defaults to true.
      • setExcludeNull

        ComparisonStyle setExcludeNull​(boolean flag)
        Sets whether the comparison excludes null-valued attributes.
      • excludeIdentity

        boolean excludeIdentity()
        Affirms if the identity attribute be excluded from comparison. Defaults to true.
      • setExcludeIdentity

        ComparisonStyle setExcludeIdentity​(boolean flag)
        Sets whether the comparison excludes identity attribute.
      • excludeVersion

        boolean excludeVersion()
        Affirms if the version attribute be excluded from comparison. Defaults to true.
      • setExcludeVersion

        ComparisonStyle setExcludeVersion​(boolean flag)
        Sets whether the comparison excludes version attribute.
      • excludeDefault

        boolean excludeDefault()
        Affirms if the default-valued attribute be excluded from comparison. Defaults to true.
      • setExcludeDefault

        ComparisonStyle setExcludeDefault​(boolean flag)
        Sets whether the comparison excludes default-valued attributes.