public class AggregationFunction extends Object implements org.apache.openjpa.kernel.exps.Value, ExpressionNode
Modifier and Type | Class and Description |
---|---|
static class |
AggregationFunction.AggregationType
Aggregation function type
|
ExpressionNode.NodeType
Constructor and Description |
---|
AggregationFunction(org.apache.openjpa.kernel.exps.Value path,
AggregationFunction.AggregationType type) |
Modifier and Type | Method and Description |
---|---|
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() |
public AggregationFunction(org.apache.openjpa.kernel.exps.Value path, AggregationFunction.AggregationType type)
public Class getType()
Object
if
the type is unknown.getType
in interface org.apache.openjpa.kernel.exps.Value
public void setImplicitType(Class type)
Object
from getType()
.setImplicitType
in interface org.apache.openjpa.kernel.exps.Value
public boolean isVariable()
isVariable
in interface org.apache.openjpa.kernel.exps.Value
public boolean isAggregate()
isAggregate
in interface org.apache.openjpa.kernel.exps.Value
public boolean isXPath()
isXPath
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.meta.ClassMetaData getMetaData()
getMetaData
in interface org.apache.openjpa.kernel.exps.Value
public void setMetaData(org.apache.openjpa.meta.ClassMetaData meta)
setMetaData
in interface org.apache.openjpa.kernel.exps.Value
public void acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
acceptVisit
in interface org.apache.openjpa.kernel.exps.Value
public String getAlias()
getAlias
in interface org.apache.openjpa.kernel.exps.Value
public void setAlias(String alias)
setAlias
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.kernel.exps.Value getSelectAs()
getSelectAs
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.kernel.exps.Path getPath()
getPath
in interface org.apache.openjpa.kernel.exps.Value
public String getName()
getName
in interface org.apache.openjpa.kernel.exps.Value
public AggregationFunction.AggregationType getAggregationType()
public void appendSql(StringBuilder sql)
ExpressionNode
appendSql
in interface ExpressionNode
sql
- The SQL string builder to append to.public ExpressionNode.NodeType getNodeType()
ExpressionNode
getNodeType
in interface ExpressionNode
Copyright © GigaSpaces.