Revision 19743
trunk/libraries/libDataSourceDBBaseDrivers/src/org/gvsig/data/datastores/vectorial/driver/jdbc/DBAttributeDescriptor.java | ||
---|---|---|
6 | 6 |
public class DBAttributeDescriptor extends DefaultAttributeDescriptor { |
7 | 7 |
private boolean readOnly; |
8 | 8 |
private int sqlType; |
9 |
private boolean autoIncrement; |
|
9 | 10 |
|
10 | 11 |
public boolean isReadOnly() { |
11 | 12 |
return readOnly; |
... | ... | |
27 | 28 |
DBAttributeDescriptor newFD = (DBAttributeDescriptor)super.cloneAttribute(); |
28 | 29 |
newFD.readOnly = this.readOnly; |
29 | 30 |
newFD.sqlType = this.sqlType; |
31 |
newFD.autoIncrement = this.autoIncrement; |
|
30 | 32 |
|
31 | 33 |
return newFD; |
32 | 34 |
} |
... | ... | |
35 | 37 |
return new DBAttributeDescriptor(); |
36 | 38 |
} |
37 | 39 |
|
40 |
public boolean isAutoIncrement() { |
|
41 |
return autoIncrement; |
|
42 |
} |
|
43 |
|
|
44 |
public void setAutoIncrement(boolean autoIncrement) { |
|
45 |
this.autoIncrement = autoIncrement; |
|
46 |
} |
|
47 |
|
|
38 | 48 |
} |
Also available in: Unified diff