Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_daldb / src / org / gvsig / fmap / data / feature / db / DBFeatureType.java @ 24491

History | View | Annotate | Download (1.28 KB)

1
package org.gvsig.fmap.data.feature.db;
2

    
3
import java.util.ArrayList;
4
import java.util.Iterator;
5

    
6
import org.gvsig.fmap.dal.feature.AttributeDescriptor;
7
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
8
import org.gvsig.fmap.dal.feature.FeatureType;
9
import org.gvsig.fmap.dal.feature.impl.DefaultFeatureType;
10

    
11
public class DBFeatureType extends DefaultFeatureType {
12
        private String tableID;
13
        private boolean readOnly=false;
14

    
15
        public String getTableID() {
16
                return tableID;
17
        }
18

    
19
        public void setTableID(String tableID) {
20
                this.tableID = tableID;
21
        }
22

    
23
        protected FeatureType newFeatureType() {
24
                return new DBFeatureType();
25
        }
26

    
27
        public FeatureType getCopy() {
28
                DBFeatureType newFType = (DBFeatureType)super.getCopy();
29
                newFType.tableID = this.tableID;
30
                return newFType;
31
        }
32

    
33
        public void setReadOnly(boolean readOnly){
34
                this.readOnly = readOnly;
35
        }
36

    
37
        public boolean isReadOnly(){
38
                return this.readOnly;
39
        }
40

    
41
        /* (non-Javadoc)
42
         * @see org.gvsig.fmap.dal.feature.FeatureType#createNewAttributeDescriptor()
43
         */
44
        public FeatureAttributeDescriptor createNewAttributeDescriptor() {
45
                return new DBAttributeDescriptor(this,true);
46
        }
47

    
48

    
49
        public FeatureAttributeDescriptor createAttributeDescriptor() {
50
                return new DBAttributeDescriptor(this,false);
51
        }
52

    
53
}