Revision 8841

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/VectorialFileAdapter.java
177 177

  
178 178
					String name = LayerFactory.getDataSourceFactory().addFileDataSource(driverName,
179 179
						dataFile.getAbsolutePath());
180
					ds = new SelectableDataSource(LayerFactory.getDataSourceFactory().createRandomDataSource(name, DataSourceFactory.AUTOMATIC_OPENING));
180
					ds = new SelectableDataSource(LayerFactory.getDataSourceFactory().createRandomDataSource(name, DataSourceFactory.MANUAL_OPENING));
181 181
				} else if (driver instanceof ObjectDriver) {
182 182
					String name = LayerFactory.getDataSourceFactory().addDataSource((ObjectDriver)driver);
183 183
					ds = new SelectableDataSource(LayerFactory.getDataSourceFactory().createRandomDataSource(name, DataSourceFactory.AUTOMATIC_OPENING));
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java
867 867
				// en el setLegend del createLayer, nos olvidamos
868 868
				SelectableDataSource sds = new SelectableDataSource(LayerFactory
869 869
						.getDataSourceFactory().createRandomDataSource(
870
								recordsetName, DataSourceFactory.AUTOMATIC_OPENING));
870
								recordsetName, DataSourceFactory.MANUAL_OPENING));
871 871
				// sds.setSelectionSupport(selectionSupport);
872 872
				// ((EditableAdapter)getSource()).setRecordSet(sds);
873 873
			} catch (NoSuchTableException e1) {
trunk/libraries/libGDBMS/src/main/java/com/hardcode/gdbms/engine/data/AutomaticDataSource.java
174 174
     * @see com.hardcode.gdbms.engine.data.FieldNameAccess#getFieldIndexByName(java.lang.String)
175 175
     */
176 176
    public int getFieldIndexByName(String fieldName) throws DriverException {
177
        open();
177
//        open();
178 178

  
179 179
        return ds.getFieldIndexByName(fieldName);
180 180
    }
......
185 185
     */
186 186
    public Value getFieldValue(long rowIndex, int fieldId)
187 187
        throws DriverException {
188
        open();
188
//        open();
189 189

  
190 190
        return ds.getFieldValue(rowIndex, fieldId);
191 191
    }
......
194 194
     * @see com.hardcode.gdbms.engine.data.driver.ReadAccess#getFieldCount()
195 195
     */
196 196
    public int getFieldCount() throws DriverException {
197
        open();
197
//        open();
198 198

  
199 199
        return ds.getFieldCount();
200 200
    }

Also available in: Unified diff