package in.co.sunrays.proj1.dao;
import in.co.sunrays.proj1.dto.MarksheetDTO; import in.co.sunrays.proj1.exception.DatabaseException; import in.co.sunrays.proj1.exception.DuplicateRecordException; import java.util.List; /** * Data Access Object of Marksheet * * @author SUNRAYS Technologies * @version 1.0 * @Copyright (c) SUNRAYS Technologies */ public interface MarksheetDAOInt { /** * Add a Marksheet * * @param dto * @throws DatabaseException */ public long add(MarksheetDTO dto) throws DatabaseException; /** * Update a Marksheet * * @param dto * @throws DatabaseException */ public void update(MarksheetDTO dto) throws DatabaseException; /** * Delete a Marksheet * * @param dto * @throws DatabaseException */ public void delete(MarksheetDTO dto) throws DatabaseException; /** * Find Marksheet by Roll No * * @param rollNo * : get parameter * @return dto * @throws DuplicateRecordException */ public MarksheetDTO findByRollNo(String rollNo) throws DatabaseException; /** * Find Marksheet by PK * * @param pk * : get parameter * @return dto * @throws DatabaseException */ public MarksheetDTO findByPK(long pk) throws DatabaseException; /** * Search Marksheets * * @param dto * : Search Parameters * @throws DatabaseException */ public List search(MarksheetDTO dto) throws DatabaseException; /** * Search Marksheets with pagination * * @return list : List of Marksheets * @param dto * : Search Parameters * @param pageNo * : Current Page No. * @param pageSize * : Size of Page * @throws DatabaseException */ public List search(MarksheetDTO dto, int pageNo, int pageSize) throws DatabaseException; /** * Get List of Marksheets * * @return list : List of Marksheets * @throws DatabaseException */ public List list() throws DatabaseException; /** * Get List of Marksheets with pagination * * @return list : List of Marksheets * @param pageNo * : Current Page No. * @param pageSize * : Size of Page * @throws DatabaseException */ public List list(int pageNo, int pageSize) throws DatabaseException; /** * Get Merit List of Marksheets with pagination * * @return list : List of Marksheets * @param pageNo * : Current Page No * @param pageSize * : Size of Page * @throws DatabaseException */ public List getMeritList(int pageNo, int pageSize) throws DatabaseException; } |