org.glassfish.jersey.examples.flight.internal
Class DataStore
java.lang.Object
org.glassfish.jersey.examples.flight.internal.DataStore
public class DataStore
- extends Object
Data store for the runtime object model of the application.
- Author:
- Marek Potociar (marek.potociar at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONCURRENCY_LEVEL
public static final int CONCURRENCY_LEVEL
MAX_GEN_AIRCRAFTS
public static final int MAX_GEN_AIRCRAFTS
- See Also:
- Constant Field Values
MAX_GEN_FLIGHTS
public static final int MAX_GEN_FLIGHTS
- See Also:
- Constant Field Values
DataStore
public DataStore()
selectAllFlights
public static List<Flight> selectAllFlights()
selectOpenFlights
public static List<Flight> selectOpenFlights()
selectFlight
public static Flight selectFlight(String id)
selectFlightByAircraft
public static Flight selectFlightByAircraft(Integer id)
addFlight
public static boolean addFlight(Flight flight)
removeFlight
public static Flight removeFlight(String id)
selectAllAircrafts
public static List<Aircraft> selectAllAircrafts()
selectAvailableAircrafts
public static List<Aircraft> selectAvailableAircrafts()
selectAircraft
public static Aircraft selectAircraft(Integer id)
addAircraft
public static boolean addAircraft(Aircraft aircraft)
removeAircraft
public static Aircraft removeAircraft(Integer id)
generateLocation
public static Location generateLocation(int xBound,
int yBound)
generateData
public static void generateData()
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.