1 package com.rift.coad.daemon.messageservice.db; 2 4 5 import java.sql.Timestamp ; 6 import java.util.HashSet ; 7 import java.util.Set ; 8 9 12 public class Message implements java.io.Serializable { 13 14 16 private String id; 17 private String messageCreator; 18 private String sessionId; 19 private int messageType; 20 private int messageRoutingType; 21 private int priority; 22 private String target; 23 private int reply; 24 private String fromUrl; 25 private String replyUrl; 26 private String targetNamedQueue; 27 private String replyNamedQueue; 28 private String correlationId; 29 private int acknowledged; 30 private int messageState; 31 private Timestamp created; 32 private int retries; 33 private Timestamp processed; 34 private Timestamp nextProcess; 35 private Set <MessageError> messageErrors = new HashSet <MessageError>(0); 36 private Set <MessageService> messageServices = new HashSet <MessageService>(0); 37 private MessageRpcBody messageRpcBody; 38 private MessageTxtBody messageTxtBody; 39 private Set <MessagePrincipal> messagePrincipals = new HashSet <MessagePrincipal>(0); 40 private Set <MessageProperty> messageProperties = new HashSet <MessageProperty>(0); 41 private MessageQueue messageQueue; 42 43 45 46 public Message() { 47 } 48 49 50 public Message(String id, String messageCreator, String sessionId, int messageType, int messageRoutingType, int priority, int reply, String fromUrl, int acknowledged, int messageState, int retries) { 51 this.id = id; 52 this.messageCreator = messageCreator; 53 this.sessionId = sessionId; 54 this.messageType = messageType; 55 this.messageRoutingType = messageRoutingType; 56 this.priority = priority; 57 this.reply = reply; 58 this.fromUrl = fromUrl; 59 this.acknowledged = acknowledged; 60 this.messageState = messageState; 61 this.retries = retries; 62 } 63 64 public Message(String id, String messageCreator, String sessionId, int messageType, int messageRoutingType, int priority, String target, int reply, String fromUrl, String replyUrl, String targetNamedQueue, String replyNamedQueue, String correlationId, int acknowledged, int messageState, Timestamp created, int retries, Timestamp processed, Timestamp nextProcess, Set <MessageError> messageErrors, Set <MessageService> messageServices, MessageRpcBody messageRpcBody, MessageTxtBody messageTxtBody, Set <MessagePrincipal> messagePrincipals, Set <MessageProperty> messageProperties, MessageQueue messageQueue) { 65 this.id = id; 66 this.messageCreator = messageCreator; 67 this.sessionId = sessionId; 68 this.messageType = messageType; 69 this.messageRoutingType = messageRoutingType; 70 this.priority = priority; 71 this.target = target; 72 this.reply = reply; 73 this.fromUrl = fromUrl; 74 this.replyUrl = replyUrl; 75 this.targetNamedQueue = targetNamedQueue; 76 this.replyNamedQueue = replyNamedQueue; 77 this.correlationId = correlationId; 78 this.acknowledged = acknowledged; 79 this.messageState = messageState; 80 this.created = created; 81 this.retries = retries; 82 this.processed = processed; 83 this.nextProcess = nextProcess; 84 this.messageErrors = messageErrors; 85 this.messageServices = messageServices; 86 this.messageRpcBody = messageRpcBody; 87 this.messageTxtBody = messageTxtBody; 88 this.messagePrincipals = messagePrincipals; 89 this.messageProperties = messageProperties; 90 this.messageQueue = messageQueue; 91 } 92 93 94 public String getId() { 96 return this.id; 97 } 98 99 public void setId(String id) { 100 this.id = id; 101 } 102 public String getMessageCreator() { 103 return this.messageCreator; 104 } 105 106 public void setMessageCreator(String messageCreator) { 107 this.messageCreator = messageCreator; 108 } 109 public String getSessionId() { 110 return this.sessionId; 111 } 112 113 public void setSessionId(String sessionId) { 114 this.sessionId = sessionId; 115 } 116 public int getMessageType() { 117 return this.messageType; 118 } 119 120 public void setMessageType(int messageType) { 121 this.messageType = messageType; 122 } 123 public int getMessageRoutingType() { 124 return this.messageRoutingType; 125 } 126 127 public void setMessageRoutingType(int messageRoutingType) { 128 this.messageRoutingType = messageRoutingType; 129 } 130 public int getPriority() { 131 return this.priority; 132 } 133 134 public void setPriority(int priority) { 135 this.priority = priority; 136 } 137 public String getTarget() { 138 return this.target; 139 } 140 141 public void setTarget(String target) { 142 this.target = target; 143 } 144 public int getReply() { 145 return this.reply; 146 } 147 148 public void setReply(int reply) { 149 this.reply = reply; 150 } 151 public String getFromUrl() { 152 return this.fromUrl; 153 } 154 155 public void setFromUrl(String fromUrl) { 156 this.fromUrl = fromUrl; 157 } 158 public String getReplyUrl() { 159 return this.replyUrl; 160 } 161 162 public void setReplyUrl(String replyUrl) { 163 this.replyUrl = replyUrl; 164 } 165 public String getTargetNamedQueue() { 166 return this.targetNamedQueue; 167 } 168 169 public void setTargetNamedQueue(String targetNamedQueue) { 170 this.targetNamedQueue = targetNamedQueue; 171 } 172 public String getReplyNamedQueue() { 173 return this.replyNamedQueue; 174 } 175 176 public void setReplyNamedQueue(String replyNamedQueue) { 177 this.replyNamedQueue = replyNamedQueue; 178 } 179 public String getCorrelationId() { 180 return this.correlationId; 181 } 182 183 public void setCorrelationId(String correlationId) { 184 this.correlationId = correlationId; 185 } 186 public int getAcknowledged() { 187 return this.acknowledged; 188 } 189 190 public void setAcknowledged(int acknowledged) { 191 this.acknowledged = acknowledged; 192 } 193 public int getMessageState() { 194 return this.messageState; 195 } 196 197 public void setMessageState(int messageState) { 198 this.messageState = messageState; 199 } 200 public Timestamp getCreated() { 201 return this.created; 202 } 203 204 public void setCreated(Timestamp created) { 205 this.created = created; 206 } 207 public int getRetries() { 208 return this.retries; 209 } 210 211 public void setRetries(int retries) { 212 this.retries = retries; 213 } 214 public Timestamp getProcessed() { 215 return this.processed; 216 } 217 218 public void setProcessed(Timestamp processed) { 219 this.processed = processed; 220 } 221 public Timestamp getNextProcess() { 222 return this.nextProcess; 223 } 224 225 public void setNextProcess(Timestamp nextProcess) { 226 this.nextProcess = nextProcess; 227 } 228 public Set <MessageError> getMessageErrors() { 229 return this.messageErrors; 230 } 231 232 public void setMessageErrors(Set <MessageError> messageErrors) { 233 this.messageErrors = messageErrors; 234 } 235 public Set <MessageService> getMessageServices() { 236 return this.messageServices; 237 } 238 239 public void setMessageServices(Set <MessageService> messageServices) { 240 this.messageServices = messageServices; 241 } 242 public MessageRpcBody getMessageRpcBody() { 243 return this.messageRpcBody; 244 } 245 246 public void setMessageRpcBody(MessageRpcBody messageRpcBody) { 247 this.messageRpcBody = messageRpcBody; 248 } 249 public MessageTxtBody getMessageTxtBody() { 250 return this.messageTxtBody; 251 } 252 253 public void setMessageTxtBody(MessageTxtBody messageTxtBody) { 254 this.messageTxtBody = messageTxtBody; 255 } 256 public Set <MessagePrincipal> getMessagePrincipals() { 257 return this.messagePrincipals; 258 } 259 260 public void setMessagePrincipals(Set <MessagePrincipal> messagePrincipals) { 261 this.messagePrincipals = messagePrincipals; 262 } 263 public Set <MessageProperty> getMessageProperties() { 264 return this.messageProperties; 265 } 266 267 public void setMessageProperties(Set <MessageProperty> messageProperties) { 268 this.messageProperties = messageProperties; 269 } 270 public MessageQueue getMessageQueue() { 271 return this.messageQueue; 272 } 273 274 public void setMessageQueue(MessageQueue messageQueue) { 275 this.messageQueue = messageQueue; 276 } 277 278 279 280 281 } 282 283 284 | Popular Tags |