Revision 1773 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/MemoryLabelAdapter.java
MemoryLabelAdapter.java | ||
---|---|---|
92 | 92 |
} |
93 | 93 |
|
94 | 94 |
/* (non-Javadoc) |
95 |
* @see com.iver.cit.gvsig.fmap.layers.VectorialAdapter#changeRecordsetName(java.lang.String) |
|
96 |
*/ |
|
97 |
public void changeRecordsetName(String newName) throws DriverException { |
|
98 |
try { |
|
99 |
if (ds == null) { |
|
100 |
try { |
|
101 |
ds = getRecordset(newName); |
|
102 |
} catch (DriverLoadException e1) { |
|
103 |
throw new DriverException(e1); |
|
104 |
} |
|
105 |
} |
|
106 |
|
|
107 |
DataSourceFactory.changeDataSourceName(dataSourceName, newName); |
|
108 |
} catch (NoSuchTableException e) { |
|
109 |
throw new RuntimeException( |
|
110 |
"No existe la tabla que hemos creado????"); |
|
111 |
} |
|
112 |
|
|
113 |
dataSourceName = newName; |
|
114 |
} |
|
115 |
|
|
116 |
/* (non-Javadoc) |
|
117 | 95 |
* @see com.iver.cit.gvsig.fmap.layers.ReadableVectorial#start() |
118 | 96 |
*/ |
119 | 97 |
public void start() throws DriverIOException { |
Also available in: Unified diff