- java.lang.Object
-
- net.sf.jsqlparser.statement.grant.Grant
-
- All Implemented Interfaces:
Serializable,Model,Statement
public class Grant extends Object implements Statement
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Grant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,S>
Taccept(StatementVisitor<T> statementVisitor, S context)GrantaddPrivileges(String... privileges)GrantaddPrivileges(Collection<String> privileges)GrantaddUsers(String... users)GrantaddUsers(Collection<String> users)StringgetObjectName()List<String>getObjectNameParts()List<String>getPrivileges()StringgetRole()List<String>getUsers()voidsetObjectName(String objectName)voidsetObjectName(List<String> objectName)voidsetPrivileges(List<String> privileges)voidsetRole(String role)voidsetUsers(List<String> users)StringtoString()GrantwithObjectName(String objectName)GrantwithObjectName(List<String> objectName)GrantwithPrivileges(List<String> privileges)GrantwithRole(String role)GrantwithUsers(List<String> users)
-
-
-
Method Detail
-
accept
public <T,S> T accept(StatementVisitor<T> statementVisitor, S context)
-
getRole
public String getRole()
-
setRole
public void setRole(String role)
-
getObjectName
public String getObjectName()
-
setObjectName
public void setObjectName(String objectName)
-
addPrivileges
public Grant addPrivileges(Collection<String> privileges)
-
addUsers
public Grant addUsers(Collection<String> users)
-
-