Interface Restrictions

    • Method Detail

      • getRestrictions

        java.util.Set<Restriction> getRestrictions​(ColumnMetadata columnDef)
        Returns the restrictions applied to the specified column.
        Parameters:
        columnDef - the column definition
        Returns:
        the restrictions applied to the specified column
      • getColumnDefinitions

        default java.util.Collection<ColumnMetadata> getColumnDefinitions()
        This method exists in addition to Restriction.getColumnDefs() in case implementations want to provide columns definitions that are not strictly in position order.
      • isEmpty

        boolean isEmpty()
        Checks if this Restrictions is empty or not.
        Returns:
        true if this Restrictions is empty, false otherwise.
      • size

        int size()
        Returns the number of columns that have a restriction.
        Returns:
        the number of columns that have a restriction.
      • hasIN

        boolean hasIN()
        Checks if any of the underlying restriction is an IN.
        Returns:
        true if any of the underlying restriction is an IN, false otherwise
      • hasContains

        boolean hasContains()
        Checks if any of the underlying restrictions is a CONTAINS / CONTAINS KEY restriction.
        Returns:
        true if any of the underlying restrictions is CONTAINS, false otherwise
      • hasSlice

        boolean hasSlice()
        Checks if any of the underlying restrictions is a slice.
        Returns:
        true if any of the underlying restrictions is a slice, false otherwise
      • hasOnlyEqualityRestrictions

        boolean hasOnlyEqualityRestrictions()
        Checks if all of the underlying restrictions are EQ or IN restrictions.
        Returns:
        true if all of the underlying restrictions are EQ or IN restrictions, false otherwise