Examples of DaoException


Examples of com.germinus.mashupbuilder.dao.DAOException

                pstmt.setNull(3, Types.VARCHAR);
            }
            result = pstmt.executeUpdate();
            con.commit();
        } catch (SQLException ex) {
            throw new DAOException(ex);
        } finally {
            DBUtils.closeStatement(pstmt);
            DBUtils.closeConnection(con);
        }
        return result;
View Full Code Here

Examples of com.google.code.lightssh.common.dao.DaoException

      throw new SecurityException( "该角色名称'"+role.getName()+"'已经存在!" );
    */
    if( update ){
      Role db_role = get( role );
      if( db_role == null )
        throw new DaoException( "该角色已不存在,不能进行修改操作!" );
     
      db_role.setName( role.getName() );
      db_role.setDescription( role.getDescription() );
      //修改审核拒绝的角色进入待审核列表
      if(AuditStatus.AUDIT_REJECT.equals(db_role.getStatus()))
View Full Code Here

Examples of com.ibatis.dao.client.DaoException

   */
  public Object insert(String id, Object parameterObject) {
    try {
      return getSqlMapExecutor().insert(id, parameterObject);
    } catch (SQLException e) {
      throw new DaoException("Failed to insert - id ["
          + id + "], parameterObject [" + parameterObject + "]. Cause: " + e, e);
    }
  }
View Full Code Here

Examples of com.ibatis.db.dao.DaoException

      throws DaoException {
    try {
      sqlMap.startTransaction();
      return new SqlMap2DaoTransaction(sqlMap);
    } catch (SQLException e) {
      throw new DaoException("Error getting transaction. Cause: " + e, e);
    }
  }
View Full Code Here

Examples of com.nagarro.jsag.fjt.commons.exceptions.DAOException

            SQLExceptionHandler.LOG.debug(DebugMessages.ROOT_CAUSE.getMessage(),
                    ThrowableUtils.getRootCause(sqlException));
            SQLExceptionHandler.LOG.debug(DebugMessages.STACK_TRACE.getMessage(), sqlException);
            SQLExceptionHandler.LOG.debug(MethodUtils.successMessage());
        }
        throw new DAOException(DAOException.DEFAULT_MESSAGE, sqlException);
    }
View Full Code Here

Examples of com.spoledge.audao.db.dao.DaoException

        if (ret > 1) {
            String err = "More than one record deleted";
            log.error( err + " for " + sqlLog( cond, params ));

            throw new DaoException( err );
        }

        return ret == 1;
    }
View Full Code Here

Examples of dao.DAOException

            ps.executeUpdate();//update les valeurs entrees
           
            ps.close();

        } catch (SQLException ex) {
            throw new DAOException("problème insertion du sportif à l'épreuve individuelle", ex);

        } finally {
            closeConnection(conn);
        }
View Full Code Here

Examples of de.paulwein.notes.dao.DAOException

      pm.deletePersistent(notesList);

      pm.currentTransaction().commit();
    } catch (Exception ex) {
      pm.currentTransaction().rollback();
      throw new DAOException();
    } finally {
      pm.close();
    }
  }
View Full Code Here

Examples of de.sub.goobi.helper.exceptions.DAOException

  }

  public Projekt get(Integer id) throws DAOException {
    Projekt rueckgabe = (Projekt) retrieveObj(Projekt.class, id);
    if (rueckgabe == null) {
      throw new DAOException("Object can not be found in database");
    }
    return rueckgabe;
  }
View Full Code Here

Examples of edu.indiana.dlib.metsnav.dao.DAOException

        if (null != pageNum && !"".equals(pageNum)) {
            try {
                currentPageNum = Integer.valueOf(pageNum).intValue();
            } catch (NumberFormatException nfex) {
                log.error("The format of page number is incorrect: " + pageNum);
                throw new DAOException("The format of page number is incorrect: " + pageNum, nfex);
            }
        } else {
            currentPageNum = 1;
        }

        int total = navigateObject.getPhysicalStruct().size();
        if (currentPageNum < 1) {
            currentPageNum = 1;
        }
        if (currentPageNum > total) {
            currentPageNum = total;
        }

        AtomicItem page = getPageItem(currentPageNum);
        if (page == null) {
            throw new DAOException("The page number is incorrect: " + pageNum);
        }
        /*
         * page.setAltMessage(navigateObject.getDescription() + ": Page " +
         * currentPageNum + " of " + total);
         */
 
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.