Revision 44259 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/impl/dataprofile/ForeingKey.java
ForeingKey.java | ||
---|---|---|
4 | 4 |
import org.gvsig.expressionevaluator.ExpressionUtils; |
5 | 5 |
import org.gvsig.fmap.dal.DALLocator; |
6 | 6 |
import org.gvsig.fmap.dal.DataManager; |
7 |
import static org.gvsig.fmap.dal.DataManager.DAL_FOREING_CODE; |
|
8 |
import static org.gvsig.fmap.dal.DataManager.DAL_FOREING_TABLE; |
|
7 | 9 |
import org.gvsig.fmap.dal.feature.AbstractDataProfile; |
8 | 10 |
import org.gvsig.fmap.dal.feature.Feature; |
9 | 11 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
... | ... | |
17 | 19 |
@SuppressWarnings("UseSpecificCatch") |
18 | 20 |
public class ForeingKey extends AbstractDataProfile { |
19 | 21 |
|
20 |
public static final String DAL_FOREING_CODE = "DAL.foreingCode"; |
|
21 |
public static final String DAL_FOREING_TABLE = "DAL.foreingTable"; |
|
22 |
public static final String DAL_FOREING_LABEL = "DAL.foreingLabel"; |
|
23 |
|
|
24 | 22 |
public ForeingKey() { |
25 |
super("DAL.ForeingKey", "Foreing key", Feature.class);
|
|
23 |
super(DataManager.DAL_FOREING_KEY, "Foreing key", Feature.class);
|
|
26 | 24 |
} |
27 | 25 |
|
28 | 26 |
@Override |
... | ... | |
31 | 29 |
return null; |
32 | 30 |
} |
33 | 31 |
try { |
34 |
String foreingTableName = (String) tags.get(DAL_FOREING_TABLE);
|
|
35 |
String foreingCodeName = (String) tags.get(DAL_FOREING_CODE);
|
|
32 |
String foreingTableName = tags.getString(DAL_FOREING_TABLE,null);
|
|
33 |
String foreingCodeName = tags.getString(DAL_FOREING_CODE, null);
|
|
36 | 34 |
|
37 | 35 |
DataManager dataManager = DALLocator.getDataManager(); |
38 | 36 |
FeatureStore store = (FeatureStore) dataManager.getStoresRepository().get(foreingTableName); |
Also available in: Unified diff