Packages

trait BookingStore extends AnyRef

A store that manages Bookings.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BookingStore
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def addBooking(booking: Booking): Boolean

    Adds a booking to the storeEntities.

    Adds a booking to the storeEntities.

    booking

    The booking to be added to the storeEntities.

    returns

    A boolean indicating the success or the failure of this operation.

  2. abstract def deleteAllBookings(): Unit

    Clears the BookingStore.

  3. abstract def deleteBooking(id: Int): Boolean

    Deletes a Booking from the store.

    Deletes a Booking from the store.

    id

    The id of the booking to be deleted.

    returns

    A boolean indicating the success or the failure of this operation.

  4. abstract def generateId(): Int

    Generates a unique id.

    Generates a unique id.

    returns

    A new unique generated id.

  5. abstract def getBookingById(bookingId: Int): Optional[Booking]

    Gets a Booking with the provided bookingId

    Gets a Booking with the provided bookingId

    bookingId

    Identifies the Booking's ID that must be retreived.

    returns

    Returns the Booking with the provided id, only if found.

  6. abstract def getBookingByUser(username: String, bookingStatus: String): Optional[Booking]

    Gets the Booking started by a com.wedriveu.services.shared.model.User that has status bookingStatus.

    Gets the Booking started by a com.wedriveu.services.shared.model.User that has status bookingStatus.

    username

    Identifies username to which the booking is associated.

    bookingStatus

    The status of the Booking to be retrieved

    returns

    Returns the Booking associated to the provided username, only if found.

  7. abstract def getBookings(): List[Booking]

    Fetches all Booking stored.

    Fetches all Booking stored.

    returns

    All the Bookings.

  8. abstract def getStartedBookingByLicensePlate(licensePlate: String): Optional[Booking]

    licensePlate

    Identifies the vehicle associated to the Booking's ID that must be retreived.

    returns

    Returns the started Booking with the provided license plate, only if found.

  9. abstract def updateBookingLicensePlate(bookingId: Int, licensePlate: String): Boolean

    Updates the status of a Booking license plate.

    Updates the status of a Booking license plate.

    bookingId

    The id of the Booking to be updated.

    licensePlate

    The new license plate of the Booking.

    returns

    A boolean indicating the success or the failure of this operation.

  10. abstract def updateBookingStatus(bookingId: Int, bookingStatus: String): Boolean

    Updates the status of a Booking status.

    Updates the status of a Booking status.

    bookingId

    The id of the Booking to be updated.

    bookingStatus

    The new status of the Booking.

    returns

    A boolean indicating the success or the failure of this operation.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped