-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudentService.java
More file actions
31 lines (27 loc) · 1.14 KB
/
StudentService.java
File metadata and controls
31 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package com.finlogic.step.services;
import com.finlogic.step.repository.StudentRepository;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
*
* @author ajay
*/
public class StudentService {
StudentRepository studentrepository = new StudentRepository();
public ResultSet ViewAllStudents() throws SQLException{
return studentrepository.ViewAllStudents();
}
public int InsertStudent(String name,String email,String address,String city,String state) throws SQLException{
return studentrepository.InsertStudent(name, email, address, city, state);
}
public int DeleteStudent(int id) throws SQLException{
return studentrepository.DeleteStudent(id);
}
public int EditStudent(int id,String name,String email,String address,String city,String state) throws SQLException{
return studentrepository.EditStudent(id,name, email, address, city, state);
}
}