⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 posonerdao.java

📁 jsf+ejb3+mysql的开发实例
💻 JAVA
字号:
/**********************************************************************************
 * @description: 
 * 			this interface have defined sevral business methods are to implement
 * ,can be accessed from remote by client. 
 * @author topquan
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 **********************************************************************************/
package com.poson.ejb3.sb;

import java.io.Serializable;
import java.util.List;

import javax.ejb.Remote;

import com.poson.ejb3.entity.Posoner;

@Remote
public interface PosonerDao extends Serializable {
	/**
	 * add a posoner
	 * 
	 * @param posoner
	 */
	public boolean addPosoner(Posoner posoner);
	/**
	 * get all Posoners from the database
	 * @return
	 */
	public List getAllPosoners();
	/**
	 * get one Posoner according to PK from the database
	 * @param id
	 * @return
	 */
	public Posoner getPosonerById(Long id);
	/**
	 * get one Posoner according to name from the database
	 * @param name
	 * @return
	 */
	public Posoner getPosonerByName(String name);
	/**
	 * after edit,update one Posoner to the database
	 * @param posoner
	 * @return
	 */
	public boolean updatePosoner(Posoner posoner);
	/**
	 * delete one Posoner from database by PK
	 * @param id
	 * @return
	 */
	public boolean removePosoner(Long id);

}

⌨️ 快捷键说明

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