Package org.evolizer.core.hibernate.session.api

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.uniqueResult()


  }

  private <T>T loadUniqueFromDB(String reloadQuery, Class<T> resultType) {
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      T result = s.uniqueResult(reloadQuery, resultType);
     
      return result;
    } catch (EvolizerException e) {
      fail(e.getMessage());
      return null;
View Full Code Here


      s.close();

      s = fSessionHandler.getCurrentSession(fDBUrl);

      T result = s.uniqueResult(reloadQuery, resultType);
      return result;
    } catch (EvolizerException e) {
      fail(e.getMessage());
      return null;
    }
View Full Code Here

       
        //Before I even open the wizard, I check that some history was already imported, otherwise I won't proceed.
        EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
        try {
            IEvolizerSession persistenceProvider = handler.getCurrentSession(project);
            Long res = persistenceProvider.uniqueResult("select count (*) from Release", Long.class);
            if (res == null || res <= 0) {
                MessageDialog.openError(activeShell, "Missing File Content Importer Error", "No history was imported yet.\nFile content cannot be imported if no history was imported beforehand.");
                return null;
            }
        } catch (EvolizerException e) {
View Full Code Here

  }
 
  private <T>T loadUnique(String reloadQuery, Class<T> resultType) {
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      T result = s.uniqueResult(reloadQuery, resultType);
     
      return result;
    } catch (EvolizerException e) {
      fail(e.getMessage());
      return null;
View Full Code Here

      s.close();

      s = fSessionHandler.getCurrentSession(fDBUrl);

      T result = s.uniqueResult(reloadQuery, resultType);
      return result;
    } catch (EvolizerException e) {
      fail(e.getMessage());
      return null;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.