|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.dao.DAO
org.deltava.dao.GetAssignment
public class GetAssignment
A Data Access Object to load Flight Assignments. All calls in this DAO will populate the legs for any returned Flight Assignments, but will not populate any Flight Reports.
| Field Summary |
|---|
| Fields inherited from class org.deltava.dao.DAO |
|---|
_ps, _queryMax, _queryStart, _queryTimeout |
| Constructor Summary | |
|---|---|
GetAssignment(Connection c)
Initialize the Data Access Object. |
|
| Method Summary | |
|---|---|
AssignmentInfo |
get(int id)
Returns a Flight Assignment from the database. |
List<AssignmentInfo> |
getByEquipmentType(String eqType,
int status)
Return all Flight Assignment for a particular aircraft type and status. |
List<AssignmentInfo> |
getByEvent(int eventID,
String dbName)
Returns all Flight Assignments related to a particular Online Event. |
List<AssignmentInfo> |
getByPilot(int pilotID)
Returns all Flight Assignments for a particular Pilot. |
List<AssignmentInfo> |
getByStatus(int status)
Returns all Flight Assignments with a particular status. |
Collection<String> |
getEquipmentTypes()
Returns the equipment types with Flight Assignments. |
| 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 |
|---|
public GetAssignment(Connection c)
c - the JDBC connection to use| Method Detail |
|---|
public AssignmentInfo get(int id)
throws DAOException
id - the Assignment Database ID
DAOException - if a JDBC error occurs
public List<AssignmentInfo> getByPilot(int pilotID)
throws DAOException
pilotID - the Pilot's database ID
DAOException - if a JDBC error occurs
public List<AssignmentInfo> getByStatus(int status)
throws DAOException
status - the status code
DAOException - if a JDBC error occurs
public List<AssignmentInfo> getByEvent(int eventID,
String dbName)
throws DAOException
eventID - the Event database ID
DAOException - if a JDBC error occurs
public List<AssignmentInfo> getByEquipmentType(String eqType,
int status)
throws DAOException
eqType - the Equipment typestatus - the status code, or -1 if none
DAOException - if a JDBC error occurs
public Collection<String> getEquipmentTypes()
throws DAOException
DAOException - if a JDBC error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||