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

📄 userssession.java

📁 JAVA 经典案例 源代码 Part2.
💻 JAVA
字号:
/*
 * 
 * 开发时间:2004-08-20 at 05:40:07
 * 
 * 作者:曹广鑫
 * 
 * 网站:www.helpsoft.org  电子邮件:support@helpsoft.org
 */

package org.helpsoft.blog.j2ee.session;

import org.helpsoft.blog.factory.*;
import org.helpsoft.blog.dao.*;
import org.helpsoft.blog.dto.*;
import org.helpsoft.blog.exceptions.*;
import java.rmi.RemoteException;
import java.math.*;
import java.util.Date;
import javax.ejb.*;

public interface UsersSession extends EJBObject
{
	/** 
	 * Inserts a new row in the users table.
	 */
	public UsersPk insert(Users dto) throws UsersDaoException, RemoteException;

	/** 
	 * Updates a single row in the users table.
	 */
	public void update(UsersPk pk, Users dto) throws UsersDaoException, RemoteException;

	/** 
	 * Deletes a single row in the users table.
	 */
	public void delete(UsersPk pk) throws UsersDaoException, RemoteException;

	/** 
	 * Returns the rows from the users table that matches the specified primary-key value.
	 */
	public Users findByPrimaryKey(UsersPk pk) throws UsersDaoException, RemoteException;

	/**
	 * Method 'findAll'
	 * 
	 * @throws UsersDaoException
	 * @throws RemoteException
	 * @return Users[]
	 */
	public Users[] findAll() throws UsersDaoException, RemoteException;

	/**
	 * Method 'findWhereUseridEquals'
	 * 
	 * @param userid
	 * @throws UsersDaoException
	 * @throws RemoteException
	 * @return Users[]
	 */
	public Users[] findWhereUseridEquals(String userid) throws UsersDaoException, RemoteException;

	/**
	 * Method 'findWhereNameEquals'
	 * 
	 * @param name
	 * @throws UsersDaoException
	 * @throws RemoteException
	 * @return Users[]
	 */
	public Users[] findWhereNameEquals(String name) throws UsersDaoException, RemoteException;

	/**
	 * Method 'findByPrimaryKey'
	 * 
	 * @param userid
	 * @throws UsersDaoException
	 * @throws RemoteException
	 * @return Users
	 */
	public Users findByPrimaryKey(String userid) throws UsersDaoException, RemoteException;

	/**
	 * Method 'findByDynamicSelect'
	 * 
	 * @param sql
	 * @param arg
	 * @throws UsersDaoException
	 * @throws RemoteException
	 * @return Users[]
	 */
	public Users[] findByDynamicSelect(String sql, Object[] arg) throws UsersDaoException, RemoteException;

	/**
	 * Method 'findByDynamicWhere'
	 * 
	 * @param sql
	 * @param arg
	 * @throws UsersDaoException
	 * @throws RemoteException
	 * @return Users[]
	 */
	public Users[] findByDynamicWhere(String sql, Object[] arg) throws UsersDaoException, RemoteException;

}

⌨️ 快捷键说明

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