org.glassfish.jersey.examples.flight.internal
Class DataStore

java.lang.Object
  extended by 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)

Field Summary
static int CONCURRENCY_LEVEL
           
static int MAX_GEN_AIRCRAFTS
           
static int MAX_GEN_FLIGHTS
           
 
Constructor Summary
DataStore()
           
 
Method Summary
static boolean addAircraft(Aircraft aircraft)
           
static boolean addFlight(Flight flight)
           
static void generateData()
           
static Location generateLocation(int xBound, int yBound)
           
static Aircraft removeAircraft(Integer id)
           
static Flight removeFlight(String id)
           
static Aircraft selectAircraft(Integer id)
           
static List<Aircraft> selectAllAircrafts()
           
static List<Flight> selectAllFlights()
           
static List<Aircraft> selectAvailableAircrafts()
           
static Flight selectFlight(String id)
           
static Flight selectFlightByAircraft(Integer id)
           
static List<Flight> selectOpenFlights()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DataStore

public DataStore()
Method Detail

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.