Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pInsertOid = connection.prepareStatement(INSERT_OID_SQL, Statement.RETURN_GENERATED_KEYS);
- // fill in the prepared statement and
- pInsertOid.executeUpdate();
- ResultSet rs = pInsertOid.getGeneratedKeys();
- if (rs.next()) {
- int newId = rs.getInt(1);
- oid.setId(newId);
- }
Add Comment
Please, Sign In to add comment