Package dubious.sub.goobi.helper.encryption.exceptions

Examples of dubious.sub.goobi.helper.encryption.exceptions.InfrastructureException


  public static void rebuildSessionFactory() throws InfrastructureException {
    synchronized (sessionFactory) {
      try {
        sessionFactory = getConfiguration().buildSessionFactory();
      } catch (Exception ex) {
        throw new InfrastructureException(ex);
      }
    }
  }
View Full Code Here


    synchronized (sessionFactory) {
      try {
        sessionFactory = cfg.buildSessionFactory();
        configuration = cfg;
      } catch (Exception ex) {
        throw new InfrastructureException(ex);
      }
    }
  }
View Full Code Here

          s = getSessionFactory().openSession();
        }
        threadSession.set(s);
      }
    } catch (HibernateException ex) {
      throw new InfrastructureException(ex);
    }
    return s;
  }
View Full Code Here

      threadSession.set(null);
      if (s != null && s.isOpen()) {
        s.close();
      }
    } catch (HibernateException ex) {
      throw new InfrastructureException(ex);
    }
  }
View Full Code Here

        log.debug("Starting new database transaction in this thread.");
        tx = getSession().beginTransaction();
        threadTransaction.set(tx);
      }
    } catch (HibernateException ex) {
      throw new InfrastructureException(ex);
    }
  }
View Full Code Here

        tx.commit();
      }
      threadTransaction.set(null);
    } catch (HibernateException ex) {
      rollbackTransaction();
      throw new InfrastructureException(ex);
    }
  }
View Full Code Here

      if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) {
        log.debug("Tyring to rollback database transaction of this thread.");
        tx.rollback();
      }
    } catch (HibernateException ex) {
      throw new InfrastructureException(ex);
    } finally {
      closeSession();
    }
  }
View Full Code Here

      threadSession.set(null);
      if (session.isConnected() && session.isOpen()) {
        session.disconnect();
      }
    } catch (HibernateException ex) {
      throw new InfrastructureException(ex);
    }
    return session;
  }
View Full Code Here

TOP

Related Classes of dubious.sub.goobi.helper.encryption.exceptions.InfrastructureException

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.