View Javadoc
1   package org.kuali.ole.batch.bo;
2   
3   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
4   
5   /**
6    * Created with IntelliJ IDEA.
7    * User: adityas
8    * Date: 7/6/13
9    * Time: 4:38 PM
10   * To change this template use File | Settings | File Templates.
11   */
12  public class OLEBatchProcessProfileConstantsBo extends PersistableBusinessObjectBase {
13  
14      private String oleBatchProcessProfileConstantsId;
15      private String attributeName;
16      private String dataType;
17      private String attributeNameText;
18      private String attributeValue;
19      private String attributeValueText;
20      private String oldAttributeName;
21  
22      /*public boolean isDefaultValue() {
23          return defaultValue;
24      }
25  
26      public void setDefaultValue(boolean defaultValue) {
27          this.defaultValue = defaultValue;
28      }
29  
30      private boolean defaultValue;*/
31      private String defaultValue;
32      private String batchProcessProfileId;
33      private OLEBatchProcessProfileBo oleBatchProcessProfileBo;
34  
35      public String getOleBatchProcessProfileConstantsId() {
36          return oleBatchProcessProfileConstantsId;
37      }
38  
39      public void setOleBatchProcessProfileConstantsId(String oleBatchProcessProfileConstantsId) {
40          this.oleBatchProcessProfileConstantsId = oleBatchProcessProfileConstantsId;
41      }
42  
43      public String getBatchProcessProfileId() {
44          return batchProcessProfileId;
45      }
46  
47      public void setBatchProcessProfileId(String batchProcessProfileId) {
48          this.batchProcessProfileId = batchProcessProfileId;
49      }
50  
51      public OLEBatchProcessProfileBo getOleBatchProcessProfileBo() {
52          return oleBatchProcessProfileBo;
53      }
54  
55      public void setOleBatchProcessProfileBo(OLEBatchProcessProfileBo oleBatchProcessProfileBo) {
56          this.oleBatchProcessProfileBo = oleBatchProcessProfileBo;
57      }
58  
59      public String getAttributeName() {
60          if(attributeName==null || attributeName.isEmpty())
61          {
62              if(attributeNameText!=null && !attributeNameText.isEmpty()){
63                  return attributeNameText;
64              }
65          }
66          return attributeName;
67      }
68  
69      public void setAttributeName(String attributeName) {
70          this.attributeName = attributeName;
71      }
72  
73      public String getAttributeValue() {
74          if(attributeValue==null || attributeValue.isEmpty())
75          {
76              if(attributeValueText!=null && !attributeValueText.isEmpty()){
77                  return attributeValueText;
78              }
79          }
80          return attributeValue;
81      }
82  
83      public void setAttributeValue(String attributeValue) {
84          this.attributeValue = attributeValue;
85      }
86  
87      public String getAttributeNameText() {
88          return attributeNameText;
89      }
90  
91      public void setAttributeNameText(String attributeNameText) {
92          this.attributeNameText = attributeNameText;
93  
94          if(attributeName==null || attributeName.isEmpty())
95          {
96              if(attributeNameText!=null && !attributeNameText.isEmpty()){
97                  this.attributeName= attributeNameText;
98              }
99          }
100 
101     }
102 
103     public String getDataType() {
104         return dataType;
105     }
106 
107     public void setDataType(String dataType) {
108         this.dataType = dataType;
109     }
110 
111     public String getDefaultValue() {
112         return defaultValue;
113     }
114 
115     public void setDefaultValue(String defaultValue) {
116         this.defaultValue = defaultValue;
117     }
118 
119     public String getAttributeValueText() {
120         return attributeValueText;
121     }
122 
123     public void setAttributeValueText(String attributeValueText) {
124         this.attributeValueText = attributeValueText;
125 
126         if(attributeValue==null || attributeValue.isEmpty())
127         {
128             if(attributeValueText!=null && !attributeValueText.isEmpty()){
129                 this.attributeValue= attributeValueText;
130             }
131         }
132     }
133 
134     public String getOldAttributeName() {
135         return oldAttributeName;
136     }
137 
138     public void setOldAttributeName(String oldAttributeName) {
139         this.oldAttributeName = oldAttributeName;
140     }
141 }