You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by co...@apache.org on 2007/09/13 08:38:00 UTC

[CONF] Apache Tuscany: Configurable database generated keys support (page created)

Configurable database generated keys support (TUSCANY) created by Amita Vadhavkar
   http://cwiki.apache.org/confluence/display/TUSCANY/Configurable+database+generated+keys+support

Content:
---------------------------------------------------------------------

h1. Configurable database generated keys support

New boolean attribute in Config - "generatedKeysSupported" (default value=TRUE). User can set true/false for this in Config. If not set in Config, JDB Metadata API check supportsGetGeneratedKeys() is done to detect whether to use auto generated keys during insert. 

This gived user flexibility to turn on/off support for database generated keys during INSERT based on the
database vendor/driver version in use. Particularly when user is sure that the DBMS driver does not support
autogenerated keys, he can configure FALSE value through config as below.

Note: For Derby, always assumed generatedKeysSupported=TRUE. This is because current Derby API return FALSE for supportsGetGeneratedKeys(), as it is partially implemented, but in DAS context, this support is sufficient.

{noformat}
<Config xmlns="http:///org.apache.tuscany.das.rdb/config.xsd" useGetGeneratedKeys="false">
</Config>
{noformat}

---------------------------------------------------------------------
CONFLUENCE INFORMATION
This message is automatically generated by Confluence

Unsubscribe or edit your notifications preferences
   http://cwiki.apache.org/confluence/users/viewnotifications.action

If you think it was sent incorrectly contact one of the administrators
   http://cwiki.apache.org/confluence/administrators.action

If you want more information on Confluence, or have a bug to report see
   http://www.atlassian.com/software/confluence



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org