/* */ {
/* 95 */ throw new CreateException("Error checking if entity with primary pk " + pk + "exists: SQL returned no rows");
/* */ }
/* 97 */ if (rs.getInt(1) > 0)
/* */ {
/* 99 */ throw new DuplicateKeyException("Entity with primary key " + pk + " already exists");
/* */ }
/* */ }
/* */ catch (SQLException e)
/* */ {
/* 104 */ this.log.error("Error checking if entity exists", e);