23 lines
373 B
Java
23 lines
373 B
Java
package com.ebrains.cruddemo.dao;
|
|
|
|
import com.ebrains.cruddemo.entity.Student;
|
|
|
|
import java.util.List;
|
|
|
|
public interface StudentDAO {
|
|
void save(Student student);
|
|
|
|
Student findById(Integer id);
|
|
|
|
List<Student> findAll();
|
|
|
|
List<Student> findByLastName(String lastName);
|
|
|
|
void update(Student student);
|
|
|
|
void delete(Integer id);
|
|
|
|
int deleteAll();
|
|
|
|
}
|