Package de.sub.goobi.helper.exceptions

Examples of de.sub.goobi.helper.exceptions.DAOException


  }

  public Projekt get(Integer id) throws DAOException {
    Projekt rueckgabe = (Projekt) retrieveObj(Projekt.class, id);
    if (rueckgabe == null) {
      throw new DAOException("Object can not be found in database");
    }
    return rueckgabe;
  }
View Full Code Here


  }
 
  public Prozess get(Integer id) throws DAOException {
    Prozess rueckgabe = (Prozess) retrieveObj(Prozess.class, id);
    if (rueckgabe == null) {
      throw new DAOException("Object can not be found in database");
    }
    return rueckgabe;
  }
View Full Code Here

  }

  public Benutzer get(Integer id) throws DAOException {
    Benutzer rueckgabe = (Benutzer) retrieveObj(Benutzer.class, id);
    if (rueckgabe == null) {
      throw new DAOException("Object can not be found in database");
    }
    return rueckgabe;
  }
View Full Code Here

  }

  public Regelsatz get(Integer id) throws DAOException {
    Regelsatz rueckgabe = (Regelsatz) retrieveObj(Regelsatz.class, id);
    if (rueckgabe == null) {
      throw new DAOException("Object can not be found in database");
    }
    return rueckgabe;
  }
View Full Code Here

  }

  public LdapGruppe get(Integer id) throws DAOException {
    LdapGruppe rueckgabe = (LdapGruppe) retrieveObj(LdapGruppe.class, id);
    if (rueckgabe == null) {
      throw new DAOException("Object can not be found in database");
    }
    return rueckgabe;
  }
View Full Code Here

  }

  public Schritt get(Integer id) throws DAOException {
    Schritt rueckgabe = (Schritt) retrieveObj(Schritt.class, id);
    if (rueckgabe == null) {
      throw new DAOException("Object can not be found in database");
    }
    return rueckgabe;
  }
View Full Code Here

  }

  public Docket get(Integer id) throws DAOException {
    Docket rueckgabe = (Docket) retrieveObj(Docket.class, id);
    if (rueckgabe == null) {
      throw new DAOException("Object can not be found in database");
    }
    return rueckgabe;
  }
View Full Code Here

        session.flush();
        session.beginTransaction().commit();
      }
    } catch (Exception e) {
      rollback();
      throw new DAOException(e);
    }
  }
View Full Code Here

        session.flush();
        session.beginTransaction().commit();
      }
    } catch (Exception e) {
      rollback();
      throw new DAOException(e);
    }
  }
View Full Code Here

        session.close();
        return o;
      }
      return session.get(c, id);
    } catch (HibernateException he) {
      throw new DAOException(he);
    }
  }
View Full Code Here

TOP

Related Classes of de.sub.goobi.helper.exceptions.DAOException

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.