Class SQLCreateDatabaseStatement
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLCreateDatabaseStatement
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement,SQLCreateStatement,SQLDDLStatement
public class SQLCreateDatabaseStatement extends SQLStatementImpl implements SQLCreateStatement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.statement.SQLDDLStatement
SQLDDLStatement.DDLObjectType
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcharacterSetprotected Stringcollateprotected SQLExprcommentprotected List<SQLAssignItem>dbPropertiesprotected List<SQLCommentHint>hintsprotected booleanifNotExistsprotected SQLExprlocationprotected SQLNamenameprotected Map<String,SQLExpr>optionsprotected SQLExprpasswordprotected booleanphysicalprotected SQLExprstoredAsprotected List<List<SQLAssignItem>>storedByprotected SQLExprstoredInprotected List<SQLAssignItem>storedOnprotected Stringuser-
Fields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHints
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLCreateDatabaseStatement()SQLCreateDatabaseStatement(DbType dbType)
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
clone, cloneTo, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString, toUnformattedString
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLStatement
clone, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
-
-
-
Field Detail
-
name
protected SQLName name
-
characterSet
protected String characterSet
-
collate
protected String collate
-
hints
protected List<SQLCommentHint> hints
-
ifNotExists
protected boolean ifNotExists
-
comment
protected SQLExpr comment
-
location
protected SQLExpr location
-
dbProperties
protected final List<SQLAssignItem> dbProperties
-
user
protected String user
-
password
protected SQLExpr password
-
storedOn
protected final List<SQLAssignItem> storedOn
-
storedBy
protected final List<List<SQLAssignItem>> storedBy
-
storedAs
protected SQLExpr storedAs
-
storedIn
protected SQLExpr storedIn
-
physical
protected boolean physical
-
-
Constructor Detail
-
SQLCreateDatabaseStatement
public SQLCreateDatabaseStatement()
-
SQLCreateDatabaseStatement
public SQLCreateDatabaseStatement(DbType dbType)
-
-
Method Detail
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
public List<SQLObject> getChildren()
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
getName
public SQLName getName()
- Specified by:
getNamein interfaceSQLCreateStatement
-
setName
public void setName(SQLName name)
-
getCharacterSet
public String getCharacterSet()
-
setCharacterSet
public void setCharacterSet(String characterSet)
-
getCollate
public String getCollate()
-
setCollate
public void setCollate(String collate)
-
getHints
public List<SQLCommentHint> getHints()
-
setHints
public void setHints(List<SQLCommentHint> hints)
-
isIfNotExists
public boolean isIfNotExists()
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists)
-
getComment
public SQLExpr getComment()
-
getUser
public String getUser()
-
setUser
public void setUser(String user)
-
setComment
public void setComment(SQLExpr x)
-
getLocation
public SQLExpr getLocation()
-
setLocation
public void setLocation(SQLExpr x)
-
getDbProperties
public List<SQLAssignItem> getDbProperties()
-
getStoredOn
public List<SQLAssignItem> getStoredOn()
-
getStoredBy
public List<List<SQLAssignItem>> getStoredBy()
-
getStoredAs
public SQLExpr getStoredAs()
-
setStoredAs
public void setStoredAs(SQLExpr x)
-
getStoredIn
public SQLExpr getStoredIn()
-
setStoredIn
public void setStoredIn(SQLExpr x)
-
getPassword
public SQLExpr getPassword()
-
setPassword
public void setPassword(SQLExpr x)
-
getDatabaseName
public String getDatabaseName()
-
setDatabase
public void setDatabase(String database)
-
getServer
public String getServer()
-
setServer
public boolean setServer(String server)
-
isPhysical
public boolean isPhysical()
-
setPhysical
public void setPhysical(boolean physical)
-
getDDLObjectType
public SQLDDLStatement.DDLObjectType getDDLObjectType()
- Specified by:
getDDLObjectTypein interfaceSQLDDLStatement
-
-