Class SQLGrantStatement
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
com.alibaba.druid.sql.ast.statement.SQLPrivilegeStatement
com.alibaba.druid.sql.ast.statement.SQLGrantStatement
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement
- Direct Known Subclasses:
OdpsGrantStmt
-
Field Summary
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLPrivilegeStatement
privileges, resource, resourceType, usersFields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHintsFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) booleanbooleanvoidsetAdminOption(boolean adminOption) voidsetIdentifiedBy(SQLExpr identifiedBy) voidsetIdentifiedByPassword(String identifiedByPassword) voidsetMaxConnectionsPerHour(SQLExpr maxConnectionsPerHour) voidsetMaxQueriesPerHour(SQLExpr maxQueriesPerHour) voidsetMaxUpdatesPerHour(SQLExpr maxUpdatesPerHour) voidsetMaxUserConnections(SQLExpr maxUserConnections) voidsetResourceType(SQLObjectType resourceType) voidsetWithGrantOption(boolean withGrantOption) Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLPrivilegeStatement
addUser, getPrivileges, getResource, getUsers, setResource, setResource, setUsersMethods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
clone, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString, toUnformattedStringMethods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLineMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Constructor Details
-
SQLGrantStatement
public SQLGrantStatement() -
SQLGrantStatement
-
-
Method Details
-
accept0
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
getResourceType
- Overrides:
getResourceTypein classSQLPrivilegeStatement
-
setResourceType
- Overrides:
setResourceTypein classSQLPrivilegeStatement
-
getMaxQueriesPerHour
-
setMaxQueriesPerHour
-
getMaxUpdatesPerHour
-
setMaxUpdatesPerHour
-
getMaxConnectionsPerHour
-
setMaxConnectionsPerHour
-
getMaxUserConnections
-
setMaxUserConnections
-
isAdminOption
public boolean isAdminOption() -
setAdminOption
public void setAdminOption(boolean adminOption) -
getIdentifiedBy
-
setIdentifiedBy
-
getIdentifiedByPassword
-
setIdentifiedByPassword
-
getWithGrantOption
public boolean getWithGrantOption() -
setWithGrantOption
public void setWithGrantOption(boolean withGrantOption)
-