Revision 46315 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/operations/DropTableOperation.java
DropTableOperation.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.fmap.dal.store.jdbc2.spi.operations; |
25 | 25 |
|
26 |
import java.sql.Connection; |
|
27 | 26 |
import java.sql.SQLException; |
28 | 27 |
import java.sql.Statement; |
29 | 28 |
import java.util.List; |
... | ... | |
31 | 30 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCHelper; |
32 | 31 |
import org.gvsig.fmap.dal.store.jdbc2.spi.JDBCSQLBuilderBase; |
33 | 32 |
import org.gvsig.fmap.dal.store.jdbc.exception.JDBCSQLException; |
33 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCConnection; |
|
34 | 34 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCUtils; |
35 | 35 |
import org.gvsig.fmap.dal.store.jdbc2.OperationsFactory.TableReference; |
36 | 36 |
|
... | ... | |
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
@Override |
56 |
public final Object perform(Connection conn) throws DataException { |
|
56 |
public final Object perform(JDBCConnection conn) throws DataException {
|
|
57 | 57 |
this.dropTable(conn); |
58 | 58 |
return true; |
59 | 59 |
} |
... | ... | |
68 | 68 |
return sqls; |
69 | 69 |
} |
70 | 70 |
|
71 |
public void dropTable(Connection conn) throws DataException { |
|
71 |
public void dropTable(JDBCConnection conn) throws DataException {
|
|
72 | 72 |
|
73 | 73 |
Statement st = null; |
74 | 74 |
String currentsql = null; |
Also available in: Unified diff