TavernerPOS - Source Code
Clone:
git clone http://www.librarysmith.co.uk/tavernerPOS
package com.floreantpos.services;
import com.floreantpos.POSConstants;
import com.floreantpos.PosException;
import com.floreantpos.model.Ticket;
import com.floreantpos.model.dao.TicketDAO;
public class TicketService {
public static Ticket getTicket(int ticketId) {
TicketDAO dao = new TicketDAO();
Ticket ticket = dao.get(Integer.valueOf(ticketId));
if (ticket == null) {
throw new PosException(POSConstants.NO_TICKET_WITH_ID + " " + ticketId + " " + POSConstants.FOUND); //$NON-NLS-1$ //$NON-NLS-2$
}
return ticket;
}
}
- Details
- Last Updated: Monday, 04 April 2016 02:04
- Hits: 37121886