|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.elegantj.data.comp.computedfield.MethodsClass
The MethodsClass is used in the expression executor. It provides the the miscellaneous functions to execute database related expression.
| Constructor Summary | |
MethodsClass(Computable computable)
Creates a MethodsClass with specified ComputedField |
|
| Method Summary | |
java.lang.Number |
avg(java.lang.String condition)
Calculates the average. |
int |
count(java.lang.String condition)
Calculates the total number of rows. |
java.lang.Number |
cumulativePercent(java.lang.String condition)
Calculates the total value of the rows up to and including the current row in the as a percentage of the total (a running percentage). |
java.lang.Number |
cumulativeSum(java.lang.String condition)
Calculates the total value of the rows up to and including the current row (a running total). |
java.lang.Object |
first(java.lang.String condition)
Reports the value in the first row. |
java.lang.Object |
ifCase(java.lang.String condition,
java.lang.String trueValue,
java.lang.String falseValue)
Evaluates a condition and returns a value based on that condition. |
java.lang.Object |
large(java.lang.String condition,
int rank)
Finds a large value at a specified ranking (for example, third- largest, fifth-largest) and returns the value of expression based on the result. |
java.lang.Object |
last(java.lang.String condition)
Gets the value in the last row. |
java.lang.Object |
maximum(java.lang.String condition)
Gets the maximum value. |
java.lang.Object |
median(java.lang.String condition)
Calculates the median of the values. |
java.lang.Object |
minimum(java.lang.String condition)
Gets the minimum value. |
java.lang.Object |
mode(java.lang.String condition)
Calculates the mode of the values. |
java.lang.Number |
percent(java.lang.String condition)
Gets the percentage that the current value is of the total of the values. |
java.lang.Object |
small(java.lang.String condition,
int rank)
Finds a small value at a specified ranking (for example, third-smallest, fifth-smallest) and returns the value of expression based on the result. |
java.lang.Number |
sum(java.lang.String condition)
Calculates the sum of the values. |
java.lang.Object |
whenThen(java.lang.String condition)
Tests the values of a expression and returns values based on the results of the test. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MethodsClass(Computable computable)
computable - the Computable is used for computation.| Method Detail |
public java.lang.Object whenThen(java.lang.String condition)
condition - the when-then expression
public java.lang.Object ifCase(java.lang.String condition,
java.lang.String trueValue,
java.lang.String falseValue)
condition - the condition to be checkedtrueValue - the true valuefalseValue - the false value
public java.lang.Number avg(java.lang.String condition)
condition - the expression
public int count(java.lang.String condition)
public java.lang.Number cumulativePercent(java.lang.String condition)
public java.lang.Number cumulativeSum(java.lang.String condition)
public java.lang.Object first(java.lang.String condition)
public java.lang.Object large(java.lang.String condition,
int rank)
rank - the largest value's rank
public java.lang.Object last(java.lang.String condition)
public java.lang.Object maximum(java.lang.String condition)
public java.lang.Object median(java.lang.String condition)
public java.lang.Object minimum(java.lang.String condition)
public java.lang.Object mode(java.lang.String condition)
public java.lang.Number percent(java.lang.String condition)
public java.lang.Object small(java.lang.String condition,
int rank)
rank - the smallest value's rank
public java.lang.Number sum(java.lang.String condition)
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||