001package org.kuali.ole.batch.bo; 002 003import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 004 005/** 006 * Created with IntelliJ IDEA. 007 * User: adityas 008 * Date: 7/6/13 009 * Time: 4:38 PM 010 * To change this template use File | Settings | File Templates. 011 */ 012public class OLEBatchProcessProfileConstantsBo extends PersistableBusinessObjectBase { 013 014 private String oleBatchProcessProfileConstantsId; 015 private String attributeName; 016 private String dataType; 017 private String attributeNameText; 018 private String attributeValue; 019 private String attributeValueText; 020 private String oldAttributeName; 021 022 /*public boolean isDefaultValue() { 023 return defaultValue; 024 } 025 026 public void setDefaultValue(boolean defaultValue) { 027 this.defaultValue = defaultValue; 028 } 029 030 private boolean defaultValue;*/ 031 private String defaultValue; 032 private String batchProcessProfileId; 033 private OLEBatchProcessProfileBo oleBatchProcessProfileBo; 034 035 public String getOleBatchProcessProfileConstantsId() { 036 return oleBatchProcessProfileConstantsId; 037 } 038 039 public void setOleBatchProcessProfileConstantsId(String oleBatchProcessProfileConstantsId) { 040 this.oleBatchProcessProfileConstantsId = oleBatchProcessProfileConstantsId; 041 } 042 043 public String getBatchProcessProfileId() { 044 return batchProcessProfileId; 045 } 046 047 public void setBatchProcessProfileId(String batchProcessProfileId) { 048 this.batchProcessProfileId = batchProcessProfileId; 049 } 050 051 public OLEBatchProcessProfileBo getOleBatchProcessProfileBo() { 052 return oleBatchProcessProfileBo; 053 } 054 055 public void setOleBatchProcessProfileBo(OLEBatchProcessProfileBo oleBatchProcessProfileBo) { 056 this.oleBatchProcessProfileBo = oleBatchProcessProfileBo; 057 } 058 059 public String getAttributeName() { 060 if(attributeName==null || attributeName.isEmpty()) 061 { 062 if(attributeNameText!=null && !attributeNameText.isEmpty()){ 063 return attributeNameText; 064 } 065 } 066 return attributeName; 067 } 068 069 public void setAttributeName(String attributeName) { 070 this.attributeName = attributeName; 071 } 072 073 public String getAttributeValue() { 074 if(attributeValue==null || attributeValue.isEmpty()) 075 { 076 if(attributeValueText!=null && !attributeValueText.isEmpty()){ 077 return attributeValueText; 078 } 079 } 080 return attributeValue; 081 } 082 083 public void setAttributeValue(String attributeValue) { 084 this.attributeValue = attributeValue; 085 } 086 087 public String getAttributeNameText() { 088 return attributeNameText; 089 } 090 091 public void setAttributeNameText(String attributeNameText) { 092 this.attributeNameText = attributeNameText; 093 094 if(attributeName==null || attributeName.isEmpty()) 095 { 096 if(attributeNameText!=null && !attributeNameText.isEmpty()){ 097 this.attributeName= attributeNameText; 098 } 099 } 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}