当前页面:
在线文档首页 >
Hibernate 3.2.4 正式版 API 英文文档
InsertStatement (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.hql.ast.tree
Class InsertStatement
java.lang.Object
antlr.BaseAST
antlr.CommonAST
org.hibernate.hql.ast.tree.Node
org.hibernate.hql.ast.tree.SqlNode
org.hibernate.hql.ast.tree.HqlSqlWalkerNode
org.hibernate.hql.ast.tree.AbstractStatement
org.hibernate.hql.ast.tree.InsertStatement
- All Implemented Interfaces:
- antlr.collections.AST, DisplayableNode, InitializeableNode, Serializable, Statement
- public class InsertStatement
- extends AbstractStatement
Defines a top-level AST node representing an HQL "insert select" statement.
- Author:
- Steve Ebersole
- See Also:
- Serialized Form
Fields inherited from class antlr.BaseAST |
down, right |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, setType |
Methods inherited from class 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 |
InsertStatement
public InsertStatement()
getStatementType
public int getStatementType()
- Description copied from interface:
Statement
- Return the main token type representing the type of this statement.
- Returns:
- The corresponding token type.
- See Also:
Statement.getStatementType()
needsExecutor
public boolean needsExecutor()
- Description copied from interface:
Statement
- Does this statement require the StatementExecutor?
Essentially, at the JDBC level, does this require an executeUpdate()?
- Returns:
- True if this statement should be handed off to the
StatementExecutor to be executed; false otherwise.
- See Also:
Statement.needsExecutor()
validate
public void validate()
throws QueryException
- Performs detailed semantic validation on this insert statement tree.
- Throws:
QueryException
- Indicates validation failure.
getIntoClause
public IntoClause getIntoClause()
- Retreive this insert statement's into-clause.
- Returns:
- The into-clause
getSelectClause
public SelectClause getSelectClause()
- Retreive this insert statement's select-clause.
- Returns:
- The select-clause.