fix di configurazione
This commit is contained in:
3
.settings/com.ibm.etools.common.migration.prefs
Normal file
3
.settings/com.ibm.etools.common.migration.prefs
Normal file
@@ -0,0 +1,3 @@
|
||||
#Mon Jul 31 14:32:59 CEST 2017
|
||||
eclipse.preferences.version=1
|
||||
com.ibm.etools.common.migration.lastKnownVersion=8.5
|
||||
3
pom.xml
3
pom.xml
@@ -1,4 +1,5 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>NoahTeam</groupId>
|
||||
<artifactId>NoahCrawler</artifactId>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package it.noah.crawler.persistence;
|
||||
package it.noah.crawler.dao;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.Connection;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package it.noah.crawler.persistence;
|
||||
package it.noah.crawler.dao;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
|
||||
import it.noah.crawler.model.District;
|
||||
|
||||
public class DistrictAccess {
|
||||
public class DistrictDao {
|
||||
|
||||
public void insertDistricts(List<District> districts) throws SQLException {
|
||||
Connection conn = null;
|
||||
|
||||
@@ -10,11 +10,11 @@ import org.slf4j.LoggerFactory;
|
||||
import it.noah.crawler.AbstractNoahCrawler;
|
||||
import it.noah.crawler.NoahCrawler;
|
||||
import it.noah.crawler.converter.DistrictConverter;
|
||||
import it.noah.crawler.dao.DistrictDao;
|
||||
import it.noah.crawler.dom.tag.Table;
|
||||
import it.noah.crawler.exception.NoahCrawlerException;
|
||||
import it.noah.crawler.exception.ObjectNotFoundException;
|
||||
import it.noah.crawler.model.District;
|
||||
import it.noah.crawler.persistence.DistrictAccess;
|
||||
|
||||
public class NoahDistrictCrawler extends AbstractNoahCrawler
|
||||
implements NoahCrawler {
|
||||
@@ -35,7 +35,7 @@ public class NoahDistrictCrawler extends AbstractNoahCrawler
|
||||
List<District> districts = convertTableToDistricts(
|
||||
getTable("", true));
|
||||
log.debug("Convertion succesfull!!!");
|
||||
DistrictAccess access = new DistrictAccess();
|
||||
DistrictDao access = new DistrictDao();
|
||||
access.insertDistricts(districts);
|
||||
log.info("End " + this.getClass().getSimpleName());
|
||||
} catch (ObjectNotFoundException e) {
|
||||
|
||||
Reference in New Issue
Block a user