Package org.olat.core.logging

Examples of org.olat.core.logging.DBRuntimeException


      }
      setInTransaction(false);
      this.committed = true;
    } catch (HibernateException e) {
      setErrorAndRollback(e);
      throw new DBRuntimeException("DB commit failed. Could not commit transaction: " + this , e);
    }
  }
View Full Code Here


        // OLAT-3621: raising log level from WARN to ERROR to have this pop up in tests more. plus added a stacktrace for debugging ease.
        Tracing.logError("Could not call hibernateTransaction.rollback() because is not Active or already rolledback", new Exception("DBTransaction.rollback()"), this.getClass());
      }
      this.rolledBack = true;
    } catch (HibernateException e) {
      throw new DBRuntimeException("DB rollback transaction failed. ", e);
    }
  }
View Full Code Here

      }
      return li;
    }
    catch (HibernateException he) {
      String msg ="Error in list()" ;
      throw new DBRuntimeException(msg, he);
    } finally {
      Codepoint.codepoint(getClass(), "list-exit", query);
    }
  }
View Full Code Here

  public String[] getNamedParameters() {
    try {
      return query.getNamedParameters();
    }
    catch (HibernateException e) {
      throw new DBRuntimeException("GetNamedParameters failed. ", e);
   
  }
View Full Code Here

   
    try {
      return query.getReturnTypes();
    }
    catch (HibernateException e) {
      throw new DBRuntimeException("GetReturnTypes failed. ", e);
    }
  }
View Full Code Here

  public Iterator iterate() {
    try {
      return query.iterate();
    }
    catch (HibernateException e) {
      throw new DBRuntimeException("Iterate failed. ", e);
    }
  }
View Full Code Here

  public DBQuery setParameter(int position, Object val) {
    try {
      query.setParameter(position, val);
    }
    catch (HibernateException e) {
      throw new DBRuntimeException("DBQuery error. ", e);
    }
    return this;
  }
View Full Code Here

  public DBQuery setParameter(String name, Object val) {
    try {
      query.setParameter(name, val);
    }
    catch (HibernateException e) {
      throw new DBRuntimeException("DBQuery error. ", e);
    }
    return this;
  }
View Full Code Here

  public DBQuery setParameterList(String name, Collection vals, Type type) {
    try {
      query.setParameterList(name, vals, type);
    }
    catch (HibernateException e) {
      throw new DBRuntimeException("DBQuery error. ", e);
    }
    return this;
  }
View Full Code Here

  public DBQuery setParameterList(String name, Collection vals) {
    try {
      query.setParameterList(name, vals);
    }
    catch (HibernateException e) {
      throw new DBRuntimeException("DBQuery error. ", e);
    }
    return this;
  }
View Full Code Here

TOP

Related Classes of org.olat.core.logging.DBRuntimeException

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.