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

public Class CollectionSizeNode

extends SqlNode
implements SelectExpression
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.internal.ast.tree.SelectExpression
Imports
org.hibernate.AssertionFailure, org.hibernate.hql.internal.NameGenerator, org.hibernate.hql.internal.antlr.HqlSqlTokenTypes, org.hibernate.internal.util.StringHelper, org.hibernate.persister.collection.CollectionPropertyMapping, .CollectionPropertyNames, .OneToManyPersister, .QueryableCollection, org.hibernate.type.StandardBasicTypes, org.jboss.logging.Logger

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private String
private final CollectionPathNode
private final CollectionPropertyMapping
private static final Logger
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public CollectionPathNode
public FromElement
getFromElement()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.getFromElement.

Deprecated as a consequence of FromElement being deprecated.
Returns the FROM element that this expression refers to.
public int
getScalarColumnIndex()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.getScalarColumnIndex.

Gets index of the select expression in the projection list.
public boolean
isConstructor()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.isConstructor.

Returns true if the element is a constructor (e.g. new Foo).
public boolean
isReturnableEntity()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.isReturnableEntity.

Returns true if this select expression represents an entity that can be returned.
public boolean
public void
public void
setScalarColumn(int
The index of the select expression in the projection list.
i
)

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumn.

Sets the index and text for select expression in the projection list.
public void
setScalarColumnText(int
The index of the select expression in the projection list.
i
)

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumnText.

Appends AST nodes that represent the columns after the current AST node.
public String
Inherited from org.hibernate.hql.internal.ast.tree.SqlNode:
getDataTypegetOriginalTextsetDataTypesetText

Field Detail

aliasback to summary
private String alias
collectionPathNodeback to summary
private final CollectionPathNode collectionPathNode
collectionPropertyMappingback to summary
private final CollectionPropertyMapping collectionPropertyMapping
logback to summary
private static final Logger log
scalarNameback to summary
private String scalarName

Constructor Detail

CollectionSizeNodeback to summary
public CollectionSizeNode(CollectionPathNode collectionPathNode)

Method Detail

getAliasback to summary
public String getAlias()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.getAlias.

Annotations
@Override
getCollectionPathNodeback to summary
public CollectionPathNode getCollectionPathNode()
Annotations
@SuppressWarnings:unused
getFromElementback to summary
public FromElement getFromElement()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.getFromElement.

Doc from org.hibernate.hql.internal.ast.tree.SelectExpression.getFromElement.

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

Returns the FROM element that this expression refers to.

Returns:FromElement

The FROM element.

Annotations
@Override
getScalarColumnIndexback to summary
public int getScalarColumnIndex()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.getScalarColumnIndex.

Doc from org.hibernate.hql.internal.ast.tree.SelectExpression.getScalarColumnIndex.

Gets index of the select expression in the projection list.

Returns:int

The index of the select expression in the projection list.

Annotations
@Override
isConstructorback to summary
public boolean isConstructor()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.isConstructor.

Doc from org.hibernate.hql.internal.ast.tree.SelectExpression.isConstructor.

Returns true if the element is a constructor (e.g. new Foo).

Returns:boolean

true if the element is a constructor (e.g. new Foo).

Annotations
@Override
isReturnableEntityback to summary
public boolean isReturnableEntity()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.isReturnableEntity.

Doc from org.hibernate.hql.internal.ast.tree.SelectExpression.isReturnableEntity.

Returns true if this select expression represents an entity that can be returned.

Returns:boolean

true if this select expression represents an entity that can be returned.

Annotations
@Override
isScalarback to summary
public boolean isScalar()

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.isScalar.

Annotations
@Override
setAliasback to summary
public void setAlias(String alias)

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.setAlias.

Annotations
@Override
setScalarColumnback to summary
public void setScalarColumn(int i)

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumn.

Doc from org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumn.

Sets the index and text for select expression in the projection list.

Parameters
i:int

The index of the select expression in the projection list.

Annotations
@Override
setScalarColumnTextback to summary
public void setScalarColumnText(int i)

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumnText.

Doc from org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumnText.

Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')

Parameters
i:int

The index of the select expression in the projection list.

Annotations
@Override
toSqlExpressionback to summary
public String toSqlExpression()