The interface classes in the net.devmanuals.service package is used to define functions which will be used for interaction between controller classes and dao classes
Package net.devmanuals.service
The interface classes in the net.devmanuals.service package is used to define functions which will be used for interaction between controller classes and dao classes. The structure of the net.devmanuals.service package and code of each interface with description is given below :
AdminService.java
This class define functions for interaction with AdminDaoImpl class.
package net.devmanuals.service; import java.util.List; import net.devmanuals.model.Admin; public interface AdminService { public List<Admin> validateLoginAdmin(String adminEmail, String password); public List<Admin> getAdminByAdminEmail(String adminEmail); }
LanguageService.java
This class define functions for interaction with LanguageDaoImpl class.
package net.devmanuals.service; import java.util.List; import net.devmanuals.model.Language; public interface LanguageService { public List<Language> listLanguages(); public List<Language> getLanguageByLanguageId(Long languageId); }
QuestionOptionsService.java
This class define functions for interaction with QuestionOptionsDaoImpl class.
package net.devmanuals.service; import java.util.List; import net.devmanuals.model.QuestionOptions; public interface QuestionOptionsService { public List<QuestionOptions> listQuestionOptions(); public List<QuestionOptions> getQuestionOptionsByQuestionId(Long questionId); public List<QuestionOptions> getQuestionOptionsByQuesOpId(Long quesOpId); public void saveQuestionOptions(QuestionOptions questionOptions); public void updateQuestionOptions(QuestionOptions questionOptions); public void deleteQuestionOptionsByQuestionId(Long questionId); }
QuestionsService.java
This class define functions for interaction with QuestionDaoImpl class.
package net.devmanuals.service; import java.util.List; import net.devmanuals.model.Questions; public interface QuestionsService { public List<Questions> listQuestions(); public List<Questions> getQuestionsByLanguageId(Long languageId); public List<Questions> getQuestionsByQuestionId(Long questionId); public void saveQuestions(Questions questions); public void updateQuestions(Questions questions); public void deleteQuestions(Questions questions); public List<Questions> getTenRandomQuestionsByLanguageId(Long languageId); }
UserService.java
This class define functions for interaction with UserDaoImpl class.
package net.devmanuals.service; import java.util.List; import net.devmanuals.model.User; public interface UserService { public List<User> listUsers(); public void saveUser(User user); public List<User> getUserByUserEmail(String userEmail); public List<User> validateLoginUser(String userEmail, String password); }
[ 0 ] Comments