Details
Description
With Java 6 a new method setNClob(int,java.io.Reader) has been added to java.sql.PreparedStatement. As this interface is implemented by org.castor.cpa.persistence.sql.query.PreparedStatementMock the new method has to be implemented in this class to compile Castor with Java 6.
Looking into this there are not only a bunch of methods that have been added to PreparedStatement with Java 6, they also refer to new classes of java.sql package. To be able to compile Castor with Java 5 and 6 we have to wrap our PreparedStatementMock by a dynamic proxy. To make the changes of this issue obvious I also change its summary.