Package contains the dao classes of the application.
Package net.devmanuals.dao
The interface classes in the net.devmanuals.dao package defines methods/functions which will be used by Hibernate API to interact with database. The structure of the net.devmanuals.dao package and code of each interface class with description is given below :

AdminDao.java
This class is used to define functions which is used by the AdminDaoImpl class to interact with admin table.
package net.devmanuals.dao;
import java.util.List;
import net.devmanuals.model.Admin;
public interface AdminDao {
public List<Admin> validateLoginAdmin(String adminEmail, String password);
public List<Admin> getAdminByAdminEmail(String adminEmail);
}
LanguageDao.java
This class is used to define functions which is used by the LanguageDaoImpl class to interact with language table.
package net.devmanuals.dao;
import java.util.List;
import net.devmanuals.model.Language;
public interface LanguageDao {
public List<Language> listLanguages();
public List<Language> getLanguageByLanguageId(Long languageId);
}
QuestionOptionsDao.java
This class is used to define functions which is used by the QuestionOptionsDaoImpl class to interact with question_options table.
package net.devmanuals.dao;
import java.util.List;
import net.devmanuals.model.QuestionOptions;
import net.devmanuals.model.Questions;
public interface QuestionOptionsDao {
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);
}
QuestionsDao.java
This class is used to define functions which is used by the QuestionsDaoImpl class to interact with questions table.
package net.devmanuals.dao;
import java.util.List;
import net.devmanuals.model.Questions;
import net.devmanuals.model.User;
public interface QuestionsDao {
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);
}
UserDao.java
This class is used to define functions which is used by the UserDaoImpl class to interact with user table.
package net.devmanuals.dao;
import java.util.List;
import net.devmanuals.model.Questions;
import net.devmanuals.model.User;
public interface QuestionsDao {
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);
}
Click here to go back to main page

[ 0 ] Comments