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/CountOperation.java
CountOperation.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; |
... | ... | |
46 | 45 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCHelper; |
47 | 46 |
import org.gvsig.fmap.dal.store.jdbc2.spi.JDBCSQLBuilderBase; |
48 | 47 |
import org.gvsig.fmap.dal.store.jdbc.exception.JDBCSQLException; |
48 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCConnection; |
|
49 | 49 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCUtils; |
50 | 50 |
import org.gvsig.fmap.dal.store.jdbc2.OperationsFactory.TableReference; |
51 | 51 |
import static org.gvsig.fmap.dal.store.jdbc2.spi.JDBCSQLBuilderBase.PROP_FEATURE_TYPE; |
... | ... | |
84 | 84 |
} |
85 | 85 |
|
86 | 86 |
@Override |
87 |
public final Object perform(Connection conn) throws DataException { |
|
87 |
public final Object perform(JDBCConnection conn) throws DataException {
|
|
88 | 88 |
return this.count(conn); |
89 | 89 |
} |
90 | 90 |
|
... | ... | |
276 | 276 |
return sql; |
277 | 277 |
} |
278 | 278 |
|
279 |
public long count(Connection conn) throws DataException { |
|
279 |
public long count(JDBCConnection conn) throws DataException {
|
|
280 | 280 |
|
281 | 281 |
String sql = this.getSQL(); |
282 | 282 |
Statement st = null; |
Also available in: Unified diff