001: package com.rift.coad.daemon.messageservice.db;
002:
003: // Generated Feb 19, 2007 7:55:38 AM by Hibernate Tools 3.2.0.beta6a
004:
005: import java.sql.Timestamp;
006: import java.util.HashSet;
007: import java.util.Set;
008:
009: /**
010: * Message generated by hbm2java
011: */
012: public class Message implements java.io.Serializable {
013:
014: // Fields
015:
016: private String id;
017: private String messageCreator;
018: private String sessionId;
019: private int messageType;
020: private int messageRoutingType;
021: private int priority;
022: private String target;
023: private int reply;
024: private String fromUrl;
025: private String replyUrl;
026: private String targetNamedQueue;
027: private String replyNamedQueue;
028: private String correlationId;
029: private int acknowledged;
030: private int messageState;
031: private Timestamp created;
032: private int retries;
033: private Timestamp processed;
034: private Timestamp nextProcess;
035: private Set<MessageError> messageErrors = new HashSet<MessageError>(
036: 0);
037: private Set<MessageService> messageServices = new HashSet<MessageService>(
038: 0);
039: private MessageRpcBody messageRpcBody;
040: private MessageTxtBody messageTxtBody;
041: private Set<MessagePrincipal> messagePrincipals = new HashSet<MessagePrincipal>(
042: 0);
043: private Set<MessageProperty> messageProperties = new HashSet<MessageProperty>(
044: 0);
045: private MessageQueue messageQueue;
046:
047: // Constructors
048:
049: /** default constructor */
050: public Message() {
051: }
052:
053: /** minimal constructor */
054: public Message(String id, String messageCreator, String sessionId,
055: int messageType, int messageRoutingType, int priority,
056: int reply, String fromUrl, int acknowledged,
057: int messageState, int retries) {
058: this .id = id;
059: this .messageCreator = messageCreator;
060: this .sessionId = sessionId;
061: this .messageType = messageType;
062: this .messageRoutingType = messageRoutingType;
063: this .priority = priority;
064: this .reply = reply;
065: this .fromUrl = fromUrl;
066: this .acknowledged = acknowledged;
067: this .messageState = messageState;
068: this .retries = retries;
069: }
070:
071: /** full constructor */
072: public Message(String id, String messageCreator, String sessionId,
073: int messageType, int messageRoutingType, int priority,
074: String target, int reply, String fromUrl, String replyUrl,
075: String targetNamedQueue, String replyNamedQueue,
076: String correlationId, int acknowledged, int messageState,
077: Timestamp created, int retries, Timestamp processed,
078: Timestamp nextProcess, Set<MessageError> messageErrors,
079: Set<MessageService> messageServices,
080: MessageRpcBody messageRpcBody,
081: MessageTxtBody messageTxtBody,
082: Set<MessagePrincipal> messagePrincipals,
083: Set<MessageProperty> messageProperties,
084: MessageQueue messageQueue) {
085: this .id = id;
086: this .messageCreator = messageCreator;
087: this .sessionId = sessionId;
088: this .messageType = messageType;
089: this .messageRoutingType = messageRoutingType;
090: this .priority = priority;
091: this .target = target;
092: this .reply = reply;
093: this .fromUrl = fromUrl;
094: this .replyUrl = replyUrl;
095: this .targetNamedQueue = targetNamedQueue;
096: this .replyNamedQueue = replyNamedQueue;
097: this .correlationId = correlationId;
098: this .acknowledged = acknowledged;
099: this .messageState = messageState;
100: this .created = created;
101: this .retries = retries;
102: this .processed = processed;
103: this .nextProcess = nextProcess;
104: this .messageErrors = messageErrors;
105: this .messageServices = messageServices;
106: this .messageRpcBody = messageRpcBody;
107: this .messageTxtBody = messageTxtBody;
108: this .messagePrincipals = messagePrincipals;
109: this .messageProperties = messageProperties;
110: this .messageQueue = messageQueue;
111: }
112:
113: // Property accessors
114: public String getId() {
115: return this .id;
116: }
117:
118: public void setId(String id) {
119: this .id = id;
120: }
121:
122: public String getMessageCreator() {
123: return this .messageCreator;
124: }
125:
126: public void setMessageCreator(String messageCreator) {
127: this .messageCreator = messageCreator;
128: }
129:
130: public String getSessionId() {
131: return this .sessionId;
132: }
133:
134: public void setSessionId(String sessionId) {
135: this .sessionId = sessionId;
136: }
137:
138: public int getMessageType() {
139: return this .messageType;
140: }
141:
142: public void setMessageType(int messageType) {
143: this .messageType = messageType;
144: }
145:
146: public int getMessageRoutingType() {
147: return this .messageRoutingType;
148: }
149:
150: public void setMessageRoutingType(int messageRoutingType) {
151: this .messageRoutingType = messageRoutingType;
152: }
153:
154: public int getPriority() {
155: return this .priority;
156: }
157:
158: public void setPriority(int priority) {
159: this .priority = priority;
160: }
161:
162: public String getTarget() {
163: return this .target;
164: }
165:
166: public void setTarget(String target) {
167: this .target = target;
168: }
169:
170: public int getReply() {
171: return this .reply;
172: }
173:
174: public void setReply(int reply) {
175: this .reply = reply;
176: }
177:
178: public String getFromUrl() {
179: return this .fromUrl;
180: }
181:
182: public void setFromUrl(String fromUrl) {
183: this .fromUrl = fromUrl;
184: }
185:
186: public String getReplyUrl() {
187: return this .replyUrl;
188: }
189:
190: public void setReplyUrl(String replyUrl) {
191: this .replyUrl = replyUrl;
192: }
193:
194: public String getTargetNamedQueue() {
195: return this .targetNamedQueue;
196: }
197:
198: public void setTargetNamedQueue(String targetNamedQueue) {
199: this .targetNamedQueue = targetNamedQueue;
200: }
201:
202: public String getReplyNamedQueue() {
203: return this .replyNamedQueue;
204: }
205:
206: public void setReplyNamedQueue(String replyNamedQueue) {
207: this .replyNamedQueue = replyNamedQueue;
208: }
209:
210: public String getCorrelationId() {
211: return this .correlationId;
212: }
213:
214: public void setCorrelationId(String correlationId) {
215: this .correlationId = correlationId;
216: }
217:
218: public int getAcknowledged() {
219: return this .acknowledged;
220: }
221:
222: public void setAcknowledged(int acknowledged) {
223: this .acknowledged = acknowledged;
224: }
225:
226: public int getMessageState() {
227: return this .messageState;
228: }
229:
230: public void setMessageState(int messageState) {
231: this .messageState = messageState;
232: }
233:
234: public Timestamp getCreated() {
235: return this .created;
236: }
237:
238: public void setCreated(Timestamp created) {
239: this .created = created;
240: }
241:
242: public int getRetries() {
243: return this .retries;
244: }
245:
246: public void setRetries(int retries) {
247: this .retries = retries;
248: }
249:
250: public Timestamp getProcessed() {
251: return this .processed;
252: }
253:
254: public void setProcessed(Timestamp processed) {
255: this .processed = processed;
256: }
257:
258: public Timestamp getNextProcess() {
259: return this .nextProcess;
260: }
261:
262: public void setNextProcess(Timestamp nextProcess) {
263: this .nextProcess = nextProcess;
264: }
265:
266: public Set<MessageError> getMessageErrors() {
267: return this .messageErrors;
268: }
269:
270: public void setMessageErrors(Set<MessageError> messageErrors) {
271: this .messageErrors = messageErrors;
272: }
273:
274: public Set<MessageService> getMessageServices() {
275: return this .messageServices;
276: }
277:
278: public void setMessageServices(Set<MessageService> messageServices) {
279: this .messageServices = messageServices;
280: }
281:
282: public MessageRpcBody getMessageRpcBody() {
283: return this .messageRpcBody;
284: }
285:
286: public void setMessageRpcBody(MessageRpcBody messageRpcBody) {
287: this .messageRpcBody = messageRpcBody;
288: }
289:
290: public MessageTxtBody getMessageTxtBody() {
291: return this .messageTxtBody;
292: }
293:
294: public void setMessageTxtBody(MessageTxtBody messageTxtBody) {
295: this .messageTxtBody = messageTxtBody;
296: }
297:
298: public Set<MessagePrincipal> getMessagePrincipals() {
299: return this .messagePrincipals;
300: }
301:
302: public void setMessagePrincipals(
303: Set<MessagePrincipal> messagePrincipals) {
304: this .messagePrincipals = messagePrincipals;
305: }
306:
307: public Set<MessageProperty> getMessageProperties() {
308: return this .messageProperties;
309: }
310:
311: public void setMessageProperties(
312: Set<MessageProperty> messageProperties) {
313: this .messageProperties = messageProperties;
314: }
315:
316: public MessageQueue getMessageQueue() {
317: return this .messageQueue;
318: }
319:
320: public void setMessageQueue(MessageQueue messageQueue) {
321: this.messageQueue = messageQueue;
322: }
323:
324: }
|