loginservice.java
来自「只做是单选题!数据库表有三张:EUser,EItem,Score」· Java 代码 · 共 36 行
JAVA
36 行
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.exam.model;import java.sql.SQLException;import javax.ejb.ObjectNotFoundException;import javax.servlet.http.HttpServlet;/** * * @author fyadmin */public class LoginService extends HttpServlet { private UserDAO leagueDataAccess; /** * This constructor creates a League Service object. */ public LoginService() { leagueDataAccess = new UserDAO(); } /** * This method returns a complete set of leagues. */ public User getRetriver(String username, String password) throws SQLException, ObjectNotFoundException { return leagueDataAccess.retrieve(username, password); } /** * This method finds the specified League object in the database. */}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?