/**
   * Returns all the codes in the DB
   *
   * @param PCSession session, the PCSession object for the database to use.
   * @return a Vector of all the codes in the Database
   * @exception java.sql.SQLException
   */
  public Vector getCodes(PCSession session) throws SQLException {

    DBConnection dbcon = getDatabaseManager().requestConnection(session.getModelName());

    Vector vtCodes = DBCode.getCodes(dbcon);

    getDatabaseManager().releaseConnection(session.getModelName(), dbcon);

    return vtCodes;
  }