Revision 44947 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 | ||
---|---|---|
146 | 146 |
|
147 | 147 |
private int relationType = RELATION_TYPE_NONE; |
148 | 148 |
protected Locale locale; |
149 |
protected int requiredBytes;
|
|
149 |
protected int displaySize;
|
|
150 | 150 |
|
151 | 151 |
public DefaultFeatureAttributeDescriptor() { |
152 | 152 |
// Usada en la persistencia |
... | ... | |
183 | 183 |
this.hidden = false; |
184 | 184 |
this.relationType = RELATION_TYPE_NONE; |
185 | 185 |
this.locale = null; |
186 |
this.requiredBytes = 0;
|
|
186 |
this.displaySize = 0;
|
|
187 | 187 |
} |
188 | 188 |
|
189 | 189 |
protected DefaultFeatureAttributeDescriptor( |
... | ... | |
272 | 272 |
this.calculateMethod = other.calculateMethod; |
273 | 273 |
this.relationType = other.relationType; |
274 | 274 |
this.locale = other.locale; |
275 |
this.requiredBytes = other.requiredBytes;
|
|
275 |
this.displaySize = other.displaySize;
|
|
276 | 276 |
} |
277 | 277 |
|
278 | 278 |
public void setFeatureType(FeatureType type) { |
... | ... | |
723 | 723 |
if (tags == null) { |
724 | 724 |
this.tags = new DefaultTags(); |
725 | 725 |
} |
726 |
requiredBytes = state.getInt("requiredBytes",0);
|
|
726 |
displaySize = state.getInt("displaySize",0);
|
|
727 | 727 |
} |
728 | 728 |
|
729 | 729 |
@Override |
... | ... | |
813 | 813 |
state.set("foreingKey", this.foreingKey); |
814 | 814 |
state.set("tags", this.tags); |
815 | 815 |
|
816 |
state.set("requiredBytes", requiredBytes);
|
|
816 |
state.set("displaySize", displaySize);
|
|
817 | 817 |
} |
818 | 818 |
|
819 | 819 |
private static final String FEATATTRDESC_PERSISTENCE_DEFINITION_NAME = "FeatureAttributeDescriptor"; |
... | ... | |
879 | 879 |
definition.addDynFieldObject("tags") |
880 | 880 |
.setClassOfValue(Tags.class); |
881 | 881 |
|
882 |
definition.addDynFieldInt("requiredBytes").setMandatory(false);
|
|
882 |
definition.addDynFieldInt("displaySize").setMandatory(false);
|
|
883 | 883 |
|
884 | 884 |
} |
885 | 885 |
} |
... | ... | |
1444 | 1444 |
} |
1445 | 1445 |
|
1446 | 1446 |
@Override |
1447 |
public int getRequiredBytes() {
|
|
1448 |
return this.requiredBytes;
|
|
1447 |
public int getDisplaySize() {
|
|
1448 |
return this.displaySize;
|
|
1449 | 1449 |
} |
1450 | 1450 |
|
1451 | 1451 |
private class ConstantValueEvaluator extends AbstractEvaluator { |
Also available in: Unified diff