Пример #1
0
  @Override
  public Log.KPEvents FindKPEvents() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    for (Object o : log.getCostOrPriceOrRoute()) {
      if (o.getClass() == Log.KPEvents.class) {
        return (Log.KPEvents) o;
      }
    }

    return null;
  }
Пример #2
0
  @Override
  public ArrayList<Discontinue> FindDiscontinue() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Discontinue> discontinue = new ArrayList<Discontinue>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Discontinue.class) {
        discontinue.add((Discontinue) obj);
      }
    }

    return discontinue;
  }
Пример #3
0
  @Override
  public ArrayList<Timelimit> FindTimelimit() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Timelimit> timeLimit = new ArrayList<Timelimit>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Timelimit.class) {
        timeLimit.add((Timelimit) obj);
      }
    }

    return timeLimit;
  }
Пример #4
0
  @Override
  public ArrayList<Price> FindPrice() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Price> price = new ArrayList<Price>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Price.class) {
        price.add((Price) obj);
      }
    }

    return price;
  }
Пример #5
0
  @Override
  public ArrayList<Cost> FindCost() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Cost> cost = new ArrayList<Cost>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Cost.class) {
        cost.add((Cost) obj);
      }
    }

    return cost;
  }
Пример #6
0
  @Override
  public ArrayList<Mail> FindMail() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Mail> mail = new ArrayList<Mail>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Mail.class) {
        mail.add((Mail) obj);
      }
    }

    return mail;
  }