CollegeDAOInt.java

package in.co.sunrays.dao;

import in.co.sunrays.dto.CollegeDTO;

import java.util.List;

/**

* Data Access Object of College

*

* @author SUNRAYS Developer

* @version 1.0

* @Copyright (c) SUNRAYS Technologies

*/

public interface CollegeDAOInt {

/**

* Adds a College

*

* @param dto

* @throws DatabaseException

*/

public long add(CollegeDTO dto);

/**

* Updates a College

*

* @param dto

* @throws DatabaseException

*/

public void update(CollegeDTO dto);

/**

* Deletes a College

*

* @param id

* @throws DatabaseException

*/

public CollegeDTO delete(long id);

/**

* Finds College by PK

*

* @param pk

* : get parameter

* @return dto

* @throws DatabaseException

*/

public CollegeDTO findByPK(long pk);

/**

* Finds College by Name

*

* @param name

* : get parameter

* @return dto

* @throws DatabaseException

*/

public CollegeDTO findByName(String name);

/**

* Searches Colleges

*

* @return list : List of Colleges

* @param dto

* : Search Parameters

* @throws DatabaseException

*/

public List search(CollegeDTO dto);

/**

* Searches Colleges with pagination

*

* @return list : List of Colleges

* @param dto

* : Search Parameters

* @param pageNo

* : Current Page No.

* @param pageSize

* : Size of Page

* @throws DatabaseException

*/

public List search(CollegeDTO dto, int pageNo, int pageSize);

}