projectbean.java
来自「考勤管理系统源码」· Java 代码 · 共 51 行
JAVA
51 行
package com.wiley.compBooks.EJwithUML.TimeCardDomain;
import com.wiley.compBooks.EJwithUML.Base.EjbUtil.*;
import java.util.*;
import java.rmi.*;
import javax.ejb.*;
import javax.naming.*;
/**
* The Project bean holds descriptive information about a project.
* ProjectBean is the actual entity bean implementation.
*/
public abstract class ProjectBean extends BasicEntityBean implements ProjectInt
{
/** CMP fields */
public abstract long getId();
public abstract void setId(long id);
public abstract String getName();
public abstract void setName(String name);
public abstract String getDescription();
public abstract void setDescription(String desc);
/** CMR fields*/
public abstract ClientLocal getClient();
public abstract void setClient(ClientLocal client);
public abstract Collection getChargeCodes();
public abstract void setChargeCodes(Collection chargeCodes);
public ProjectBean()
{
}
/** Create an ProjectBean with the specified parameters. This is never called directly. */
public ProjectPK ejbCreate(long id, String name, String description,
ClientLocal client) throws CreateException
{
setId(id);
setName(name);
setDescription(description);
return null;
}
/** Actions performed after creation. This is never called directly. */
public void ejbPostCreate(long id, String name, String description,
ClientLocal client) throws CreateException
{
setClient(client);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?