Package org.milyn.scribe

Examples of org.milyn.scribe.DaoException


   */
  public Object update(String id, Object entity) {
    try {
      sqlMapClient.update(id, entity);
    } catch (SQLException e) {
      throw new DaoException("Exception throw while executing update with statement id '" + id + "' and entity '" + entity + "'", e);
    }
    return null;
  }
View Full Code Here


   */
  public Object insert(String id, Object entity) {
    try {
      sqlMapClient.insert(id, entity);
    } catch (SQLException e) {
      throw new DaoException("Exception throw while executing insert with statement id '" + id + "' and entity '" + entity + "'", e);
    }

    return null;
  }
View Full Code Here

   */
  public Object delete(String id, Object entity) {
    try {
      sqlMapClient.delete(id, entity);
    } catch (SQLException e) {
      throw new DaoException("Exception throw while executing delete with statement id '" + id + "' and entity '" + entity + "'", e);
    }

    return null;
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  public Collection<Object> lookup(String id, Map<String, ?> parameters) {
    try {
      return sqlMapClient.queryForList(id, parameters);
    } catch (SQLException e) {
      throw new DaoException("Exception throw while executing query with statement id '" + id + "' and parameters '" + parameters + "'", e);
    }
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  public Collection<Object> lookup(String id, Object ... parameters) {
    try {
      return sqlMapClient.queryForList(id, parameters);
    } catch (SQLException e) {
      throw new DaoException("Exception throw while executing query with statement id '" + id + "' and parameters '" + parameters + "'", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.milyn.scribe.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.