On Fri, May 07, 2004 at 07:05:04PM -0400, graham king wrote:
> I've been battling through a BMP ejb and now I'm a bit frazzled. I'm stuck at a
> point where I begin using the
> Connection.prepareStatement("statement",Statement.RETURN_GENERATED_KEYS);
> Everything compiles fine, but, during runtime I'm getting the following error:
>
> java.sql.SQLException: method not implemented
> at
> org.openejb.resource.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:333)
> at
> com.thejanehuts.dao.agreement_feature.CmySQLAgreementFeatureDAO.insertAgreementFeature(CmySQLAgreementFeatureDAO.java:41)
>
> So, the prepare statement connection method which returns AUTOGENKEYS isn't
> supported?
Looks to be not supported. Here is the code:
public java.sql.PreparedStatement prepareStatement(String sql, int
autoGeneratedKeys) throws java.sql.SQLException {
throw new SQLException("method not implemented");
}
It's a JDBC 3 set of fucntionality which are not even there. If you
have a driver that supports JDBC 3 and are willing to fill in the
related methods in JdbcConnection, I'm willing to check it in.
-David