Revision 11006 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/SelectableDataSource.java

View differences:

SelectableDataSource.java
90 90
	 */
91 91
	public SelectableDataSource(DataSource ds) throws DriverException {
92 92
		dataSource = ds;
93
		dataSource.start();
93
		// CHEMA: No deberiamos abrir el dataSource porque si
94
		// Lo tiene que hacer quien lo va a usar
95
		//dataSource.start();
96
		
94 97
		// Creamos el mapping de campos externos que no muestran el PK.
95 98
		mapExternalFields();
96 99

  
......
102 105
	 * @throws DriverException
103 106
	 */
104 107
	public void mapExternalFields() throws DriverException {
108
		//CHEMA: Abrimos y cerramos el dataSource para preparar
109
		//		el mapping
110
		this.dataSource.start();
105 111
		int numExternalFields = 0;
106 112
		for (int i=0; i < dataSource.getFieldCount(); i++)
107 113
		{
......
118 124
				mapping[j++] = i;
119 125
				
120 126
		}
127
		this.dataSource.stop();
121 128
	}
122 129

  
123 130
	public static SelectableDataSource createSelectableDataSource(XMLEntity xml) throws NoSuchTableException, ParseException, DriverLoadException, DriverException, SemanticException, IOException, XMLException{

Also available in: Unified diff