MeetingBean.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:
Java编程
开发平台:
Java
- package com.borland.training.meetings.entities;
- import javax.ejb.*;
- import java.util.Collection;
- abstract public class MeetingBean implements EntityBean {
- EntityContext entityContext;
- public java.lang.Long ejbCreate(java.lang.String topic, java.util.Date startTime, java.util.Date finishTime) throws CreateException {
- setId(new Long(IdGeneratorFactory.getInstance().getGenerator().generateId()));
- setTopic(topic);
- setStartTime(startTime);
- setFinishTime(finishTime);
- return null;
- }
- public void ejbPostCreate(java.lang.String topic, java.util.Date startTime, java.util.Date finishTime) throws CreateException {
- }
- public void ejbRemove() throws RemoveException {
- }
- public abstract void setId(java.lang.Long id);
- public abstract void setTopic(java.lang.String topic);
- public abstract void setStartTime(java.util.Date startTime);
- public abstract void setFinishTime(java.util.Date finishTime);
- public abstract void setRoom(com.borland.training.meetings.entities.Room room);
- public abstract void setAttendees(java.util.Collection attendees);
- public abstract java.util.Collection getAttendees();
- public abstract com.borland.training.meetings.entities.Room getRoom();
- public abstract java.util.Date getFinishTime();
- public abstract java.util.Date getStartTime();
- public abstract java.lang.String getTopic();
- public abstract java.lang.Long getId();
- public void ejbLoad() {
- }
- public void ejbStore() {
- }
- public void ejbActivate() {
- }
- public void ejbPassivate() {
- }
- public void unsetEntityContext() {
- this.entityContext = null;
- }
- public void setEntityContext(EntityContext entityContext) {
- this.entityContext = entityContext;
- }
- }