Revision 44748 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/expressionevaluator/impl/symboltable/FeatureSymbolTableImpl.java
FeatureSymbolTableImpl.java | ||
---|---|---|
34 | 34 |
import org.gvsig.expressionevaluator.spi.AbstractFunction; |
35 | 35 |
import org.gvsig.expressionevaluator.spi.AbstractSymbolTable; |
36 | 36 |
import org.gvsig.fmap.dal.DataManager; |
37 |
import static org.gvsig.fmap.dal.DataManager.FUNCTION_CURRENT_ROW; |
|
37 | 38 |
import org.gvsig.fmap.dal.expressionevaluator.FeatureSymbolTable; |
38 | 39 |
import org.gvsig.fmap.dal.feature.Feature; |
39 | 40 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
... | ... | |
61 | 62 |
super(DataManager.DAL_SYMBOL_TABLE_FEATURE); |
62 | 63 |
this.current_row = new AbstractFunction( |
63 | 64 |
DALFunctions.GROUP_DATA_ACCESS, |
64 |
DALFunctions.FUNCTION_CURRENT_ROW,
|
|
65 |
FUNCTION_CURRENT_ROW, |
|
65 | 66 |
Range.is(0), |
66 | 67 |
"Return the current row when used in a table filter.\n" |
67 | 68 |
+ "Return null if used outer a table filter.", |
68 |
DALFunctions.FUNCTION_CURRENT_ROW + "()",
|
|
69 |
FUNCTION_CURRENT_ROW + "()", |
|
69 | 70 |
null, |
70 | 71 |
"Feature" |
71 | 72 |
) { |
... | ... | |
103 | 104 |
|
104 | 105 |
@Override |
105 | 106 |
public Function function(String name) { |
106 |
if (StringUtils.equalsIgnoreCase(name, DALFunctions.FUNCTION_CURRENT_ROW)) {
|
|
107 |
if (StringUtils.equalsIgnoreCase(name, FUNCTION_CURRENT_ROW)) { |
|
107 | 108 |
return this.current_row; |
108 | 109 |
} |
109 | 110 |
return super.function(name); |
Also available in: Unified diff