Revision 44944
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/spi/JDBCSQLBuilderBase.java | ||
---|---|---|
3 | 3 |
import java.sql.Connection; |
4 | 4 |
import java.sql.PreparedStatement; |
5 | 5 |
import java.sql.SQLException; |
6 |
import java.sql.Timestamp; |
|
6 | 7 |
import java.util.ArrayList; |
7 | 8 |
import java.util.Date; |
8 | 9 |
import java.util.List; |
... | ... | |
231 | 232 |
|
232 | 233 |
public Disposable setStatementParameters( |
233 | 234 |
PreparedStatement st, |
234 |
List values,
|
|
235 |
List values, |
|
235 | 236 |
GeometrySupportType geometrySupportType) throws SQLException { |
236 | 237 |
|
237 | 238 |
if (values == null) { |
... | ... | |
296 | 297 |
} catch(Exception ex) { |
297 | 298 |
} |
298 | 299 |
} |
300 |
byte[] bytes; |
|
301 |
int columnIndex = 1; |
|
299 | 302 |
try { |
300 |
byte[] bytes; |
|
301 |
int columnIndex = 1; |
|
302 | 303 |
for (Object value : values) { |
303 | 304 |
if (value instanceof Geometry) { |
304 | 305 |
switch(geometrySupportType) { |
... | ... | |
317 | 318 |
break; |
318 | 319 |
} |
319 | 320 |
} else { |
320 |
st.setObject(columnIndex, value); |
|
321 |
} |
|
321 |
st.setObject(columnIndex, value);
|
|
322 |
}
|
|
322 | 323 |
columnIndex++; |
323 | 324 |
} |
324 | 325 |
return new Disposable() { |
Also available in: Unified diff