customerbean.java

来自「一个java 代码生成器」· Java 代码 · 共 139 行

JAVA
139
字号
package com.entity.cmp;import javax.ejb.CreateException;import javax.ejb.EntityBean;import javax.ejb.EntityContext;import javax.ejb.FinderException;import java.math.BigDecimal;import java.math.*;import java.sql.*;/** * This is the CustomerBean Entity Bean class. * 2.x * @Author: Siddhartha P. Chandurkar * @version 1.0 * */public abstract class CustomerBean implements EntityBean{		//ATTRIBUTES	private transient EntityContext context;	//CONSTRUCTORS	/**	 * The Default Constructor	 */	public CustomerBean(){	}      		//Get Methods		public abstract Integer getCustId() ;		public abstract String getFirstName() ;		public abstract String getLastName() ;		//Set methods      	public abstract void setCustId(Integer _custId);		public abstract void setFirstName(String _firstName);		public abstract void setLastName(String _lastName);		     /**      *      */	     /**      *      */		public java.lang.Integer ejbCreate(Integer custId, String firstName, String lastName)throws CreateException{				setCustId(custId);				setFirstName(firstName);				setLastName(lastName);				return custId;	}	    /**     *     */	public void ejbPostCreate(Integer _custId, String _firstName, String _lastName){}    /**     *      */    public void setEntityContext(EntityContext context){        this.context = context;    }    /**     *      */    public void unsetEntityContext(){        context = null;    }    /**     *      */    public void ejbActivate() {    }    /**     *      */    public void ejbPassivate() {    }    /**     *      */    public void ejbLoad() {    }    /**     *      */    public void ejbStore() {    }    /**     *      */    public void ejbRemove() {    }    	/**	 * Write your manual code between these tags. They will be retained if code is 	 * regenerated.	 * IMPORTANT !!! Please do not remove these tags even if you dont add any manual code	 */	//<manual-code>			//</manual-code>	  }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?