Examples of DAOException


Examples of in.partake.model.dao.DAOException

                return new Postgres9Entity(id, version, body, opt, updatedAt != null ? new DateTime(updatedAt.getTime()) : null);
            } else {
                return null;
            }
        } catch (SQLException e) {
            throw new DAOException(e);
        } finally {
            close(rs);
            close(ps);
        }
    }
View Full Code Here

Examples of in.partake.model.dao.DAOException

            ps = con.prepareStatement("DELETE FROM " + tableName + " WHERE id = ?");
            ps.setObject(1, id, Types.OTHER);

            ps.execute();
        } catch (SQLException e) {
            throw new DAOException(e);
        } finally {
            close(ps);
        }
    }
View Full Code Here

Examples of it.eng.qbe.datasource.configuration.dao.DAOException

  // ============================================================
 
  public JarFileRetriever(File datamartsDir) {
    Assert.assertNotNull(datamartsDir, "Parameter [datamartsDir] cannot be null");
    if(!datamartsDir.exists()) {
      throw new DAOException("Folder [" + datamartsDir.getName() + "] does not exist.");
    }
    if(!datamartsDir.isDirectory()) {
      throw new DAOException("File [" + datamartsDir.getName() + "] is not a folder.");
    }
    this.setDatamartsDir(datamartsDir);
  }
View Full Code Here

Examples of net.sourceforge.jivalo.fw.dao.exception.DAOException

            this.ds = ( DataSource ) ic.lookup( getDataSourceName() );
        }
        catch ( NamingException e )
        {
            throw new DAOException( "Failed to lookup DataSource", e );
        }
    }
View Full Code Here

Examples of nl.clockwork.common.dao.DAOException

        }
      );
    }
    catch (Exception e)
    {
      throw new DAOException(e);
    }
  }
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.DAOException

    public void create(GFileTO aFileTO)
        throws DAOException {
        File target = new File(root, aFileTO.getPath());
       
        if ( target.exists() ) {
            throw new DAOException("{" + target.getAbsolutePath() +
                "} already exist. Can not write state.");
        }
       
        if ( GFile.NULL != aFileTO.getStream() ) {
            writeFileContent(aFileTO, target);
View Full Code Here

Examples of org.apache.stonehenge.stocktrader.dal.DAOException

    if (StockTraderUtility.ORDER_TYPE_SELL.equals(orderType)) {
      // CHECKME holding is the argument
      holding = orderDAO.getHolding(holdingID);
      if (holding == null) {
        throw new DAOException("No holding entry found for HoldingID<"
            + holdingID + ">");
      }
      order = orderDAO.createOrder(userID, holding.getQuoteID(),
          StockTraderUtility.ORDER_TYPE_SELL, holding.getQuantity(),
          holdingID);

    } else if (StockTraderUtility.ORDER_TYPE_SELL_ENHANCED
        .equals(orderType)) {
      holding = orderDAO.getHolding(holdingID);
      if (holding == null) {
        throw new DAOException("No holding entry found for HoldingID<"
            + holdingID + ">");
      }
      if (quantity > holding.getQuantity()) {
        order = orderDAO.createOrder(userID, holding.getQuoteID(),
            StockTraderUtility.ORDER_TYPE_SELL, holding
View Full Code Here

Examples of org.eweb4j.orm.dao.DAOException

          int rs = (Integer) JdbcUtil.update(con, sqls[0]);
          ids[i] = rs;
        }
      }
    } catch (Exception e) {
      throw new DAOException("", e);
    }

    return ids;
  }
View Full Code Here

Examples of org.mapache.data.DAOException

            stmt.setString(4, newUser.getPassword());
            stmt.setString(5, newUser.getEmail());
            stmt.setString(6, newUser.getHomepage());
            stmt.execute();
        } catch (SQLException e) {
            throw new DAOException("Unable to create new user in database ",
                                   e);
        }
    }
View Full Code Here

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
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.