Statistics
| Revision:

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

History | View | Annotate | Download (2.83 KB)

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

    
3
import org.gvsig.data.datastores.vectorial.db.DBAttributeDescriptor;
4
import org.gvsig.data.vectorial.IFeatureAttributeDescriptor;
5

    
6

    
7
public class JDBCAttributeDescriptor extends DBAttributeDescriptor {
8
        private int sqlType;
9
        private String className;
10
        private String sqlTypeName;
11
        private String catalogName;
12
        private String schemaName;
13
        private String tableName;
14
        private boolean caseSensitive;
15
        private boolean currency;
16
        private boolean definitelyWritable;
17
        private boolean searchable;
18
        private boolean signed;
19
        private boolean writable;
20

    
21

    
22
        public IFeatureAttributeDescriptor cloneAttribute() {
23
                JDBCAttributeDescriptor newFD = (JDBCAttributeDescriptor)super.cloneAttribute();
24
                newFD.sqlType = this.sqlType;
25
                newFD.className = this.className;
26
                newFD.sqlTypeName = this.sqlTypeName;
27
                newFD.schemaName = this.schemaName;
28
                newFD.tableName = this.tableName;
29
                newFD.caseSensitive = this.caseSensitive;
30
                newFD.currency = this.currency;
31
                newFD.definitelyWritable = this.definitelyWritable;
32
                newFD.searchable = this.searchable;
33
                newFD.signed = this.signed;
34
                newFD.writable = this.writable;
35
                newFD.catalogName = this.catalogName;
36

    
37
                return newFD;
38
        }
39
        public int getSqlType() {
40
                return this.sqlType;
41
        }
42

    
43
        public void setSqlType(int sqlType){
44
                this.sqlType = sqlType;
45
        }
46
        public String getClassName() {
47
                return className;
48
        }
49
        public void setClassName(String className) {
50
                this.className = className;
51
        }
52

    
53
        public String getSqlTypeName() {
54
                return sqlTypeName;
55
        }
56
        public void setSqlTypeName(String sqlTypeName) {
57
                this.sqlTypeName = sqlTypeName;
58
        }
59
        public String getSchemaName() {
60
                return schemaName;
61
        }
62
        public void setSchemaName(String schemaName) {
63
                this.schemaName = schemaName;
64
        }
65
        public String getTableName() {
66
                return tableName;
67
        }
68
        public void setTableName(String tableName) {
69
                this.tableName = tableName;
70
        }
71
        public boolean isCaseSensitive() {
72
                return caseSensitive;
73
        }
74
        public void setCaseSensitive(boolean caseSensitive) {
75
                this.caseSensitive = caseSensitive;
76
        }
77
        public boolean isCurrency() {
78
                return currency;
79
        }
80
        public void setCurrency(boolean currency) {
81
                this.currency = currency;
82
        }
83
        public boolean isDefinitelyWritable() {
84
                return definitelyWritable;
85
        }
86
        public void setDefinitelyWritable(boolean definitelyWritable) {
87
                this.definitelyWritable = definitelyWritable;
88
        }
89
        public boolean isSearchable() {
90
                return searchable;
91
        }
92
        public void setSearchable(boolean searchable) {
93
                this.searchable = searchable;
94
        }
95
        public boolean isSigned() {
96
                return signed;
97
        }
98
        public void setSigned(boolean signed) {
99
                this.signed = signed;
100
        }
101
        public boolean isWritable() {
102
                return writable;
103
        }
104
        public void setWritable(boolean writable) {
105
                this.writable = writable;
106
        }
107
        public String getCatalogName() {
108
                return catalogName;
109
        }
110
        public void setCatalogName(String catalogName) {
111
                this.catalogName = catalogName;
112
        }
113
}