Class SQLCreateFunctionStatement
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLCreateFunctionStatement
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLObjectWithDataType,SQLStatement,SQLCreateStatement,SQLDDLStatement
- Direct Known Subclasses:
HiveCreateFunctionStatement
public class SQLCreateFunctionStatement extends SQLStatementImpl implements SQLCreateStatement, SQLObjectWithDataType
Created by wenshao on 23/05/2017.
-
-
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 SQLStatementblockprotected booleancreateprotected SQLNamedefinerprotected booleanifNotExistsprotected SQLNamenameprotected List<SQLAssignItem>optionsprotected booleanorReplaceprotected List<SQLParameter>parameters-
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 SQLCreateFunctionStatement()
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
cloneTo, getChildren, 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.statement.SQLDDLStatement
getDDLObjectType
-
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
getChildren, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
-
-
-
Field Detail
-
definer
protected SQLName definer
-
create
protected boolean create
-
orReplace
protected boolean orReplace
-
name
protected SQLName name
-
block
protected SQLStatement block
-
parameters
protected List<SQLParameter> parameters
-
options
protected List<SQLAssignItem> options
-
ifNotExists
protected boolean ifNotExists
-
-
Method Detail
-
clone
public SQLCreateFunctionStatement clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
accept0
public void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
getParameters
public List<SQLParameter> getParameters()
-
getParameter
public SQLParameter getParameter(String name)
-
setParameters
public void setParameters(List<SQLParameter> parameters)
-
getName
public SQLName getName()
- Specified by:
getNamein interfaceSQLCreateStatement
-
setName
public void setName(SQLName x)
-
getBlock
public SQLStatement getBlock()
-
setBlock
public void setBlock(SQLStatement block)
-
getAuthid
public SQLName getAuthid()
-
setAuthid
public void setAuthid(SQLName authid)
-
getOptions
public List<SQLAssignItem> getOptions()
-
getLanguage
public String getLanguage()
-
setLanguage
public void setLanguage(String language)
-
isOrReplace
public boolean isOrReplace()
-
setOrReplace
public void setOrReplace(boolean orReplace)
-
getDefiner
public SQLName getDefiner()
-
setDefiner
public void setDefiner(SQLName definer)
-
isCreate
public boolean isCreate()
-
setCreate
public void setCreate(boolean create)
-
getJavaCallSpec
public String getJavaCallSpec()
-
setJavaCallSpec
public void setJavaCallSpec(String javaCallSpec)
-
getReturnDataType
public SQLDataType getReturnDataType()
-
setReturnDataType
public void setReturnDataType(SQLDataType returnDataType)
-
getComment
public String getComment()
-
setComment
public void setComment(String comment)
-
isDeterministic
public boolean isDeterministic()
-
setDeterministic
public void setDeterministic(boolean deterministic)
-
getSchema
public String getSchema()
-
getDataType
public SQLDataType getDataType()
- Specified by:
getDataTypein interfaceSQLObjectWithDataType
-
setDataType
public void setDataType(SQLDataType dataType)
- Specified by:
setDataTypein interfaceSQLObjectWithDataType
-
isParallelEnable
public boolean isParallelEnable()
-
setParallelEnable
public void setParallelEnable(boolean parallel_enable)
-
isAggregate
public boolean isAggregate()
-
setAggregate
public void setAggregate(boolean aggregate)
-
getUsing
public SQLName getUsing()
-
setUsing
public void setUsing(SQLName using)
-
isPipelined
public boolean isPipelined()
-
setPipelined
public void setPipelined(boolean pipelined)
-
isResultCache
public boolean isResultCache()
-
setResultCache
public void setResultCache(boolean resultCache)
-
getWrappedSource
public String getWrappedSource()
-
setWrappedSource
public void setWrappedSource(String wrappedSource)
-
isTemporary
public boolean isTemporary()
-
setTemporary
public void setTemporary(boolean temporary)
-
isIfNotExists
public boolean isIfNotExists()
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists)
-
-