org.deltava.dao
Class GetChart

java.lang.Object
  extended by org.deltava.dao.DAO
      extended by org.deltava.dao.GetChart

public class GetChart
extends DAO

A Data Access Object for Approach Charts.

Since:
1.0
Version:
1.0
Author:
Luke

Field Summary
 
Fields inherited from class org.deltava.dao.DAO
_ps, _queryMax, _queryStart, _queryTimeout
 
Constructor Summary
GetChart(Connection c)
          Creates the DAO with a JDBC connection.
 
Method Summary
 Chart get(int id)
          Returns a Chart based on its Database ID.
 List<Airport> getAirports()
          Returns all Airports with available charts.
 Collection<Chart> getByIDs(Collection<Integer> IDs)
          Retrieves Charts based on a group of database IDs.
 List<Chart> getCharts(Airport a)
          Returns all Chart metadata for a particular Airport.
 List<Chart> getChartsByEvent(int eventID)
          Returns all Charts for a particular Event.
 
Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeUpdate, expandDate, formatDBName, getNewID, getQueryCount, prepareStatement, prepareStatementWithoutLimits, rollbackTransaction, setManualCommit, setQueryMax, setQueryStart, setQueryTimeout, startTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetChart

public GetChart(Connection c)
Creates the DAO with a JDBC connection.

Parameters:
c - the JDBC connection to use
Method Detail

getAirports

public List<Airport> getAirports()
                          throws DAOException
Returns all Airports with available charts.

Returns:
a List of Airports
Throws:
DAOException - if a JDBC error occurs

getCharts

public List<Chart> getCharts(Airport a)
                      throws DAOException
Returns all Chart metadata for a particular Airport.

Parameters:
a - the Airport bean
Returns:
a List of Chart objects
Throws:
DAOException - if a JDBC error occurs
See Also:
getCharts(Airport)

getChartsByEvent

public List<Chart> getChartsByEvent(int eventID)
                             throws DAOException
Returns all Charts for a particular Event.

Parameters:
eventID - the event Database ID
Returns:
a List of Chart objects
Throws:
DAOException - if a JDBC error occurs

get

public Chart get(int id)
          throws DAOException
Returns a Chart based on its Database ID.

Parameters:
id - the database id
Returns:
the Chart
Throws:
DAOException - if a JDBC error occurs

getByIDs

public Collection<Chart> getByIDs(Collection<Integer> IDs)
                           throws DAOException
Retrieves Charts based on a group of database IDs.

Parameters:
IDs - a Collection of database IDs as Integers
Returns:
a Collection of Charts
Throws:
DAOException - if a JDBC error occurs


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.