📄 projectbean.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -