public class DBFormula extends Formula
callCount, compiledFlag, compiledSummary, definition, FUNCTION_TABLE, functions, list, name, OPERATORS, originalDefinition, specialHolder, summary, VERSION
Constructor and Description |
---|
DBFormula(java.lang.String formula)
a database formula
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDependentItem(java.lang.Object obj,
java.util.HashMap dependents)
add the dependent items
|
java.lang.Object |
compute(Query query)
compute the formula
|
protected java.lang.Object |
getDefinedItem(java.lang.String name)
get the defined value
|
protected double |
getItem(Query query,
java.lang.Object o,
java.lang.Appendable info,
CalculationPathNode parentCalcNode)
Extend this method to add your own variables
|
protected Formula |
makeFormula(java.lang.String formula)
make a sub formula
|
appendNumber, calculate, calculate, calculate, calculateV1, calculateV2, checkAndMove, compile, compute, computeV1, computeV2, convertToJavaScript, convertToJavaScript, findDependents, findDependents, getDefinition, getDetails, getHelp, getInternalSection, getInternalSectionCount, getItems, getName, getSummary, handleOp, isCompiled, isTextItemAllowed, legacy, next, parseFormula, registerFunctions, setAllowTextItem, showCompiledVersion, showCompiledVersionHTML, showLongVersion, splitUp, toString
public DBFormula(java.lang.String formula) throws java.lang.Exception
formula
- the text version of the formulajava.lang.Exception
- a serious problempublic java.lang.Object compute(Query query) throws java.lang.Exception
protected java.lang.Object getDefinedItem(java.lang.String name) throws java.lang.Exception
getDefinedItem
in class Formula
name
- the name of the valuejava.lang.Exception
- a serious problemprotected Formula makeFormula(java.lang.String formula) throws java.lang.Exception
makeFormula
in class Formula
formula
- the text of the sub formula.java.lang.Exception
- a serious problemprotected double getItem(Query query, java.lang.Object o, java.lang.Appendable info, CalculationPathNode parentCalcNode) throws java.lang.Exception
protected void addDependentItem(java.lang.Object obj, java.util.HashMap dependents) throws java.lang.Exception
addDependentItem
in class Formula
dependents
- the items.obj
- Object to be added to the dependent listjava.lang.Exception
- Serious ProblemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.