I\'m getting an Exception while trying to insert a row in oracle table. I\'m using ojdbc5.jar for oracle 11 this is the sql i\'m trying
INSERT INTO rule_def
When you don't have access to the oracle.jdbc.PreparedStatement class (and are forced to use java.sql.PreparedStatement, which does not support the methods #setXXXAtName()), the proposed solution to use named parameters is not an option.
I've used the PreparedStatement and GeneratedKeyHolder approach for the mandatory values to be passed (luckily less than 7), and used the generated primary key returned to issue a simple SQL update for the remaining values.