Package org.openstreetmap.osmosis.pgsimple.common

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


      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

TOP

Related Classes of org.openstreetmap.osmosis.pgsimple.common.NoSuchRecordException

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.