| .. | .. |
|---|
| 1 | 1 | package timeflow.data.db; |
|---|
| 2 | 2 | |
|---|
| 3 | +public class Field |
|---|
| 4 | +{ |
|---|
| 3 | 5 | |
|---|
| 4 | | -public class Field { |
|---|
| 5 | | - private String name; |
|---|
| 6 | | - private Class type; |
|---|
| 7 | | - int index; |
|---|
| 8 | | - private int recommendedSize=-1; |
|---|
| 9 | | - |
|---|
| 10 | | - public Field(String name, Class type) |
|---|
| 11 | | - { |
|---|
| 12 | | - this.name=name; |
|---|
| 13 | | - this.type=type; |
|---|
| 14 | | - } |
|---|
| 15 | | - |
|---|
| 16 | | - public Field(String name, Class type, int recommendedSize) |
|---|
| 17 | | - { |
|---|
| 18 | | - this.name=name; |
|---|
| 19 | | - this.type=type; |
|---|
| 20 | | - this.recommendedSize=recommendedSize; |
|---|
| 21 | | - } |
|---|
| 22 | | - |
|---|
| 23 | | - public int getRecommendedSize() { |
|---|
| 24 | | - return recommendedSize; |
|---|
| 25 | | - } |
|---|
| 6 | + private String name; |
|---|
| 7 | + private Class type; |
|---|
| 8 | + int index; |
|---|
| 9 | + private int recommendedSize = -1; |
|---|
| 26 | 10 | |
|---|
| 27 | | - public void setRecommendedSize(int recommendedSize) { |
|---|
| 28 | | - this.recommendedSize = recommendedSize; |
|---|
| 29 | | - } |
|---|
| 30 | | - |
|---|
| 31 | | - void setName(String name) |
|---|
| 32 | | - { |
|---|
| 33 | | - this.name=name; |
|---|
| 34 | | - } |
|---|
| 11 | + public Field(String name, Class type) |
|---|
| 12 | + { |
|---|
| 13 | + this.name = name; |
|---|
| 14 | + this.type = type; |
|---|
| 15 | + } |
|---|
| 35 | 16 | |
|---|
| 36 | | - public String getName() |
|---|
| 37 | | - { |
|---|
| 38 | | - return name; |
|---|
| 39 | | - } |
|---|
| 40 | | - |
|---|
| 41 | | - public Class getType() |
|---|
| 42 | | - { |
|---|
| 43 | | - return type; |
|---|
| 44 | | - } |
|---|
| 17 | + public Field(String name, Class type, int recommendedSize) |
|---|
| 18 | + { |
|---|
| 19 | + this.name = name; |
|---|
| 20 | + this.type = type; |
|---|
| 21 | + this.recommendedSize = recommendedSize; |
|---|
| 22 | + } |
|---|
| 45 | 23 | |
|---|
| 46 | | - public String toString() |
|---|
| 47 | | - { |
|---|
| 48 | | - return "[Field: name='"+name+"', type="+type+", index="+index+"]"; |
|---|
| 49 | | - } |
|---|
| 24 | + public int getRecommendedSize() |
|---|
| 25 | + { |
|---|
| 26 | + return recommendedSize; |
|---|
| 27 | + } |
|---|
| 28 | + |
|---|
| 29 | + public void setRecommendedSize(int recommendedSize) |
|---|
| 30 | + { |
|---|
| 31 | + this.recommendedSize = recommendedSize; |
|---|
| 32 | + } |
|---|
| 33 | + |
|---|
| 34 | + void setName(String name) |
|---|
| 35 | + { |
|---|
| 36 | + this.name = name; |
|---|
| 37 | + } |
|---|
| 38 | + |
|---|
| 39 | + public String getName() |
|---|
| 40 | + { |
|---|
| 41 | + return name; |
|---|
| 42 | + } |
|---|
| 43 | + |
|---|
| 44 | + public Class getType() |
|---|
| 45 | + { |
|---|
| 46 | + return type; |
|---|
| 47 | + } |
|---|
| 48 | + |
|---|
| 49 | + public String toString() |
|---|
| 50 | + { |
|---|
| 51 | + return "[Field: name='" + name + "', type=" + type + ", index=" + index + "]"; |
|---|
| 52 | + } |
|---|
| 50 | 53 | } |
|---|