packagecom.roshka.proyectofinal.login;importcom.roshka.proyectofinal.DataBase;importcom.roshka.proyectofinal.entity.Lenguaje;importcom.roshka.proyectofinal.entity.LoginBean;importjava.sql.Connection;importjava.sql.PreparedStatement;publicclassLoginDao{publicbooleanvalidate(LoginBeanloginBean){intstatus=0;try{Connectioncon=DataBase.getConnection();PreparedStatementps=con.prepareStatement("select * from usuarios where username=? and password = ?");ps.setString(1,loginBean.getUsername());ps.setString(2,loginBean.getPassword());status=ps.executeUpdate();con.close();}catch(Exceptionex){ex.printStackTrace();}if(status>0)returntrue;elsereturnfalse;}}