类 InsertStatement
- java.lang.Object
-
- antlr.BaseAST
-
- antlr.CommonAST
-
- org.hibernate.hql.internal.ast.tree.Node
-
- org.hibernate.hql.internal.ast.tree.SqlNode
-
- org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
-
- org.hibernate.hql.internal.ast.tree.AbstractStatement
-
- org.hibernate.hql.internal.ast.tree.InsertStatement
-
- 所有已实现的接口:
antlr.collections.AST,Serializable,DisplayableNode,InitializeableNode,Statement
public class InsertStatement extends AbstractStatement
Defines a top-level AST node representing an HQL "insert select" statement.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 InsertStatement()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 IntoClausegetIntoClause()Retrieve this insert statement's into-clause.SelectClausegetSelectClause()Retrieve this insert statement's select-clause.intgetStatementType()Return the main token type representing the type of this statement.booleanneedsExecutor()Does this statement require the StatementExecutor?voidvalidate()Performs detailed semantic validation on this insert statement tree.-
从类继承的方法 org.hibernate.hql.internal.ast.tree.AbstractStatement
getDisplayText
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.SqlNode
getDataType, getOriginalText, setDataType, setText
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
-
从类继承的方法 antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
-
-
-
-
方法详细资料
-
getStatementType
public int getStatementType()
从接口复制的说明:StatementReturn the main token type representing the type of this statement.- 返回:
- The corresponding token type.
-
needsExecutor
public boolean needsExecutor()
从接口复制的说明:StatementDoes this statement require the StatementExecutor? Essentially, at the JDBC level, does this require an executeUpdate()?- 返回:
- True if this statement should be handed off to the StatementExecutor to be executed; false otherwise.
-
validate
public void validate() throws QueryExceptionPerforms detailed semantic validation on this insert statement tree.- 抛出:
QueryException- Indicates validation failure.
-
getIntoClause
public IntoClause getIntoClause()
Retrieve this insert statement's into-clause.- 返回:
- The into-clause
-
getSelectClause
public SelectClause getSelectClause()
Retrieve this insert statement's select-clause.- 返回:
- The select-clause.
-
-