AttendeeBean.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:
Java编程
开发平台:
Java
- package com.borland.training.meetings.entities;
- import javax.ejb.*;
- public abstract class AttendeeBean implements EntityBean {
- EntityContext entityContext;
- public java.lang.Long ejbCreate(java.lang.String name, java.lang.String title, java.lang.String position, java.lang.String phone, java.lang.String email) throws CreateException {
- setId(new Long(IdGeneratorFactory.getInstance().getGenerator().generateId()));
- setName(name);
- setTitle(title);
- setPosition(position);
- setPhone(phone);
- setPhone(phone);
- setEmail(email);
- return null;
- }
- public void ejbPostCreate(java.lang.String name, java.lang.String title, java.lang.String position, java.lang.String phone, java.lang.String email) throws CreateException {
- }
- public void ejbRemove() throws RemoveException {
- }
- public abstract void setId(java.lang.Long id);
- public abstract void setName(java.lang.String name);
- public abstract void setTitle(java.lang.String title);
- public abstract void setPosition(java.lang.String position);
- public abstract java.lang.String getPosition();
- public abstract void setMeetings(java.util.Collection meetings);
- public abstract void setPhone(java.lang.String phone);
- public abstract void setEmail(java.lang.String email);
- public abstract java.lang.String getEmail();
- public abstract java.lang.String getPhone();
- public abstract java.util.Collection getMeetings();
- public abstract java.lang.String getTitle();
- public abstract java.lang.String getName();
- 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;
- }
- }