Revision 20908 trunk/libraries/libFMap_dataDB/src-test/org/gvsig/data/datastores/vectorial/db/jdbc/h2/H2Test.java
H2Test.java | ||
---|---|---|
1003 | 1003 |
newdp.setFeatureType(ftype); |
1004 | 1004 |
DBAttributeDescriptor attr; |
1005 | 1005 |
|
1006 |
attr = new DBAttributeDescriptor();
|
|
1006 |
attr = (DBAttributeDescriptor) ftype.createAttributeDescriptor();
|
|
1007 | 1007 |
try { |
1008 | 1008 |
attr.loading(); |
1009 | 1009 |
attr.setName("ID"); |
... | ... | |
1013 | 1013 |
attr.stopLoading(); |
1014 | 1014 |
ftype.add(attr); |
1015 | 1015 |
|
1016 |
attr = new DBAttributeDescriptor();
|
|
1016 |
attr = (DBAttributeDescriptor) ftype.createAttributeDescriptor();
|
|
1017 | 1017 |
attr.loading(); |
1018 | 1018 |
attr.setName("MYGEOMETRY"); |
1019 | 1019 |
attr.setType(IFeatureAttributeDescriptor.TYPE_GEOMETRY); |
... | ... | |
1021 | 1021 |
ftype.add(attr); |
1022 | 1022 |
ftype.setDefaultGeometry(attr.getName()); |
1023 | 1023 |
|
1024 |
attr = new DBAttributeDescriptor();
|
|
1024 |
attr = (DBAttributeDescriptor) ftype.createAttributeDescriptor();
|
|
1025 | 1025 |
attr.loading(); |
1026 | 1026 |
attr.setName("MYSTRING"); |
1027 | 1027 |
attr.setSize(50); |
... | ... | |
1031 | 1031 |
ftype.add(attr); |
1032 | 1032 |
|
1033 | 1033 |
|
1034 |
attr = new DBAttributeDescriptor();
|
|
1034 |
attr = (DBAttributeDescriptor) ftype.createAttributeDescriptor();
|
|
1035 | 1035 |
attr.loading(); |
1036 | 1036 |
attr.setName("MYDOUBLE"); |
1037 | 1037 |
|
Also available in: Unified diff