Implementating the DAO Abstract functions for generic method model.