From 200a40b332420f94992eb39a6d0ea1cf1490ffc4 Mon Sep 17 00:00:00 2001 From: coreyg Date: Fri, 21 Nov 2014 09:30:19 +0000 Subject: Adding tuscany's website to their svn repo for svnpubsub git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1640879 13f79535-47bb-0310-9956-ffa450edef68 --- ...nfigurable-database-generated-keys-support.html | 126 +++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 site/trunk/site-publish/configurable-database-generated-keys-support.html (limited to 'site/trunk/site-publish/configurable-database-generated-keys-support.html') diff --git a/site/trunk/site-publish/configurable-database-generated-keys-support.html b/site/trunk/site-publish/configurable-database-generated-keys-support.html new file mode 100644 index 0000000000..3635ec4144 --- /dev/null +++ b/site/trunk/site-publish/configurable-database-generated-keys-support.html @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + Apache Tuscany : Configurable database generated keys support + + + + + + + + + + + + + + + +
+ + + + +   + +
+ + +
+
+ + + + + + + + + +
+  Apache Tuscany > Home > DAS Overview > DAS Java > DAS Java Documentation Menu > DAS Java Developer Guide > RDB DAS Java > RDB DAS - User Guide > Configurable database generated keys support + + User List | Dev List | Issue Tracker   +
+ + + + + + + +
+ + +
+ +
+
+

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.

+ +
+
<Config xmlns="http:///org.apache.tuscany.das.rdb/config.xsd" useGetGeneratedKeys="false">
+</Config>
+
+
+
+
+
+ + +
+ + + + + + website stats + + + + + + -- cgit v1.2.3