Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / feature / ForeingKey.java @ 44297

History | View | Annotate | Download (1.85 KB)

1 44262 jjdelcerro
package org.gvsig.fmap.dal.feature;
2
3
import java.util.List;
4
import org.gvsig.expressionevaluator.Expression;
5
import org.gvsig.expressionevaluator.SymbolTable;
6
import org.gvsig.fmap.dal.StoresRepository;
7
import org.gvsig.fmap.dal.expressionevaluator.FeatureSymbolTable;
8
import org.gvsig.tools.dispose.Disposable;
9
import org.gvsig.tools.dynobject.DynObjectValueItem;
10
11
/**
12
 *
13
 * @author jjdelcerro
14
 */
15
public interface ForeingKey {
16
17
    public static final int MAX_AVAILABLE_VALUES = 1000;
18
19
    public interface ContextForeingKey extends Disposable {
20
        public StoresRepository getStoresRepository();
21
        public FeatureStore getFeatureStore();
22
        public Expression getLabelExpression();
23
        public FeatureSymbolTable getFeatureSymbolTable();
24
        public SymbolTable getSymbolTable();
25
    }
26
27
    public ContextForeingKey createContext();
28
29
    public boolean isForeingKey();
30
31
    public boolean isSelectable();
32
33
    public String getTableName();
34
35
    public String getCodeName();
36
37
    public String getLabelFormula();
38
39
40
    public boolean isEmpty();
41
42
    public Object getCode(ContextForeingKey context, Feature feature);
43
44
    public Feature getFeature(ContextForeingKey context, Object codeValue);
45
46
    public FeatureStore getFeatureStore(ContextForeingKey context);
47
48
    public FeatureType getFeatureType(ContextForeingKey context);
49
50
    public List<Feature> getFeatures(ContextForeingKey context);
51
52
    public String getLabel(ContextForeingKey context, Object codeValue);
53
54
    public String getLabel(ContextForeingKey context, Feature feature);
55
56
    public Expression getLabelExpression(ContextForeingKey context);
57
58
    public FeatureQuery getQuery(ContextForeingKey context, Object codeValue);
59
60
    public StoresRepository getStoresRepository(ContextForeingKey context);
61
62
    public DynObjectValueItem[] getAvailableValues(ContextForeingKey context);
63
64
65
}