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/function/dataaccess/CurrentStoreFunction.java
CurrentStoreFunction.java | ||
---|---|---|
27 | 27 |
import org.gvsig.expressionevaluator.Interpreter; |
28 | 28 |
import org.gvsig.expressionevaluator.impl.DALFunctions; |
29 | 29 |
import org.gvsig.expressionevaluator.spi.AbstractFunction; |
30 |
import static org.gvsig.fmap.dal.DataManager.FUNCTION_CURRENT_ROW; |
|
31 |
import static org.gvsig.fmap.dal.DataManager.FUNCTION_CURRENT_STORE; |
|
30 | 32 |
import org.gvsig.fmap.dal.feature.Feature; |
31 | 33 |
|
32 | 34 |
/** |
... | ... | |
38 | 40 |
public CurrentStoreFunction() { |
39 | 41 |
super( |
40 | 42 |
DALFunctions.GROUP_DATA_ACCESS, |
41 |
DALFunctions.FUNCTION_CURRENT_STORE,
|
|
43 |
FUNCTION_CURRENT_STORE, |
|
42 | 44 |
Range.is(0), |
43 | 45 |
"Return the current store when used in a table filter.\n" |
44 | 46 |
+ "Return null if used outer a table filter.", |
45 |
DALFunctions.FUNCTION_CURRENT_STORE+"()",
|
|
47 |
FUNCTION_CURRENT_STORE+"()", |
|
46 | 48 |
null, |
47 | 49 |
"FeatureStore", |
48 | 50 |
false |
... | ... | |
51 | 53 |
|
52 | 54 |
private Feature current_row(Interpreter interpreter) { |
53 | 55 |
try { |
54 |
Feature f = (Feature) interpreter.call(DALFunctions.FUNCTION_CURRENT_ROW);
|
|
56 |
Feature f = (Feature) interpreter.call(FUNCTION_CURRENT_ROW); |
|
55 | 57 |
return f; |
56 | 58 |
} catch (Exception ex) { |
57 | 59 |
return null; |
Also available in: Unified diff