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/TableIsEmptyOperation.java
TableIsEmptyOperation.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.ResultSet; |
28 | 27 |
import java.sql.SQLException; |
29 | 28 |
import java.sql.Statement; |
... | ... | |
35 | 34 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCHelper; |
36 | 35 |
import org.gvsig.fmap.dal.store.jdbc2.spi.JDBCSQLBuilderBase; |
37 | 36 |
import org.gvsig.fmap.dal.store.jdbc.exception.JDBCSQLException; |
37 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCConnection; |
|
38 | 38 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCUtils; |
39 | 39 |
import org.gvsig.fmap.dal.store.jdbc2.OperationsFactory.TableReference; |
40 | 40 |
import static org.gvsig.fmap.dal.store.jdbc2.spi.JDBCSQLBuilderBase.PROP_FEATURE_TYPE; |
... | ... | |
71 | 71 |
} |
72 | 72 |
|
73 | 73 |
@Override |
74 |
public final Object perform(Connection conn) throws DataException { |
|
74 |
public final Object perform(JDBCConnection conn) throws DataException {
|
|
75 | 75 |
return this.tableIsEmpty(conn); |
76 | 76 |
} |
77 | 77 |
|
... | ... | |
120 | 120 |
return sql; |
121 | 121 |
} |
122 | 122 |
|
123 |
public boolean tableIsEmpty(Connection conn) throws DataException { |
|
123 |
public boolean tableIsEmpty(JDBCConnection conn) throws DataException {
|
|
124 | 124 |
String sql = this.getSQL(); |
125 | 125 |
|
126 | 126 |
Statement st = null; |
Also available in: Unified diff