svn-gvsig-desktop / 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 / AbstractFeatureFunction.java @ 44853
History | View | Annotate | Download (1.15 KB)
1 |
package org.gvsig.expressionevaluator.impl.function.dataaccess; |
---|---|
2 |
|
3 |
import org.apache.commons.lang3.Range; |
4 |
import org.gvsig.expressionevaluator.Interpreter; |
5 |
import org.gvsig.expressionevaluator.spi.AbstractFunction; |
6 |
import static org.gvsig.fmap.dal.DataManager.FUNCTION_CURRENT_ROW; |
7 |
import org.gvsig.fmap.dal.feature.Feature; |
8 |
|
9 |
/**
|
10 |
*
|
11 |
* @author jjdelcerro
|
12 |
*/
|
13 |
public abstract class AbstractFeatureFunction extends AbstractFunction { |
14 |
|
15 |
protected AbstractFeatureFunction(String group, String name, Range argc, String description, String template, String[] descriptionArgs, String returnType, boolean sqlCompatible) { |
16 |
super(group, name, argc, description, template, descriptionArgs, returnType, sqlCompatible);
|
17 |
} |
18 |
|
19 |
protected AbstractFeatureFunction(String group, String name, Range argc, String description, String template, String[] descriptionArgs, String returnType) { |
20 |
super(group, name, argc, description, template, descriptionArgs, returnType);
|
21 |
} |
22 |
|
23 |
public Feature current_row(Interpreter interpreter) {
|
24 |
try {
|
25 |
Feature f = (Feature) interpreter.call(FUNCTION_CURRENT_ROW); |
26 |
return f;
|
27 |
} catch (Exception ex) { |
28 |
return null; |
29 |
} |
30 |
} |
31 |
|
32 |
|
33 |
} |