[#6839] Add org.jooq.Role
This commit is contained in:
parent
fe5c1a03eb
commit
6c0ee7c527
@ -35,14 +35,14 @@
|
||||
package org.jooq;
|
||||
|
||||
/**
|
||||
* The Role to be used by GRANT statement
|
||||
* The Role to be used by GRANT statement.
|
||||
*
|
||||
* @author Timur Shaidullin
|
||||
*/
|
||||
public interface Role extends QueryPart {
|
||||
|
||||
/**
|
||||
* The name of role
|
||||
* The name of the role.
|
||||
*/
|
||||
public String getName();
|
||||
String getName();
|
||||
}
|
||||
|
||||
@ -35,14 +35,14 @@
|
||||
package org.jooq;
|
||||
|
||||
/**
|
||||
* The User to be used by GRANT statement
|
||||
* The User to be used by GRANT statement.
|
||||
*
|
||||
* @author Timur Shaidullin
|
||||
*/
|
||||
public interface User extends QueryPart {
|
||||
|
||||
/**
|
||||
* The name of user
|
||||
* The name of the user.
|
||||
*/
|
||||
public String getName();
|
||||
String getName();
|
||||
}
|
||||
|
||||
@ -7875,7 +7875,7 @@ public class DSL {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new role reference
|
||||
* Create a new role reference.
|
||||
*
|
||||
* @see #role(Name)
|
||||
*/
|
||||
@ -7884,7 +7884,7 @@ public class DSL {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new role reference
|
||||
* Create a new role reference.
|
||||
*/
|
||||
public static Role role(Name name) {
|
||||
return new RoleImpl(name);
|
||||
|
||||
@ -34,16 +34,19 @@
|
||||
*/
|
||||
package org.jooq.impl;
|
||||
|
||||
import org.jooq.*;
|
||||
|
||||
import static org.jooq.Clause.ROLE;
|
||||
|
||||
import org.jooq.Clause;
|
||||
import org.jooq.Context;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.User;
|
||||
|
||||
/**
|
||||
* A common implementation of the Role type
|
||||
* A common implementation of the Role type.
|
||||
*
|
||||
* @author Timur Shaidullin
|
||||
*/
|
||||
final class RoleImpl extends AbstractQueryPart implements Role {
|
||||
final class RoleImpl extends AbstractQueryPart implements User {
|
||||
|
||||
/**
|
||||
* Generated UID
|
||||
|
||||
@ -42,7 +42,7 @@ import org.jooq.Name;
|
||||
import org.jooq.User;
|
||||
|
||||
/**
|
||||
* A common implementation of the User type
|
||||
* A common implementation of the User type.
|
||||
*
|
||||
* @author Timur Shaidullin
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user