Package net.sf.chellow.monad

Examples of net.sf.chellow.monad.NotFoundException


  public UriPathElement getUriId() throws HttpException {
    return new UriPathElement(Long.toString(id));
  }

  public Urlable getChild(UriPathElement urlId) throws HttpException {
    throw new NotFoundException();
  }
View Full Code Here


    return messages;
  }

  @Override
  public void httpDelete(Invocation inv) throws HttpException {
    throw new NotFoundException();
  }
View Full Code Here

    throw new NotFoundException();
  }

  @Override
  public void httpPost(Invocation inv) throws HttpException {
    throw new NotFoundException();
  }
View Full Code Here

        .session()
        .createQuery(
            "from SupplierContract contract where contract.name = :name")
        .setString("name", name).uniqueResult();
    if (contract == null) {
      throw new NotFoundException("There's no supplier contract named '"
          + name + "'.");
    }
    return contract;
  }
View Full Code Here

            "from Snag snag where snag.contract = :contract and snag.id = :snagId")
        .setEntity("contract", this)
        .setLong("snagId", Long.parseLong(uriId.getString()))
        .uniqueResult();
    if (snag == null) {
      throw new NotFoundException();
    }
    return snag;
  }
View Full Code Here

    if (Batches.URI_ID.equals(uriId)) {
      return new Batches(this);
    } else if (RateScripts.URI_ID.equals(uriId)) {
      return new RateScripts(this);
    } else {
      throw new NotFoundException();
    }
  }
View Full Code Here

public class MeterPaymentType extends PersistentEntity {
  static public MeterPaymentType getMtcPaymentType(String code)
      throws HttpException {
    MeterPaymentType type = findMtcPaymentType(code);
    if (type == null) {
      throw new NotFoundException();
    }
    return type;
  }
View Full Code Here

        .createQuery(
            "from NonCoreContract contract where contract.id = :contractId")
        .setLong("contractId", Long.parseLong(uriId.getString()))
        .uniqueResult();
    if (contract == null) {
      throw new NotFoundException();
    }
    return contract;
  }
View Full Code Here

        .createQuery(
            "from DnoContract contract where contract.party = :dno and contract.id = :contractId")
        .setEntity("dno", dno).setLong("contractId",
            Long.parseLong(uriId.getString())).uniqueResult();
    if (contract == null) {
      throw new NotFoundException();
    }
    return contract;
  }
View Full Code Here

        .createQuery(
            "from RateScript script where script.contract = :contract and script.id = :scriptId")
        .setEntity("contract", contract).setLong("scriptId",
            Long.parseLong(uriId.getString())).uniqueResult();
    if (script == null) {
      throw new NotFoundException();
    }
    return script;
  }
View Full Code Here

TOP

Related Classes of net.sf.chellow.monad.NotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.