Package src.database
Enum Class ModelType
- All Implemented Interfaces:
Serializable
,Comparable<ModelType>
,Constable
Enumeration class for handling conversion from database file to HashMap
- Version:
- 1.0
- Author:
- Lee Juin
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBookingHistory enum and its file nameCinema enum and its file nameCinemaStaff enum and its file nameCineplex enum and its file nameHoliday enum and its file nameMovie enum and its file nameMovieGoer enum and its file nameMovieReview enum and its file nameMovieSchedule enum and its file nameMovieTicket enum and its file namePayment enum and its file namePermission enum and its file namePrices enum and its file nameSeat enum and its file name -
Method Summary
-
Enum Constant Details
-
CINEPLEX
Cineplex enum and its file name -
CINEMA
Cinema enum and its file name -
SEAT
Seat enum and its file name -
MOVIE_SCHEDULE
MovieSchedule enum and its file name -
BOOKING_HISTORY
BookingHistory enum and its file name -
MOVIE_GOER
MovieGoer enum and its file name -
MOVIE
Movie enum and its file name -
MOVIE_REVIEW
MovieReview enum and its file name -
CINEMA_STAFF
CinemaStaff enum and its file name -
HOLIDAY
Holiday enum and its file name -
PRICES
Prices enum and its file name -
MOVIE_TICKET
MovieTicket enum and its file name -
PAYMENT
Payment enum and its file name -
PERMISSION
Permission enum and its file name
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFileName
Gets the file name of the model- Returns:
- The file name of the model
-