Package org.springframework.orm

Examples of org.springframework.orm.ObjectRetrievalFailureException


 
  public Item getItem(Integer id) {
    Item item = (Item) getHibernateTemplate().get(
        Item.class, id);
    if (item == null) {
      throw new ObjectRetrievalFailureException(Item.class, id);
    }
    return item;
  }
View Full Code Here


  public Colour getColour(Integer id) {
    Colour colour = (Colour) getHibernateTemplate().get(
        Colour.class, id);
    if (colour == null) {
      throw new ObjectRetrievalFailureException(Colour.class, id);
    }
    return colour;
  }
View Full Code Here

  public Code getCode(Integer id) {
    Code code = (Code) getHibernateTemplate().get(
        Code.class, id);
    if (code == null) {
      throw new ObjectRetrievalFailureException(Code.class, id);
    }
    return code;
  }
View Full Code Here

  public Thickness getThickness(Integer id) {
    Thickness thickness = (Thickness) getHibernateTemplate().get(
        Thickness.class, id);
    if (thickness == null) {
      throw new ObjectRetrievalFailureException(Thickness.class, id);
    }
    return thickness;
  }
View Full Code Here

  public Length getLength(Integer id) {
    Length length = (Length) getHibernateTemplate().get(
        Length.class, id);
    if (length == null) {
      throw new ObjectRetrievalFailureException(Length.class, id);
    }
    return length;
  }
View Full Code Here

  public Type getType(Integer id) {
    Type type = (Type) getHibernateTemplate().get(
        Type.class, id);
    if (type == null) {
      throw new ObjectRetrievalFailureException(Type.class, id);
    }
    return type;
  }
View Full Code Here

  public OralQuote getOralQuote(Integer id) {
    OralQuote oralQuote = (OralQuote) getHibernateTemplate().get(
        OralQuote.class, id);
    if (oralQuote == null) {
      throw new ObjectRetrievalFailureException(OralQuote.class, id);
    }
    return oralQuote;
  }
View Full Code Here

  public User getUser(Integer id) {
    User user = (User) getHibernateTemplate().get(
        User.class, id);
    if (user == null) {
      throw new ObjectRetrievalFailureException(User.class, id);
    }
    return user;
  }
View Full Code Here

  public Quote getQuote(Integer id) {
    Quote quote = (Quote) getHibernateTemplate().get(
        Quote.class, id);
    if (quote == null) {
      throw new ObjectRetrievalFailureException(Quote.class, id);
    }
    return quote;
  }
View Full Code Here

  public Role getRole(Integer id) {
    Role role = (Role) getHibernateTemplate().get(
        Role.class, id);
    if (role == null) {
      throw new ObjectRetrievalFailureException(Role.class, id);
    }
    return role;
  }
View Full Code Here

TOP

Related Classes of org.springframework.orm.ObjectRetrievalFailureException

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.