ws-sandesha-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mckie...@apache.org
Subject svn commit: r736597 - /webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/beans/SenderBean.java
Date Thu, 22 Jan 2009 09:39:34 GMT
Author: mckierna
Date: Thu Jan 22 01:39:34 2009
New Revision: 736597

URL: http://svn.apache.org/viewvc?rev=736597&view=rev
Log:
Clone constructor to bring SenderBean into line with RMSBean etc

Modified:
    webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/beans/SenderBean.java

Modified: webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/beans/SenderBean.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/beans/SenderBean.java?rev=736597&r1=736596&r2=736597&view=diff
==============================================================================
--- webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/beans/SenderBean.java
(original)
+++ webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/beans/SenderBean.java
Thu Jan 22 01:39:34 2009
@@ -151,6 +151,30 @@
 		this.setInternalSequenceID(internalSequenceID);
 		this.setMessageNumber(messageNumber);
 	}
+	
+	/**
+	 * Constructor that copies all SenderBean values from the SenderBean supplied
+	 * @param beanToCopy
+	 */	
+	public SenderBean(SenderBean beanToCopy)
+	{
+		this.messageID = beanToCopy.getMessageID();
+		this.messageContextRefKey = beanToCopy.getMessageContextRefKey();
+		this.internalSequenceID = beanToCopy.getInternalSequenceID();
+		this.sequenceID = beanToCopy.getSequenceID();
+		this.toAddress = beanToCopy.getToAddress();
+		this.inboundSequenceId = beanToCopy.getInboundSequenceId();
+		this.send = beanToCopy.isSend();
+		this.sentCount = beanToCopy.getSentCount();
+		this.messageNumber = beanToCopy.getMessageNumber();
+		this.reSend = beanToCopy.isReSend();
+		this.timeToSend = beanToCopy.getTimeToSend();
+		this.messageType = beanToCopy.getMessageType();
+		this.lastMessage = beanToCopy.isLastMessage();
+		this.inboundMessageNumber = beanToCopy.getInboundMessageNumber();
+		this.transportAvailable = beanToCopy.isTransportAvailable();
+		this.flags = beanToCopy.flags;
+	}
 
 	public String getMessageContextRefKey() {
 		return messageContextRefKey;



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Mime
View raw message