Package com.ibatis.dao.client

Examples of com.ibatis.dao.client.DaoException


  public void replicate(Object o, ReplicationMode replicationMode) {
    try {
      getSession().replicate(o, replicationMode);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here


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

  public void save(Object o, Serializable serializable) {
    try {
      getSession().save(o, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

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

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

  public void update(Object o, Serializable serializable) {
    try {
      getSession().update(o, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

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

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

      if (properties.containsKey("SqlMapConfigURL")) {
        reader = Resources.getUrlAsReader((String) properties.get("SqlMapConfigURL"));
      } else if (properties.containsKey("SqlMapConfigResource")) {
        reader = Resources.getResourceAsReader((String) properties.get("SqlMapConfigResource"));
      } else {
        throw new DaoException("SQLMAP transaction manager requires either 'SqlMapConfigURL' or 'SqlMapConfigResource' to be specified as a property.");
      }
      client = SqlMapClientBuilder.buildSqlMapClient(reader, properties);
    } catch (IOException e) {
      throw new DaoException("Error configuring SQL Map.  Cause: " + e);
    }
  }
View Full Code Here

  public void delete(Object o) {
    try {
      getSession().delete(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, 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.