Revision 196 trunk/org.gvsig.spatialite/org.gvsig.spatialite.provider/src/main/java/org/gvsig/spatialite/dal/SpatiaLiteConnectionParametersHelper.java

View differences:

SpatiaLiteConnectionParametersHelper.java
10 10
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
11 11
import org.gvsig.fmap.dal.resource.db.DBParameters;
12 12
import org.gvsig.fmap.dal.store.jdbc.JDBCConnectionParameters;
13
import org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters;
14 13

  
15 14

  
16 15
public class SpatiaLiteConnectionParametersHelper {
......
31 30
    public String getUrl() {
32 31
        String url = (String) this.getDynValue(JDBCConnectionParameters.URL_PARAMTER_NAME);
33 32
        if( StringUtils.isEmpty(url) ) {
34
            url = SpatiaLiteHelper.getConnectionURL((SpatiaLiteConnectionParameters) this.parameters);
33
//            url = SpatiaLiteHelper.getConnectionURL((SpatiaLiteConnectionParameters) this.parameters);
34
            url = SpatiaLiteConnections.getConnectionURL(((SpatiaLiteConnectionParameters)this.parameters).getFile());
35 35
            this.setDynValue(JDBCConnectionParameters.URL_PARAMTER_NAME,url);
36 36
        }
37 37
        return url;
......
40 40
    public void validate() throws ValidateDataParametersException {
41 41
        if (this.getDynValue(JDBCConnectionParameters.JDBC_DRIVER_CLASS_PARAMTER_NAME) == null) {
42 42
            this.setDynValue(JDBCConnectionParameters.JDBC_DRIVER_CLASS_PARAMTER_NAME,
43
                SpatiaLiteHelper.SPATIALITE_JDBC_DRIVER
43
                SpatiaLiteConnections.SPATIALITE_JDBC_DRIVER
44 44
            );
45 45
        }
46 46
        if (getFile() == null) {

Also available in: Unified diff