regeistdao.java

来自「网上购物系统」· Java 代码 · 共 33 行

JAVA
33
字号
package example.regeist;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

import com.shsafe.common.database.DatabaseConnection;

import example.common.dao.ExampleDAO;
import example.common.dto.UserDTO;

public class RegeistDAO extends ExampleDAO {

	public RegeistDAO(DatabaseConnection connection) throws SQLException {
		super(connection);
	}

	public int regeist(UserDTO userInfo) throws SQLException {
		return super.change("regeist", userInfo);
	}

	public boolean findUserByUserId(String userId) throws SQLException {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("userId", userId);
		Map<String, Object> data = find("findUserByUserId", param);
		if (data != null) {
			return true;
		} else {
			return false;
		}
	}
}

⌨️ 快捷键说明

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