Revision 44853 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

View differences:

CurrentStoreFunction.java
26 26
import org.apache.commons.lang3.Range;
27 27
import org.gvsig.expressionevaluator.Interpreter;
28 28
import org.gvsig.expressionevaluator.impl.DALFunctions;
29
import org.gvsig.expressionevaluator.spi.AbstractFunction;
30
import static org.gvsig.fmap.dal.DataManager.FUNCTION_CURRENT_ROW;
31 29
import static org.gvsig.fmap.dal.DataManager.FUNCTION_CURRENT_STORE;
32 30
import org.gvsig.fmap.dal.feature.Feature;
33 31

  
......
35 33
 *
36 34
 * @author jjdelcerro
37 35
 */
38
public class CurrentStoreFunction extends AbstractFunction {
36
public class CurrentStoreFunction extends AbstractFeatureFunction {
39 37

  
40 38
  public CurrentStoreFunction() {
41 39
    super(
......
51 49
    );
52 50
  }
53 51

  
54
  private Feature current_row(Interpreter interpreter) {
55
    try {
56
      Feature f = (Feature) interpreter.call(FUNCTION_CURRENT_ROW);
57
      return f;
58
    } catch (Exception ex) {
59
      return null;
60
    }
61
  }
62

  
63 52
  @Override
64 53
  public Object call(Interpreter interpreter, Object[] args) throws Exception {
65 54
    Feature feature = this.current_row(interpreter);

Also available in: Unified diff