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

📄 iuserservices.java

📁 当下流行的struts2的一个简单应用
💻 JAVA
字号:
package com.jack.user.model;

import com.jack.user.pojo.User;

public interface IUserServices {
	/**
	 * 检测用户是否已经存在
	 * 
	 * @param userName
	 *            用户名
	 * @return 返回用户是否已经存在,true代表已经存在;False代表不存在,可以注册
	 * @throws RuntimeException
	 */
	public boolean checkUserName(String userName) throws RuntimeException;

	/**
	 * 添加用户
	 * 
	 * @param user
	 *            用户对象
	 * @throws RuntimeException
	 */
	public void saveUser(User user) throws RuntimeException;

	/**
	 * 检测是否存在此用户
	 * 
	 * @param userName
	 *            用户名
	 * @param password
	 *            用户密码
	 * @see com.jack.user.pojo.User
	 * @return 返回是否存在此用户,true代表存在此用户,false代表不存在此用户
	 * @throws RuntimeException
	 */
	public boolean checkUser(String userName, String password)
			throws RuntimeException;
}

⌨️ 快捷键说明

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