Revision: 4818
http://sourceforge.net/p/jump-pilot/code/4818
Author: michaudm
Date: 2016-02-06 11:25:10 +0000 (Sat, 06 Feb 2016)
Log Message:
-----------
Use database read-only property
Modified Paths:
--------------
core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesResultSetConverter.java
Modified:
core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesResultSetConverter.java
===================================================================
---
core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesResultSetConverter.java
2016-02-05 12:40:08 UTC (rev 4817)
+++
core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesResultSetConverter.java
2016-02-06 11:25:10 UTC (rev 4818)
@@ -22,7 +22,6 @@
protected ResultSet rs;
protected FeatureSchema featureSchema;
- protected int geometryColIndex = -1;
protected ValueConverter[] mapper;
protected SpatialDatabasesValueConverterFactory odm;
protected boolean isInitialized = false;
@@ -74,19 +73,19 @@
// Convert the first geometry into AttributeType.GEOMETRY and the
following ones
// into AttributeType.STRINGs [mmichaud 2007-05-13]
if (mapper[i].getType() == AttributeType.GEOMETRY) {
- // Nicolas Ribot: stores geomCol index as it is needed by Adhoc query
- //geometryColIndex = i+1;
if (featureSchema.getGeometryIndex() == -1) {
// fixed by mmichaud using a patch from jaakko [2008-05-21] :
// use colName instead of "GEOMETRY" for attribute name
featureSchema.addAttribute(colName, mapper[i].getType());
} else {
- //mapper[i] = odm.WKB_OBJECT_MAPPER;
- // Other attributes as string
+ // Other geometry attributes as string
featureSchema.addAttribute(colName, AttributeType.STRING);
+ featureSchema.setAttributeReadOnly(i, true);
}
} else {
featureSchema.addAttribute(colName, mapper[i].getType());
+ // Not yet available in postgresql driver
+ if (rsmd.isReadOnly(i + 1)) featureSchema.setAttributeReadOnly(i,
true);
}
}
}
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel