X
- the type this term evaluates toabstract class SelectionImpl<X> extends java.lang.Object implements javax.persistence.criteria.Selection<X>, CriteriaExpression
Constructor and Description |
---|
SelectionImpl(java.lang.Class<X> cls)
Construct with the immutable type represented by this selection term.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisit(CriteriaExpressionVisitor visitor)
Accept visit from the given visitor.
|
javax.persistence.criteria.Selection<X> |
alias(java.lang.String alias)
Sets the alias on this selection term.
|
java.lang.StringBuilder |
asProjection(AliasContext q)
Get a string representation of this node as a projection term in the context of the given query.
|
(package private) void |
assertValidName(java.lang.String name) |
java.lang.StringBuilder |
asValue(AliasContext q)
Get a string representation of this node as a value in the context of the given query.
|
java.lang.StringBuilder |
asVariable(AliasContext q)
Get a string representation of this node as a variable in the context of the given query.
|
java.lang.String |
getAlias()
Gets the alias set of this selection term.
|
java.util.List<javax.persistence.criteria.Selection<?>> |
getCompoundSelectionItems()
Throws IllegalStateException because a selection term, by default, consists of single value.
|
java.lang.Class<X> |
getJavaType()
Gets the immutable type represented by this selection term.
|
(package private) boolean |
isAliased()
Affirms if this expression has been assigned an alias by alias(String) method.
|
(package private) boolean |
isAutoAliased()
Affirms if the alias of this expression is assigned automatically.
|
boolean |
isCompoundSelection()
Returns false because a selection term, by default, consists of single value.
|
(package private) void |
setAutoAlias(java.lang.String alias)
Sets the alias of this expression internally.
|
public SelectionImpl(java.lang.Class<X> cls)
public java.lang.Class<X> getJavaType()
getJavaType
in interface javax.persistence.TupleElement<X>
public java.lang.String getAlias()
getAlias
in interface javax.persistence.TupleElement<X>
public javax.persistence.criteria.Selection<X> alias(java.lang.String alias)
alias
in interface javax.persistence.criteria.Selection<X>
void setAutoAlias(java.lang.String alias)
boolean isAutoAliased()
boolean isAliased()
isAutoAliased()
public java.util.List<javax.persistence.criteria.Selection<?>> getCompoundSelectionItems()
getCompoundSelectionItems
in interface javax.persistence.criteria.Selection<X>
public boolean isCompoundSelection()
isCompoundSelection
in interface javax.persistence.criteria.Selection<X>
void assertValidName(java.lang.String name)
public java.lang.StringBuilder asValue(AliasContext q)
CriteriaExpression
asValue
in interface CriteriaExpression
public java.lang.StringBuilder asVariable(AliasContext q)
CriteriaExpression
asVariable
in interface CriteriaExpression
public java.lang.StringBuilder asProjection(AliasContext q)
CriteriaExpression
asProjection
in interface CriteriaExpression
public void acceptVisit(CriteriaExpressionVisitor visitor)
CriteriaExpression
acceptVisit
in interface CriteriaExpression
visitor
- a processor to walk the nodes of a tree.Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.