Top Description Fields Constructors Methods
org.hibernate.hql.ast.tree

public Class IntoClause

extends HqlSqlWalkerNode
implements DisplayableNode
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.ast.tree.DisplayableNode
Imports
java.sql.Types, java.util.ArrayList, .HashSet, .List, .Set, org.hibernate.QueryException, org.hibernate.persister.entity.Queryable, org.hibernate.type.ComponentType, .Type, org.hibernate.util.ArrayHelper, antlr.collections.AST

Represents an entity referenced in the INTO clause of an HQL INSERT statement.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private String
private Set<E>
private boolean
private List<E>
private boolean
private boolean
private Queryable
private Type[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean

Returns:

True if they are assignment compatible.
areCompatible
(Type
The type defined in the into-clause.
target
,
Type
The type defined in the select clause.
source
)

Determine whether the two types are "assignment compatible".

private boolean
areSqlTypesCompatible(int target, int source)

public String

Returns:

String - The additional display text.
getDisplayText
()

Implements org.hibernate.hql.ast.tree.DisplayableNode.getDisplayText.

Returns additional display text for the AST node.
public String
public Type[]
public Queryable
public String
public void
initialize(Queryable persister)

private void
public boolean
public boolean
public boolean
private boolean
public void
public void
private void
renderColumns(String[] columnNames)

private void
public void
private void
visitPropertySpecNodes(AST propertyNode, List<E> types)

Inherited from org.hibernate.hql.ast.tree.HqlSqlWalkerNode:
getAliasGeneratorgetASTFactorygetSessionFactoryHelpergetWalkerinitialize

Field Detail

columnSpecback to summary
private String columnSpec
componentIdsback to summary
private Set<E> componentIds
discriminatedback to summary
private boolean discriminated
explicitComponentIdsback to summary
private List<E> explicitComponentIds
explicitIdInsertionback to summary
private boolean explicitIdInsertion
explicitVersionInsertionback to summary
private boolean explicitVersionInsertion
persisterback to summary
private Queryable persister
typesback to summary
private Type[] types

Constructor Detail

IntoClauseback to summary
public IntoClause()

Method Detail

areCompatibleback to summary
private boolean areCompatible(Type target, Type source)

Determine whether the two types are "assignment compatible".

Parameters
target:Type

The type defined in the into-clause.

source:Type

The type defined in the select clause.

Returns:boolean

True if they are assignment compatible.

areSqlTypesCompatibleback to summary
private boolean areSqlTypesCompatible(int target, int source)
getDisplayTextback to summary
public String getDisplayText()

Implements org.hibernate.hql.ast.tree.DisplayableNode.getDisplayText.

Returns additional display text for the AST node.

Returns:String

String - The additional display text.

getEntityNameback to summary
public String getEntityName()
getInsertionTypesback to summary
public Type[] getInsertionTypes()
getQueryableback to summary
public Queryable getQueryable()
getTableNameback to summary
public String getTableName()
initializeback to summary
public void initialize(Queryable persister)
initializeColumnsback to summary
private void initializeColumns()
isDiscriminatedback to summary
public boolean isDiscriminated()
isExplicitIdInsertionback to summary
public boolean isExplicitIdInsertion()
isExplicitVersionInsertionback to summary
public boolean isExplicitVersionInsertion()
isSuperclassPropertyback to summary
private boolean isSuperclassProperty(String propertyName)
prependIdColumnSpecback to summary
public void prependIdColumnSpec()
prependVersionColumnSpecback to summary
public void prependVersionColumnSpec()
renderColumnsback to summary
private void renderColumns(String[] columnNames)
resetTextback to summary
private void resetText()
validateTypesback to summary
public void validateTypes(SelectClause selectClause) throws QueryException
visitPropertySpecNodesback to summary
private void visitPropertySpecNodes(AST propertyNode, List<E> types)