Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libDataSourceDBBaseDrivers / src / org / gvsig / data / datastores / vectorial / db / DBAttributeDescriptor.java @ 20029

History | View | Annotate | Download (1.07 KB)

1
package org.gvsig.data.datastores.vectorial.db;
2

    
3
import org.gvsig.data.vectorial.DefaultAttributeDescriptor;
4
import org.gvsig.data.vectorial.IFeatureAttributeDescriptor;
5

    
6
public class DBAttributeDescriptor extends DefaultAttributeDescriptor {
7
        private boolean readOnly;
8
        private boolean autoIncrement;
9
        private String label;
10

    
11
        public boolean isReadOnly() {
12
                return readOnly;
13
        }
14

    
15
        public void setReadOnly(boolean readOnly) {
16
                this.readOnly = readOnly;
17
        }
18

    
19

    
20
        public IFeatureAttributeDescriptor cloneAttribute() {
21
                DBAttributeDescriptor newFD = (DBAttributeDescriptor)super.cloneAttribute();
22
                newFD.readOnly = this.readOnly;
23
                newFD.autoIncrement = this.autoIncrement;
24
                newFD.label = this.label;
25

    
26
                return newFD;
27
        }
28

    
29
        protected IFeatureAttributeDescriptor newAttribute() {
30
                return new DBAttributeDescriptor();
31
        }
32

    
33
        public boolean isAutoIncrement() {
34
                return autoIncrement;
35
        }
36

    
37
        public void setAutoIncrement(boolean autoIncrement) {
38
                this.autoIncrement = autoIncrement;
39
        }
40

    
41
        public String getLabel() {
42
                return label;
43
        }
44
        public void setLabel(String label) {
45
                this.label = label;
46
        }
47

    
48
}