chargecodebean.java
来自「考勤管理系统源码」· Java 代码 · 共 50 行
JAVA
50 行
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 ChargeCode bean holds descriptive information about a billable charge code.
* Since each ChargeCode is part of a larger project, the parent project can be
* accessed from the charge code.
* ChargeCodeBean is the actual entity bean implementation.
*/
public abstract class ChargeCodeBean extends BasicEntityBean implements ChargeCodeInt
{
/** 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 ProjectLocal getProject();
public abstract void setProject(ProjectLocal project);
public ChargeCodeBean()
{
}
/** Create an ChargeCodeBean with the specified parameters. This is never called directly. */
public ChargeCodePK ejbCreate(long id, String name, String description,
ProjectLocal project) 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,
ProjectLocal project)
{
setProject(project);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?