| |
---|
| | break; |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | try (PreparedStatement ps = con.prepareStatement("INSERT INTO "+ TABLE_NAME +"(gid,lat,lon,fixed,idref,area,up) VALUES(0,?,?,?,?,?,2)")) { |
---|
| | try (PreparedStatement ps = con.prepareStatement("INSERT INTO "+ TABLE_NAME +"(gid,lat,lon,fixed,idref,area,up,fixed1) VALUES(0,?,?,?,?,?,2,0)")) { |
---|
| | double lat = Double.parseDouble(latStr); |
---|
| | double lon = Double.parseDouble(lonStr); |
---|
| | ps.setDouble(1, lat); |
---|
| | ps.setDouble(2, lon); |
---|
| | ps.setInt(3, 0); |
---|
| | ps.setString(4, idStr); |
---|
| | ps.setInt(5, areacode); |
---|
| | System.out.println("INSERT INTO "+ TABLE_NAME +"("+ idStr +", lat="+ lat +", lon="+ lon +", fixed=0, area="+ areacode +", up=2)"); |
---|
| | System.out.println("INSERT INTO "+ TABLE_NAME +"("+ idStr +", lat="+ lat +", lon="+ lon +", fixed=0, area="+ areacode +", up=2, fixed1=0)"); |
---|
| | ps.executeUpdate(); |
---|
| | } |
---|
| | } |
---|
| | |
---|
| |
---|
| | |
|