1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.sys.web.dddumper;
17
18 public class DataDictionaryDumperDocumentRow implements Comparable<DataDictionaryDumperDocumentRow> {
19
20 private String name;
21 private String fieldName;
22 private String column;
23 private int columnNo;
24 private boolean required;
25 private String fieldType;
26 private String defaultValue;
27 private boolean readOnly;
28 private String validationRules;
29 private String maxLength;
30 private boolean existenceCheck;
31 private boolean lookupParam;
32 private boolean lookupResult;
33 private boolean onInquiry;
34 private String controlDefinition;
35 private String fieldSecurity;
36
37 public int sortColumnValue(int colNo){
38 if (colNo==0) return 10000;
39 return colNo;
40 }
41
42
43
44
45 public int compareTo(DataDictionaryDumperDocumentRow other){
46 int tmpVal = new Integer(sortColumnValue(this.getColumnNo())).compareTo(sortColumnValue(other.getColumnNo()));
47 if (tmpVal !=0) {
48 return tmpVal;
49 }else{
50 return (this.getName()+this.getClass().getName()+this.getFieldName()+this.getFieldType()).compareTo(other.getName()+other.getClass().getName()+other.getFieldName()+other.getFieldType());
51 }
52 }
53
54 public String getName() {
55 return this.name;
56 }
57 public void setName(String name) {
58 this.name = name;
59 }
60
61 public String getFieldName() {
62 return fieldName;
63 }
64 public void setFieldName(String fieldName) {
65 this.fieldName = fieldName;
66 }
67 public String getColumn() {
68 return this.column;
69 }
70 public void setColumn(String column) {
71 this.column = column;
72 }
73
74 public int getColumnNo() {
75 return columnNo;
76 }
77 public void setColumnNo(int columnNo) {
78 this.columnNo = columnNo;
79 }
80 public boolean isRequired() {
81 return this.required;
82 }
83 public void setRequired(boolean required) {
84 this.required = required;
85 }
86 public String getFieldType() {
87 return this.fieldType;
88 }
89 public void setFieldType(String fieldType) {
90 this.fieldType = fieldType;
91 }
92 public String getDefaultValue() {
93 return this.defaultValue;
94 }
95 public void setDefaultValue(String defaultValue) {
96 this.defaultValue = defaultValue;
97 }
98 public boolean isReadOnly() {
99 return this.readOnly;
100 }
101 public void setReadOnly(boolean readOnly) {
102 this.readOnly = readOnly;
103 }
104 public String getValidationRules() {
105 return this.validationRules;
106 }
107 public void setValidationRules(String validationRules) {
108 this.validationRules = validationRules;
109 }
110 public String getMaxLength() {
111 return this.maxLength;
112 }
113 public void setMaxLength(String maxLength) {
114 this.maxLength = maxLength;
115 }
116 public boolean isExistenceCheck() {
117 return this.existenceCheck;
118 }
119 public void setExistenceCheck(boolean existenceCheck) {
120 this.existenceCheck = existenceCheck;
121 }
122 public boolean isLookupParam() {
123 return this.lookupParam;
124 }
125 public void setLookupParam(boolean lookupParam) {
126 this.lookupParam = lookupParam;
127 }
128 public boolean isLookupResult() {
129 return this.lookupResult;
130 }
131 public void setLookupResult(boolean lookupResult) {
132 this.lookupResult = lookupResult;
133 }
134 public boolean isOnInquiry() {
135 return this.onInquiry;
136 }
137 public void setOnInquiry(boolean onInquiry) {
138 this.onInquiry = onInquiry;
139 }
140
141 public String getControlDefinition() {
142 return controlDefinition;
143 }
144
145 public void setControlDefinition(String controlDefinition) {
146 this.controlDefinition = controlDefinition;
147 }
148
149 public String getFieldSecurity() {
150 return fieldSecurity;
151 }
152
153 public void setFieldSecurity(String fieldSecurity) {
154 this.fieldSecurity = fieldSecurity;
155 }
156
157
158 }