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 / complements / RelatedFeatures.java @ 44644
History | View | Annotate | Download (2.04 KB)
1 |
package org.gvsig.fmap.dal.complements; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
import org.gvsig.fmap.dal.StoresRepository; |
5 |
import org.gvsig.fmap.dal.feature.Feature; |
6 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
7 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
8 |
import org.gvsig.fmap.dal.feature.FeatureType; |
9 |
import org.gvsig.tools.complement.Complement; |
10 |
import org.gvsig.tools.dispose.Disposable; |
11 |
import org.gvsig.tools.dynobject.Tagged; |
12 |
|
13 |
/**
|
14 |
*
|
15 |
* @author jjdelcerro
|
16 |
*/
|
17 |
public interface RelatedFeatures extends Complement<Tagged> { |
18 |
|
19 |
public interface ContextRelatedFeatures extends Disposable { |
20 |
public ContextRelatedFeatures setStoresRepository(StoresRepository repository);
|
21 |
public StoresRepository getStoresRepository();
|
22 |
public FeatureStore getFeatureStore();
|
23 |
public FeatureType getFeatureType();
|
24 |
} |
25 |
|
26 |
public static final String COMPLEMENT_MANE = "DAL.RelatedFeatures"; |
27 |
|
28 |
public static final String DAL_RELATED_UNIQUE_FIELD_NAME = "DAL.RelatedFeatures.Unique.Field.Name"; |
29 |
// public static final String DAL_RELATED_FOREING_KEY_NAME = "DAL.RelatedFeatures.Foreing.Key.Name";
|
30 |
public static final String DAL_RELATED_TABLE = "DAL.RelatedFeatures.Table"; |
31 |
public static final String DAL_RELATED_COLUMNS = "DAL.RelatedFeatures.Columns"; |
32 |
|
33 |
public ContextRelatedFeatures createContext();
|
34 |
|
35 |
// public String getForeingKeyName();
|
36 |
|
37 |
public String getUniqueKeyName(); |
38 |
|
39 |
public String getTableName(); |
40 |
|
41 |
public boolean isRelatedFeatures(); |
42 |
|
43 |
public boolean isRelatedFeatures(ContextRelatedFeatures context); |
44 |
|
45 |
// public Object getForeingKey(ContextRelatedFeatures context, Feature feature);
|
46 |
|
47 |
public Object getUniqueKey(ContextRelatedFeatures context, Feature feature); |
48 |
|
49 |
public List<String> getColumns(ContextRelatedFeatures context); |
50 |
|
51 |
public FeatureStore getFeatureStore(ContextRelatedFeatures context);
|
52 |
|
53 |
public FeatureQuery getForeingKeyQuery(ContextRelatedFeatures context, Object codeValue); |
54 |
|
55 |
public FeatureQuery getUniqueKeyQuery(ContextRelatedFeatures context, Object codeValue); |
56 |
|
57 |
} |