01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * Created on 13/01/2004
17: */
18: package org.geotools.data.jdbc;
19:
20: import org.geotools.feature.DefaultFeature;
21: import org.geotools.feature.DefaultFeatureType;
22: import org.geotools.feature.IllegalAttributeException;
23:
24: /**
25: * @author Sean Geoghegan, Defence Science and Technology Organisation
26: * @author $Author: aaime $
27: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/jdbc/src/main/java/org/geotools/data/jdbc/MutableFIDFeature.java $
28: * @version $Id: MutableFIDFeature.java 23526 2006-12-19 20:24:09Z aaime $
29: * Last Modified: $Date: 2004/04/09 15:30:52 $
30: */
31: public class MutableFIDFeature extends DefaultFeature {
32:
33: public MutableFIDFeature(DefaultFeatureType ft,
34: Object[] attributes, String fid)
35: throws IllegalAttributeException {
36: super (ft, attributes, fid);
37:
38: }
39:
40: /**
41: * Sets the FID, used by datastores only.
42: *
43: * I would love to protect this for safety reason, i.e. so client classes can't
44: * use it by casting to it.
45: *
46: * @param id The fid to set.
47: */
48: public void setID(String id) {
49: this.featureId = id;
50: }
51: }
|