package com.pgf.mqspring.model; import java.io.Serializable; public class MqcihRequestModel implements Serializable { /** MQCIH */ private String strucId; private String version; private String strucLength; private String format; private String returnCode; private String compCode; private String reason; private String uowControl; private String getWaitInterval; private String linkType; private String outputDataLength; private String facilityKeepTime; private String adsDescriptor; private String conversationalTask; private String taskEndStatus; private String facility; private String function; private String abendCode; private String autherticator; private String replyToFormat; private String transactionId; private String facilityLike; private String attentionId; private String startCode; private String cancelCode; private String nextTransactionCode; private String cursorPositon; private String errorOffset; public MqcihRequestModel() { } public MqcihRequestModel(String strucId, String version, String strucLength, String format, String returnCode, String compCode, String reason, String uowControl, String getWaitInterval, String linkType, String outputDataLength, String facilityKeepTime, String adsDescriptor, String conversationalTask, String taskEndStatus, String facility, String function, String abendCode, String autherticator, String replyToFormat, String transactionId, String facilityLike, String attentionId, String startCode, String cancelCode, String nextTransactionCode, String cursorPositon, String errorOffset) { this.strucId = strucId; this.version = version; this.strucLength = strucLength; this.format = format; this.returnCode = returnCode; this.compCode = compCode; this.reason = reason; this.uowControl = uowControl; this.getWaitInterval = getWaitInterval; this.linkType = linkType; this.outputDataLength = outputDataLength; this.facilityKeepTime = facilityKeepTime; this.adsDescriptor = adsDescriptor; this.conversationalTask = conversationalTask; this.taskEndStatus = taskEndStatus; this.facility = facility; this.function = function; this.abendCode = abendCode; this.autherticator = autherticator; this.replyToFormat = replyToFormat; this.transactionId = transactionId; this.facilityLike = facilityLike; this.attentionId = attentionId; this.startCode = startCode; this.cancelCode = cancelCode; this.nextTransactionCode = nextTransactionCode; this.cursorPositon = cursorPositon; this.errorOffset = errorOffset; } public String getStrucId() { return (strucId == null) ? "" : strucId; } public void setStrucId(String strucId) { this.strucId = strucId; } public String getVersion() { return (version == null) ? "0" : version; } public void setVersion(String version) { this.version = version; } public String getStrucLength() { return (strucLength == null) ? "0" : strucLength; } public void setStrucLength(String strucLength) { this.strucLength = strucLength; } public String getFormat() { return (format == null) ? "" : format; } public void setFormat(String format) { this.format = format; } public String getReturnCode() { return (returnCode == null) ? "0" : returnCode; } public void setReturnCode(String returnCode) { this.returnCode = returnCode; } public String getCompCode() { return (compCode == null) ? "0" : compCode; } public void setCompCode(String compCode) { this.compCode = compCode; } public String getReason() { return (reason == null) ? "0" : reason; } public void setReason(String reason) { this.reason = reason; } public String getUowControl() { return (uowControl == null) ? "0" : uowControl; } public void setUowControl(String uowControl) { this.uowControl = uowControl; } public String getGetWaitInterval() { return (getWaitInterval == null) ? "0" : getWaitInterval; } public void setGetWaitInterval(String getWaitInterval) { this.getWaitInterval = getWaitInterval; } public String getLinkType() { return (linkType == null) ? "0" : linkType; } public void setLinkType(String linkType) { this.linkType = linkType; } public String getOutputDataLength() { return (outputDataLength == null) ? "0" : outputDataLength; } public void setOutputDataLength(String outputDataLength) { this.outputDataLength = outputDataLength; } public String getFacilityKeepTime() { return (facilityKeepTime == null) ? "0" : facilityKeepTime; } public void setFacilityKeepTime(String facilityKeepTime) { this.facilityKeepTime = facilityKeepTime; } public String getAdsDescriptor() { return (adsDescriptor == null) ? "0" : adsDescriptor; } public void setAdsDescriptor(String adsDescriptor) { this.adsDescriptor = adsDescriptor; } public String getConversationalTask() { return (conversationalTask == null) ? "0" : conversationalTask; } public void setConversationalTask(String conversationalTask) { this.conversationalTask = conversationalTask; } public String getTaskEndStatus() { return (taskEndStatus == null) ? "0" : taskEndStatus; } public void setTaskEndStatus(String taskEndStatus) { this.taskEndStatus = taskEndStatus; } public String getFacility() { return (facility == null) ? "" : facility; } public void setFacility(String facility) { this.facility = facility; } public String getFunction() { return (function == null) ? "" : function; } public void setFunction(String function) { this.function = function; } public String getAbendCode() { return (abendCode == null) ? "" : abendCode; } public void setAbendCode(String abendCode) { this.abendCode = abendCode; } public String getAutherticator() { return (autherticator == null) ? "" : autherticator; } public void setAutherticator(String autherticator) { this.autherticator = autherticator; } public String getReplyToFormat() { return (replyToFormat == null) ? "" : replyToFormat; } public void setReplyToFormat(String replyToFormat) { this.replyToFormat = replyToFormat; } public String getTransactionId() { return (transactionId == null) ? "" : transactionId; } public void setTransactionId(String transactionId) { this.transactionId = transactionId; } public String getFacilityLike() { return (facilityLike == null) ? "" : facilityLike; } public void setFacilityLike(String facilityLike) { this.facilityLike = facilityLike; } public String getAttentionId() { return (attentionId == null) ? "" : attentionId; } public void setAttentionId(String attentionId) { this.attentionId = attentionId; } public String getStartCode() { return (startCode == null) ? "" : startCode; } public void setStartCode(String startCode) { this.startCode = startCode; } public String getCancelCode() { return (cancelCode == null) ? "" : cancelCode; } public void setCancelCode(String cancelCode) { this.cancelCode = cancelCode; } public String getNextTransactionCode() { return (nextTransactionCode == null) ? "" : nextTransactionCode; } public void setNextTransactionCode(String nextTransactionCode) { this.nextTransactionCode = nextTransactionCode; } public String getCursorPositon() { return (cursorPositon == null) ? "0" : cursorPositon; } public void setCursorPositon(String cursorPositon) { this.cursorPositon = cursorPositon; } public String getErrorOffset() { return (errorOffset == null) ? "0" : errorOffset; } public void setErrorOffset(String errorOffset) { this.errorOffset = errorOffset; } @Override public String toString() { StringBuilder str = new StringBuilder(); str.append(getStrucId()); str.append(getVersion()); str.append(getStrucLength()); str.append(getFormat()); str.append(getReturnCode()); str.append(getCompCode()); str.append(getReason()); str.append(getUowControl()); str.append(getGetWaitInterval()); str.append(getLinkType()); str.append(getOutputDataLength()); str.append(getFacilityKeepTime()); str.append(getAdsDescriptor()); str.append(getConversationalTask()); str.append(getTaskEndStatus()); str.append(getFacility()); str.append(getFunction()); str.append(getAbendCode()); str.append(getAutherticator()); str.append(getReplyToFormat()); str.append(getTransactionId()); str.append(getFacilityLike()); str.append(getAttentionId()); str.append(getStartCode()); str.append(getCancelCode()); str.append(getNextTransactionCode()); str.append(getCursorPositon()); str.append(getErrorOffset()); return String.format("%s", str.toString()); } }