MailBean.java 3.8 KB
Newer Older
TongZuu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
package com.csc.library.entity;

import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;

/**
 * <p>Title: Your Product Name</p>
 * <p>Description: Your description</p>
 * <p>Copyright: Copyright (c) 1999</p>
 * <p>Company: Your Company</p>
 * @author Your Name
 */
public class MailBean implements EntityBean {
	private static final long	serialVersionUID	= 1L;
	EntityContext				entityContext;
	public String				mailID;
	public String				mTo;
	public String				mFrom;
	public String				cc;
	public String				attach;
	public String				subject;
	public String				body;
	public Integer				priority;
	public String				timeSent;
	public String				timeSet;
	public String				timeSave;
	public String				status;
	public String				service;

	public String ejbCreate(String mailID, String mTo, String mFrom, String cc, String attach, String subject, String body, Integer priority, String timeSent, String timeSet, String timeSave, String status, String service) throws CreateException {
		this.mailID = mailID;
		this.mTo = mTo;
		this.mFrom = mFrom;
		this.cc = cc;
		this.attach = attach;
		this.subject = subject;
		this.body = body;
		this.priority = priority;
		this.timeSent = timeSent;
		this.timeSet = timeSet;
		this.timeSave = timeSave;
		this.status = status;
		this.service = service;
		return null;
	}
	public String ejbCreate(String mailID) throws CreateException {
		return ejbCreate(mailID, null, null, null, null, null, null, null, null, null, null, null, null);
	}
	public void ejbPostCreate(String mailID, String mTo, String mFrom, String cc, String attach, String subject, String body, Integer priority, String timeSent, String timeSet, String timeSave, String status, String service) throws CreateException {
	}
	public void ejbPostCreate(String mailID) throws CreateException {
		ejbPostCreate(mailID, null, null, null, null, null, null, null, null, null, null, null, null);
	}
	public void ejbLoad() {
	}
	public void ejbStore() {
	}
	public void ejbRemove() throws RemoveException {
	}
	public void ejbActivate() {
	}
	public void ejbPassivate() {
	}
	public void setEntityContext(EntityContext entityContext) {
		this.entityContext = entityContext;
	}
	public void unsetEntityContext() {
		entityContext = null;
	}
	public String getMailID() {
		return mailID;
	}
	public String getMTo() {
		return mTo;
	}
	public void setMTo(String mTo) {
		this.mTo = mTo;
	}
	public String getMFrom() {
		return mFrom;
	}
	public void setMFrom(String mFrom) {
		this.mFrom = mFrom;
	}
	public String getCc() {
		return cc;
	}
	public void setCc(String cc) {
		this.cc = cc;
	}
	public String getAttach() {
		return attach;
	}
	public void setAttach(String attach) {
		this.attach = attach;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public Integer getPriority() {
		return priority;
	}
	public void setPriority(Integer priority) {
		this.priority = priority;
	}
	public String getTimeSent() {
		return timeSent;
	}
	public void setTimeSent(String timeSent) {
		this.timeSent = timeSent;
	}
	public String getTimeSet() {
		return timeSet;
	}
	public void setTimeSet(String timeSet) {
		this.timeSet = timeSet;
	}
	public String getTimeSave() {
		return timeSave;
	}
	public void setTimeSave(String timeSave) {
		this.timeSave = timeSave;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getService() {
		return service;
	}
	public void setService(String service) {
		this.service = service;
	}
}