|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.jpa.openjpa.query.AggregationFunction
public class AggregationFunction
An aggregation function representation. Supports the following aggregations: Sum, Minimum, Maximum, Count & Average.
| Nested Class Summary | |
|---|---|
static class |
AggregationFunction.AggregationType
Aggregation function type |
| Nested classes/interfaces inherited from interface org.openspaces.jpa.openjpa.query.ExpressionNode |
|---|
ExpressionNode.NodeType |
| Constructor Summary | |
|---|---|
AggregationFunction(org.apache.openjpa.kernel.exps.Value path,
AggregationFunction.AggregationType type)
|
|
| Method Summary | |
|---|---|
void |
acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
Accept a visit from a tree visitor. |
void |
appendSql(StringBuilder sql)
Appends the node SQL string to the string builder. |
AggregationFunction.AggregationType |
getAggregationType()
|
String |
getAlias()
Return select item alias |
org.apache.openjpa.meta.ClassMetaData |
getMetaData()
Return any associated persistent type. |
String |
getName()
|
ExpressionNode.NodeType |
getNodeType()
Gets the node type |
org.apache.openjpa.kernel.exps.Path |
getPath()
|
org.apache.openjpa.kernel.exps.Value |
getSelectAs()
Return 'this' concrete class if alias is set, otherwise null |
Class |
getType()
Return the expected type for this value, or Object if
the type is unknown. |
boolean |
isAggregate()
Return true if this value is an aggregate. |
boolean |
isVariable()
Return true if this value is a variable. |
boolean |
isXPath()
Return true if this value is an XML Path. |
void |
setAlias(String alias)
Set select item alias |
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the filter. |
void |
setMetaData(org.apache.openjpa.meta.ClassMetaData meta)
Associate a persistent type with this value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AggregationFunction(org.apache.openjpa.kernel.exps.Value path,
AggregationFunction.AggregationType type)
| Method Detail |
|---|
public Class getType()
Object if
the type is unknown.
getType in interface org.apache.openjpa.kernel.exps.Valuepublic void setImplicitType(Class type)
Object from getType().
setImplicitType in interface org.apache.openjpa.kernel.exps.Valuepublic boolean isVariable()
isVariable in interface org.apache.openjpa.kernel.exps.Valuepublic boolean isAggregate()
isAggregate in interface org.apache.openjpa.kernel.exps.Valuepublic boolean isXPath()
isXPath in interface org.apache.openjpa.kernel.exps.Valuepublic org.apache.openjpa.meta.ClassMetaData getMetaData()
getMetaData in interface org.apache.openjpa.kernel.exps.Valuepublic void setMetaData(org.apache.openjpa.meta.ClassMetaData meta)
setMetaData in interface org.apache.openjpa.kernel.exps.Valuepublic void acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
acceptVisit in interface org.apache.openjpa.kernel.exps.Valuepublic String getAlias()
getAlias in interface org.apache.openjpa.kernel.exps.Valuepublic void setAlias(String alias)
setAlias in interface org.apache.openjpa.kernel.exps.Valuepublic org.apache.openjpa.kernel.exps.Value getSelectAs()
getSelectAs in interface org.apache.openjpa.kernel.exps.Valuepublic org.apache.openjpa.kernel.exps.Path getPath()
getPath in interface org.apache.openjpa.kernel.exps.Valuepublic String getName()
getName in interface org.apache.openjpa.kernel.exps.Valuepublic String toString()
toString in class Objectpublic AggregationFunction.AggregationType getAggregationType()
public void appendSql(StringBuilder sql)
ExpressionNode
appendSql in interface ExpressionNodesql - The SQL string builder to append to.public ExpressionNode.NodeType getNodeType()
ExpressionNode
getNodeType in interface ExpressionNode
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||