Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2012 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.kuali.rice.ksb.messaging;
Holds message payload content. Needed to proxy the content so we don't have to take the hit when grabbing large amounts of persisted messages at time.

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
@Table(name="KRSB_MSG_PYLD_T")
public class PersistedMessagePayload implements Serializable {
    
    private static final long serialVersionUID = 508778527504899029L;
    
    @Id
	@Column(name="MSG_QUE_ID")
	private Long routeQueueId;
    @Lob
	@Column(name="MSG_PYLD", length=4000)
	private String payload;
    @Transient
    private AsynchronousCall methodCall;
    @Transient
    private PersistedMessageBO message;
    
    public PersistedMessagePayload() {}
    
    public PersistedMessagePayload (AsynchronousCall methodCallPersistedMessageBO message) {
	this.setPayload(SerializationUtils.serializeToBase64(methodCall));
	this. = methodCall;
	this. = message;
    }
    
    public String getPayload() {
        return this.;
    }
    public void setPayload(String payload) {
        this. = payload;
    }
    public Long getRouteQueueId() {
        return this.;
    }
    public void setRouteQueueId(Long routeQueueId) {
        this. = routeQueueId;
    }
    public AsynchronousCall getMethodCall() {
	if (this. != null) {
	    return this.;
	return this.;
    }
    public PersistedMessageBO getMessage() {
        return this.;
    }
    public void setMessage(PersistedMessageBO message) {
        this. = message;
    }
    public void setMethodCall(AsynchronousCall methodCall) {
        this. = methodCall;
    }
    
New to GrepCode? Check out our FAQ X