|
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.ComputableField
This bean provides the expression executor to parse the expression (arithmetical/database related) and to execute it. It also provides the support to the MethodsClass to get the functionality of the database related activities.
| Field Summary |
| Fields inherited from interface com.elegantj.data.comp.computedfield.Computable |
serialVersionUID |
| Constructor Summary | |
ComputableField()
Creates a ComputedField |
|
| Method Summary | |
java.lang.Object |
executeExp()
Executes the expression |
java.util.Hashtable |
getCatagorizedMethods()
Returns the valid methods to use in the expression |
java.util.Vector |
getColumnData(int colIndex)
Returns the column values of the column at colIndex |
java.util.Vector |
getColumnData(java.lang.String colName)
Returns the column values of the column colName |
java.util.Vector |
getColumnData(java.lang.String summaryColumn,
java.lang.String groupColumn)
Returns the crosstab column values of the column at colIndex for given column |
int |
getColumnIndex(java.lang.String colName)
Returns the index for the specified column |
java.util.Vector |
getColumnNames()
Returns the column names |
java.util.Vector |
getColumnTypes()
Returns the column types |
int |
getCurrentIndex()
Returns the current index |
java.util.Vector |
getCurrentRecord()
Returns the current record |
java.util.Vector |
getData()
Returns the data for computation |
java.lang.String |
getExpression()
Gets the expression string to be executed |
java.util.Vector |
getGroupConditions()
Returns the vector of group bands |
java.lang.String[] |
getMethods()
Returns the valid methods to use in the expression |
java.lang.String[] |
getOperators()
Returns the valid operators to use in the expression |
java.util.Vector |
getVariables()
Returns the used variables |
void |
setColumnNames(java.util.Vector columnNames)
Sets the column names |
void |
setColumnTypes(java.util.Vector columnTypes)
Sets the column types |
void |
setCurrentIndex(int index)
Sets the current index |
void |
setData(java.util.Vector data)
Sets the data for computation |
void |
setExpression(java.lang.String exp)
Sets the expression string to be executed |
void |
setGroupConditions(java.util.Vector sCondition)
Sets the vector of group bands |
boolean |
verifyExp()
Checks the expression whether it is valid or not |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComputableField()
| Method Detail |
public void setExpression(java.lang.String exp)
setExpression in interface Computableexp - the expression stringpublic java.lang.String getExpression()
getExpression in interface Computablepublic boolean verifyExp()
verifyExp in interface Computablepublic java.lang.Object executeExp()
executeExp in interface Computablepublic void setData(java.util.Vector data)
setData in interface Computabledata - the vector contains the datapublic java.util.Vector getData()
getData in interface Computablepublic void setGroupConditions(java.util.Vector sCondition)
setGroupConditions in interface ComputablesCondition - the vector contains the group bandspublic java.util.Vector getGroupConditions()
getGroupConditions in interface Computablepublic void setColumnTypes(java.util.Vector columnTypes)
setColumnTypes in interface ComputablecolumnTypes - the vector contains the column Typespublic java.util.Vector getColumnTypes()
getColumnTypes in interface Computable
public java.util.Vector getColumnData(java.lang.String summaryColumn,
java.lang.String groupColumn)
getColumnData in interface ComputablesummaryColumn - the column on which the computation is performedgroupColumn - the column for which the computation is performed
public java.util.Hashtable getCatagorizedMethods()
getCatagorizedMethods in interface Computablepublic java.util.Vector getVariables()
getVariables in interface Computablepublic void setColumnNames(java.util.Vector columnNames)
setColumnNames in interface ComputablecolumnNames - the vector contains the column namespublic java.util.Vector getColumnNames()
getColumnNames in interface Computablepublic void setCurrentIndex(int index)
setCurrentIndex in interface Computableindex - the index of the record ,being proccessedpublic int getCurrentIndex()
getCurrentIndex in interface Computablepublic java.util.Vector getCurrentRecord()
getCurrentRecord in interface Computablepublic java.util.Vector getColumnData(java.lang.String colName)
getColumnData in interface ComputablecolName - the column name
public int getColumnIndex(java.lang.String colName)
colName - the name of the column
public java.util.Vector getColumnData(int colIndex)
getColumnData in interface ComputablecolIndex - the column index
public java.lang.String[] getOperators()
getOperators in interface Computablepublic java.lang.String[] getMethods()
getMethods in interface Computable
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||