|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.criteria.SelectionImpl<X>
X
- the type this term evaluates toabstract class SelectionImpl<X>
An item selected in the projection clause of Criteria query. Base implementation for all concrete expressions.
Constructor Summary | |
---|---|
SelectionImpl(Class<X> cls)
Construct with the immutable type represented by this selection term. |
Method Summary | |
---|---|
void |
acceptVisit(CriteriaExpressionVisitor visitor)
Accept visit from the given visitor. |
Selection<X> |
alias(String alias)
Sets the alias on this selection term. |
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(String name)
|
StringBuilder |
asValue(AliasContext q)
Get a string representation of this node as a value in the context of the given query. |
StringBuilder |
asVariable(AliasContext q)
Get a string representation of this node as a variable in the context of the given query. |
String |
getAlias()
Gets the alias set of this selection term. |
List<Selection<?>> |
getCompoundSelectionItems()
Throws IllegalStateException because a selection term, by default, consists of single value. |
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(String alias)
Sets the alias of this expression internally. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionImpl(Class<X> cls)
Method Detail |
---|
public Class<X> getJavaType()
getJavaType
in interface TupleElement<X>
public String getAlias()
getAlias
in interface TupleElement<X>
public Selection<X> alias(String alias)
alias
in interface Selection<X>
void setAutoAlias(String alias)
boolean isAutoAliased()
boolean isAliased()
isAutoAliased()
public List<Selection<?>> getCompoundSelectionItems()
getCompoundSelectionItems
in interface Selection<X>
public boolean isCompoundSelection()
isCompoundSelection
in interface Selection<X>
void assertValidName(String name)
public StringBuilder asValue(AliasContext q)
CriteriaExpression
asValue
in interface CriteriaExpression
public StringBuilder asVariable(AliasContext q)
CriteriaExpression
asVariable
in interface CriteriaExpression
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |