AVG returns
Double.
BNF: expression ::= AVG([DISTINCT] state_field_path_expression)
AvgFunction
| Access | Constructor and Description |
|---|---|
| public | AvgFunctionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | AvgFunctionStateObject(StateObject
The parent of this state object, which cannot be parent, boolean nulltrue to add DISTINCT to the query in order to
have distinct values; false if it is not requiredThe stateObject)StateObject representing the encapsulated expressionCreates a new |
| public | AvgFunctionStateObject(StateObject
The parent of this state object, which cannot be parent, boolean nulltrue to add DISTINCT to the query in order to
have distinct values; false if it is not requiredEither the identification variable or the state field path expression path)Creates a new |
| public | AvgFunctionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe stateObject)StateObject representing the encapsulated expressionCreates a new |
| public | AvgFunctionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullEither the identification variable or the state field path expression path)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| public AvgFunction | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public String | getIdentifier()
Implements abstract org. AbstractSingleEncapsulatedExpressionStateObject.
|
| protected String | getQueryBNFId()
Implements abstract org. JPQLQueryBNF that will determine how to parse the encapsulated expression.
|
| public void | setExpression(AvgFunction
The expression)parsed object representing a AVG
expressionKeeps a reference of the |
| AvgFunctionStateObject | back to summary |
|---|---|
| public AvgFunctionStateObject(StateObject parent) Creates a new
| |
| AvgFunctionStateObject | back to summary |
|---|---|
| public AvgFunctionStateObject(StateObject parent, boolean distinct, StateObject stateObject) Creates a new
| |
| AvgFunctionStateObject | back to summary |
|---|---|
| public AvgFunctionStateObject(StateObject parent, boolean distinct, String path) Creates a new
| |
| AvgFunctionStateObject | back to summary |
|---|---|
| public AvgFunctionStateObject(StateObject parent, StateObject stateObject) Creates a new
| |
| AvgFunctionStateObject | back to summary |
|---|---|
| public AvgFunctionStateObject(StateObject parent, String path) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| getExpression | back to summary |
|---|---|
| public AvgFunction getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Implements abstract org. Returns the JPQL identifier of the expression represented by this | |
| getQueryBNFId | back to summary |
|---|---|
| protected String getQueryBNFId() Implements abstract org. Returns the unique identifier of the | |
| setExpression | back to summary |
|---|---|
| public void setExpression(AvgFunction expression) Keeps a reference of the
| |