class BookingStoreImpl extends BookingStore
- Alphabetic
- By Inheritance
- BookingStoreImpl
- BookingStore
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BookingStoreImpl(storeStrategy: EntityListStoreStrategy[Booking])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
- Definition Classes
- BookingStoreImpl → BookingStore
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
deleteAllBookings(): Unit
Clears the BookingStore.
Clears the BookingStore.
- Definition Classes
- BookingStoreImpl → BookingStore
-
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.
- Definition Classes
- BookingStoreImpl → BookingStore
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
generateId(): Int
Generates a unique id.
Generates a unique id.
- returns
A new unique generated id.
- Definition Classes
- BookingStoreImpl → BookingStore
-
def
getBookingById(bookingId: Int): Optional[Booking]
Gets a Booking with the provided
bookingIdGets 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.
- Definition Classes
- BookingStoreImpl → BookingStore
-
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.
- Definition Classes
- BookingStoreImpl → BookingStore
-
def
getBookings(): List[Booking]
Fetches all Booking stored.
Fetches all Booking stored.
- returns
All the Bookings.
- Definition Classes
- BookingStoreImpl → BookingStore
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
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.
- Definition Classes
- BookingStoreImpl → BookingStore
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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.
- Definition Classes
- BookingStoreImpl → BookingStore
-
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.
- Definition Classes
- BookingStoreImpl → BookingStore
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )