package mm.da;

import java.sql.SQLException;
import java.util.ArrayList;

import mm.model.Meeting;
import mm.model.Mentee;
import mm.model.Mentor;
import mm.model.Pair;
import mm.model.Session;
import mm.model.User;
import mm.model.User.userType;

public interface DataInterface{

	public User login(String email) throws SQLException;

	public boolean deactivateUser(int id) throws SQLException;

	public ArrayList<User> getUsers(userType type) throws SQLException;

	public User getUser(int id) throws SQLException;

	public boolean addUser(User u) throws SQLException;

	public boolean editUser(User u) throws SQLException;

	public ArrayList<Pair> getAllPairs() throws SQLException;

	public boolean addPair(int mentorId, int menteeId) throws SQLException;

	public boolean disconnectPair(int pairId) throws SQLException;

	public Pair getPair(int pairId) throws SQLException;

	public ArrayList<Session> getUserSessions(int id) throws SQLException;

	public ArrayList<Meeting> getUserMeetings(int id) throws SQLException;

	public Mentor getMentorOfMentee(int menteeId) throws SQLException;

	public ArrayList<Mentee> getMenteesOfMentor(int mentorId) throws SQLException;

	public Meeting getMeetingById( int meetingId) throws SQLException;

	public boolean startUserSession(Session session) throws SQLException;

}

@@ -15,66 +15,8 @@
 %0D%0A%0D%0A
-import java.sql.SQLException;%0D%0Aimport java.util.ArrayList;
 %0D%0A%0D%0A
@@ -194,16 +194,76 @@
 erType;%0D
+%0Aimport java.sql.SQLException;%0D%0Aimport java.util.ArrayList;%0D
 %0A%0D%0Apubli

fix import order