Module org.jooq
Package org.jooq

Interface Role

  • All Superinterfaces:
    Named, QueryPart, Serializable

    public interface Role
    extends Named
    A privilege for use in GRANT and REVOKE statements.

    Example:

     // Assuming import static org.jooq.impl.DSL.*;
    
     using(configuration)
        .grant(privilege("SELECT"))
        .on(ACTOR)
        .to(role("MY_ROLE"))
        .execute();
     

    Instances can be created using DSL.role(Name) and overloads.

    Author:
    Timur Shaidullin