[#6839] Add org.jooq.Role

This commit is contained in:
lukaseder 2017-11-28 13:05:02 +01:00
parent fe5c1a03eb
commit 6c0ee7c527
5 changed files with 16 additions and 13 deletions

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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);

View File

@ -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

View File

@ -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
*/