Revision 45626 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.lib/src/main/java/org/gvsig/fmap/dal/store/db/DBStoreParameters.java

View differences:

DBStoreParameters.java
123 123
	 */
124 124
	public static final String CRS_PARAMTER_NAME = "CRS";
125 125

  
126
        /**
127
	 * Parameter name for <code>GeometryType</code><br>
128
	 * 
129
	 * @see #setGeometryType(int)
130
	 * @see #getGeometryType()
131
	 */
132
	public static final String GEOMETRYTYPE_PARAMTER_NAME = "GeometryType";
126 133
	/**
134
	 * Parameter name for <code>GeometrySubtype</code><br>
135
	 * 
136
	 * @see #setGeometrySubtype(int)
137
	 * @see #getGeometrySubtype()
138
	 */
139
	public static final String GEOMETRYSUBTYPE_PARAMTER_NAME = "GeometrySubtype";
140

  
141
	/**
127 142
	 * This instance contains the value of the current parameters.
128 143
	 */
129 144
	private DelegatedDynObject parameters;
......
607 622
		return (IProjection) getDynValue(CRS_PARAMTER_NAME);
608 623
	}
609 624

  
625
        public int getGeometryType() {
626
            Integer geomType = (Integer) this.getDynValue(GEOMETRYTYPE_PARAMTER_NAME);
627
            return geomType == null ? -1:geomType;
628
	}
629

  
630
	public void setGeometryType(int geometryType) {
631
		this.setDynValue(GEOMETRYTYPE_PARAMTER_NAME, geometryType);
632
	}
633

  
634
        public int getGeometrySubtype() {
635
            Integer geomSubtype = (Integer) this.getDynValue(GEOMETRYSUBTYPE_PARAMTER_NAME);
636
            return geomSubtype == null ? -1:geomSubtype;
637
	}
638

  
639
	public void setGeometrySubtype(int geometrySubtype) {
640
		this.setDynValue(GEOMETRYSUBTYPE_PARAMTER_NAME, geometrySubtype);
641
	}
642

  
610 643
}

Also available in: Unified diff