Revision 65

View differences:

trunk/org.gvsig.postgresql/org.gvsig.postgresql.provider/src/main/java/org/gvsig/fmap/dal/store/postgresql/PostgreSQLNewStoreParameters.java
21 21
 */
22 22

  
23 23
/*
24
* AUTHORS (In addition to CIT):
25
* 2008 IVER T.I. S.A.   {{Task}}
26
*/
27

  
24
 * AUTHORS (In addition to CIT):
25
 * 2008 IVER T.I. S.A.   {{Task}}
26
 */
28 27
package org.gvsig.fmap.dal.store.postgresql;
29 28

  
30 29
import org.gvsig.fmap.dal.feature.EditableFeatureType;
31 30
import org.gvsig.fmap.dal.feature.FeatureType;
32
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
31
import org.gvsig.fmap.dal.store.jdbc.JDBCNewStoreParameters;
33 32

  
34
public class PostgreSQLNewStoreParameters extends PostgreSQLStoreParameters
35
		implements NewFeatureStoreParameters {
33
public class PostgreSQLNewStoreParameters extends JDBCNewStoreParameters implements PostgreSQLConnectionParameters {
36 34

  
37 35
    public static final String PARAMETERS_DEFINITION_NAME = "PostgreSQLNewStoreParameters";
38 36

  
39 37
    public PostgreSQLNewStoreParameters() {
40
    	super(PARAMETERS_DEFINITION_NAME);
38
        super(PARAMETERS_DEFINITION_NAME, PostgreSQLStoreProvider.NAME);
41 39
    }
42
    
43
	public EditableFeatureType getDefaultFeatureType() {
44
		return (EditableFeatureType) this.getDynValue(FEATURETYPE_PARAMTER_NAME);
45
	}
46 40

  
47
	public void setDefaultFeatureType(FeatureType featureType) {
48
		this.setDynValue(FEATURETYPE_PARAMTER_NAME, featureType);
49
	}
41
    public EditableFeatureType getDefaultFeatureType() {
42
        return (EditableFeatureType) this.getDynValue(FEATURETYPE_PARAMTER_NAME);
43
    }
50 44

  
51
}
45
    public void setDefaultFeatureType(FeatureType featureType) {
46
        this.setDynValue(FEATURETYPE_PARAMTER_NAME, featureType);
47
    }
48

  
49
    public Boolean getUseSSL() {
50
        return (Boolean) this.getDynValue(DYNFIELDNAME_USESSL);
51
    }
52

  
53
    public void setUseSSL(Boolean useSSL) {
54
        this.setDynValue(DYNFIELDNAME_USESSL, useSSL);
55
    }
56

  
57
    public void setUseSSL(boolean useSSL) {
58
        this.setDynValue(DYNFIELDNAME_USESSL, new Boolean(useSSL));
59
    }
60

  
61
    public String getUrl() {
62
        return PostgreSQLLibrary.getJdbcUrl(getHost(),
63
                getPort(),
64
                getDBName());
65
    }
66
}

Also available in: Unified diff