Class BookingServiceImpl

  • All Implemented Interfaces:
    org.apache.karaf.examples.jpa.BookingService

    public class BookingServiceImpl
    extends Object
    implements org.apache.karaf.examples.jpa.BookingService
    Implementation of the booking service using the JPA entity manager service (provided by Karaf).
    • Constructor Detail

      • BookingServiceImpl

        public BookingServiceImpl()
    • Method Detail

      • add

        public void add​(org.apache.karaf.examples.jpa.Booking booking)
        Specified by:
        add in interface org.apache.karaf.examples.jpa.BookingService
      • add

        public void add​(String flight,
                        String customer)
        Specified by:
        add in interface org.apache.karaf.examples.jpa.BookingService
      • list

        public List<org.apache.karaf.examples.jpa.Booking> list()
        Specified by:
        list in interface org.apache.karaf.examples.jpa.BookingService
      • get

        public org.apache.karaf.examples.jpa.Booking get​(Long id)
        Specified by:
        get in interface org.apache.karaf.examples.jpa.BookingService
      • remove

        public void remove​(Long id)
        Specified by:
        remove in interface org.apache.karaf.examples.jpa.BookingService