Examples of NoSuchRecordException


Examples of org.openstreetmap.osmosis.pgsimple.common.NoSuchRecordException

      selectUserStatement.setLong(1, userId);
     
      resultSet = selectUserStatement.executeQuery();
     
      if (!resultSet.next()) {
        throw new NoSuchRecordException("User " + userId + " doesn't exist.");
      }
      user = buildUser(resultSet);
     
      resultSet.close();
      resultSet = null;
View Full Code Here

Examples of org.openstreetmap.osmosis.pgsimple.common.NoSuchRecordException

      getStatement.setLong(1, entityId);
     
      resultSet = getStatement.executeQuery();
     
      if (!resultSet.next()) {
        throw new NoSuchRecordException(entityMapper.getEntityName()
            + " " + entityId + " doesn't exist.");
      }
      entity = entityMapper.parseRecord(resultSet);
     
      resultSet.close();
View Full Code Here

Examples of org.openstreetmap.osmosis.pgsnapshot.common.NoSuchRecordException

    OsmUser user;
   
    try {
      user = jdbcTemplate.queryForObject(SELECT_USER, rowMapper, userId);
    } catch (EmptyResultDataAccessException e) {
      throw new NoSuchRecordException("User " + userId + " doesn't exist.", e);
    }
   
    return user;
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.pgsnapshot.common.NoSuchRecordException

   
    try {
      entity = jdbcTemplate.queryForObject(entityMapper.getSqlSelect(true, false), entityMapper.getRowMapper(),
          entityId);
    } catch (EmptyResultDataAccessException e) {
      throw new NoSuchRecordException(entityMapper.getEntityName()
          + " " + entityId + " doesn't exist.", e);
    }
   
    return entity;
  }
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.