db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmars...@Sourcery.Org>
Subject Re: Accessing JDBC30 methods with jdk131
Date Tue, 18 Jan 2005 19:10:01 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel John Debrunner wrote:

> How about option 3)
>
> Make the getStatement() method in BrokeredStatement public and have code
> something like
>
>    if (stmt instance BrokeredPreparedStatement)
>        EmbedPreparedStatement eps = (EmbedPreparedStatement)
> (BrokeredPreparedStatement) stmt.getStatement());
>
>
>     then you have direct access to what you require.
>
> Dan.
>
>

OK this works great for the BrokeredPreparedStatement, but we also use
reflection to call Connection.prepareStatement with holdability (in case
a jdk14 client specified CLOSE_CURSORS_AT_COMMIT).  For this one we
can't use the same trick of exposing getRealConnection() in
BrokeredConnection because the prepared statement won't be properly wrapped.

This is the call we need:

public PreparedStatement prepareStatement(String sql,
                                          int resultSetType,
                                          int resultSetConcurrency,
                                          int resultSetHoldability)
                                   throws SQLException


any ideas for this one?


Thanks

Kathey

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB7V8JG0h36bFmkocRAgvIAJ9nb+HzrshePy6wg15uoQlMxD2yxQCfTFkR
1b7n4TuMHr6gn47SWfj8fuU=
=Gd3f
-----END PGP SIGNATURE-----

Mime
View raw message