Package com.ibatis.dao.client

Examples of com.ibatis.dao.client.DaoException


  public List find(String s) {
    try {
      return getSession().find(s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here


  public List find(String s, Object o, Type type) {
    try {
      return getSession().find(s, o, type);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public List find(String s, Object[] objects, Type[] types) {
    try {
      return getSession().find(s, objects, types);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Iterator iterate(String s) {
    try {
      return getSession().iterate(s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Iterator iterate(String s, Object o, Type type) {
    try {
      return getSession().iterate(s, o, type);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Iterator iterate(String s, Object[] objects, Type[] types) {
    try {
      return getSession().iterate(s, objects, types);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Collection filter(Object o, String s) {
    try {
      return getSession().filter(o, s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Collection filter(Object o, String s, Object o1, Type type) {
    try {
      return getSession().filter(o, s, o1, type);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Collection filter(Object o, String s, Object[] objects, Type[] types) {
    try {
      return getSession().filter(o, s, objects, types);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public JdbcDaoTransaction(DataSource dataSource) {
    try {
      connection = dataSource.getConnection();
      if (connection == null) {
        throw new DaoException("Could not start transaction.  Cause: The DataSource returned a null connection.");
      }
      if (connection.getAutoCommit()) {
        connection.setAutoCommit(false);
      }
      if (connectionLog.isDebugEnabled()) {
        connection = ConnectionLogger.newInstance(connection);
      }
    } catch (SQLException e) {
      throw new DaoException("Error starting JDBC transaction.  Cause: " + e);
    }
  }
View Full Code Here

TOP

Related Classes of com.ibatis.dao.client.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.