package com.ims.logic;

import com.ims.domain.Supplier;

public class SupplierLogic {
	
	Supplier sup = new Supplier();
	
	

}

package com.ims.logic;

import java.util.List;

import com.ims.dao.DAOSupplier;
import com.ims.dao.DISupplier;
import com.ims.domain.Supplier;

public class SupplierLogic {	
	
	DAOSupplier daoSup = new DISupplier() {
		
		@Override
		public Supplier getSupplier(int id) {
			// TODO Auto-generated method stub
			Supplier sup = daoSup.getSupplier(id);
			return sup;
		}
		
		@Override
		public List<Supplier> getAllSuppliers() {
			// TODO Auto-generated method stub
			
			List<Supplier> supList = daoSup.getAllSuppliers();
			return supList;
		}
	};

}

add methods to SupplierLogic.java file