Module org.jooq
Package org.jooq

Interface Policy<R extends Record>


@Pro public interface Policy<R extends Record>
A policy that applies row level security to a table.
Author:
Lukas Eder
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Condition
    The condition to apply to the table.
    The paths from child tables to table(), which inherit this policy.
    @NotNull Table<R>
    The table to apply the policy to.
  • Method Details

    • table

      @NotNull @NotNull Table<R> table()
      The table to apply the policy to.
    • condition

      @NotNull @NotNull Condition condition()
      The condition to apply to the table.
    • inherited

      List<Path<R>> inherited()
      The paths from child tables to table(), which inherit this policy.

      For example, if a Policy applies STORE.ID.eq(1) to the STORE table (which acts as a tenant), it can be inherited by the CUSTOMER table by specifying the CUSTOMER.store() path, applying CUSTOMER.store().ID.eq(1) to the CUSTOMER.