package com.ims.DAO;

import java.util.EmptyStackException;
import java.util.List;

import org.hibernate.cfg.NotYetImplementedException;

public class DIPurchaseOrderLine implements DAOPurchaseOrderLine {

	@Override
	public void createPurchaseOrderLine(PurchaseOrder po) {
		// TODO Auto-generated method stub
		if (po == null) {
	        throw new NotYetImplementedException();
	    }
		
	}

	@Override
	public PurchaseOrderLine getPurchaseOrderLine(int poLineId) {
		// TODO Auto-generated method stub
		if (poLineId == null) {
	        throw new NotYetImplementedException();
	    }
		return null;
	}

	@Override
	public List<PurchaseOrderLine> getAllPurchaseOrderLines() {
		// TODO Auto-generated method stub
	        throw new NotYetImplementedException();
		return null;
	}

	@Override
	public void updatePurchaseOrderLine(int poLineId) {
		// TODO Auto-generated method stub
		if (poLineId == null) {
	        throw new NotYetImplementedException();
	    }
		
	}

	@Override
	public void deletePurchaseOrderLine(int poLineId) {
		// TODO Auto-generated method stub
		if (poLineId == null) {
	        throw new NotYetImplementedException();
	    }
		
	}

}

package com.ims.DAO;

import java.util.EmptyStackException;
import java.util.List;

import org.hibernate.cfg.NotYetImplementedException;

public class DIPurchaseOrderLine implements DAOPurchaseOrderLine {

	@Override
	public void createPurchaseOrderLine(PurchaseOrder po) {
		// TODO Auto-generated method stub
	        throw new NotYetImplementedException();
		
	}

	@Override
	public PurchaseOrderLine getPurchaseOrderLine(int poLineId) {
		// TODO Auto-generated method stub
	        throw new NotYetImplementedException();
	}

	@Override
	public List<PurchaseOrderLine> getAllPurchaseOrderLines() {
		// TODO Auto-generated method stub
	        throw new NotYetImplementedException();
	}

	@Override
	public void updatePurchaseOrderLine(int poLineId) {
		// TODO Auto-generated method stub
	        throw new NotYetImplementedException();
		
	}

	@Override
	public void deletePurchaseOrderLine(int poLineId) {
		// TODO Auto-generated method stub
	        throw new NotYetImplementedException();
		
	}

}

remove if statement from methods of DIPurchaseOrderLine