Revision 44501 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/feature/impl/DefaultFeatureAttributeDescriptor.java
DefaultFeatureAttributeDescriptor.java | ||
---|---|---|
1155 | 1155 |
return this.indexed; |
1156 | 1156 |
} |
1157 | 1157 |
|
1158 |
@Override |
|
1158 | 1159 |
public boolean isForeingKey() { |
1159 | 1160 |
return this.foreingKey!=null && this.foreingKey.isForeingKey(); |
1160 | 1161 |
} |
1161 | 1162 |
|
1163 |
@Override |
|
1162 | 1164 |
public ForeingKey getForeingKey() { |
1163 | 1165 |
return this.foreingKey; |
1164 | 1166 |
} |
... | ... | |
1383 | 1385 |
DefaultFeatureType.RECENTS_USEDS.add(this); |
1384 | 1386 |
} |
1385 | 1387 |
|
1388 |
@Override |
|
1389 |
public boolean hasOnlyMetadataChanges(FeatureAttributeDescriptor other) { |
|
1390 |
if( other == null ) { |
|
1391 |
throw new NullPointerException(); |
|
1392 |
} |
|
1393 |
DefaultFeatureAttributeDescriptor old = (DefaultFeatureAttributeDescriptor) other; |
|
1394 |
if( !StringUtils.equalsIgnoreCase(old.name, this.name) ) { |
|
1395 |
return false; |
|
1396 |
} |
|
1397 |
if( old.isComputed() && old.isComputed()==this.isComputed() ) { |
|
1398 |
return true; |
|
1399 |
} |
|
1400 |
if( this.dataType!=old.dataType ) { |
|
1401 |
return false; |
|
1402 |
} |
|
1403 |
if( this.size != old.size ) { |
|
1404 |
return false; |
|
1405 |
} |
|
1406 |
if( this.precision != old.precision ) { |
|
1407 |
return false; |
|
1408 |
} |
|
1409 |
if( this.primaryKey != old.primaryKey ) { |
|
1410 |
return false; |
|
1411 |
} |
|
1412 |
if( this.geomType != old.geomType ) { |
|
1413 |
return false; |
|
1414 |
} |
|
1415 |
if( this.SRS != old.SRS ) { |
|
1416 |
return false; |
|
1417 |
} |
|
1418 |
if( this.isAutomatic != old.isAutomatic ) { |
|
1419 |
return false; |
|
1420 |
} |
|
1421 |
return true; |
|
1422 |
} |
|
1423 |
|
|
1386 | 1424 |
} |
Also available in: Unified diff