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 --- .../trunk/site-publish/workingwithconventions.html | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 site/trunk/site-publish/workingwithconventions.html (limited to 'site/trunk/site-publish/workingwithconventions.html') diff --git a/site/trunk/site-publish/workingwithconventions.html b/site/trunk/site-publish/workingwithconventions.html new file mode 100644 index 0000000000..1aef87bc97 --- /dev/null +++ b/site/trunk/site-publish/workingwithconventions.html @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + Apache Tuscany : WorkingWithConventions + + + + + + + + + + + + + + + +
+ + + + +   + +
+ + +
+
+ + + + + + + + + +
+  Apache Tuscany > Home > DAS Overview > DAS Java > DAS Java Documentation Menu > DAS Java Developer Guide > RDB DAS Java > RDB DAS - User Guide > WorkingWithConventions + + User List | Dev List | Issue Tracker   +
+ + + + + + + +
+ + +
+ +
+
+

WorkingWithConventions

+ +

The RDB DAS makes use of a concept referred to as ConventionOverConfiguration. This concept reflects the notion that configuration can be avoided by following convention and that this is generally a good thing.

+ +

The DAS offers several conventions to reduce the need for configuration and we are considering the addition of more. The following is the current set.

+ +

Primary Key

+ +

The DAS must know the primary key of a table in order to generate a correct INSERT, UPDATE or DELETE statement. The primary key definition can be provided in the configuration. However, if the tables follow the convention that the primary key is named "ID" then no configuration to define the key is necessary. In the absence of configuration to the contrary, the DAS will assume that a DataObject property named "ID" represents the key column in the underlying database table.

+ +

Foreign Key Relationships

+ +

Similar to the way primary keys are handled, the DAS will assume that a property named "xxx_ID" represents a foreign key column in the underling database and further, that this foreign key references table "xxx". If the application developer has the luxury of defining the database tables then the explicit definition of relationships via a config file is unnecessary if this convention can be followed.

+ +

TBD - What is the default name of the relationship?

+ +

Name Mappings

+ +

In the absence of configuration to the contrary, the DAS will use a simple implicit mapping from Table/Column names to DataObject Type/Property names. An example of this convention is provided in ConventionOverConfiguration.

+ +

Optimistic Concurrency Control

+ +

This section is TBD. As of the current M2 release candidate, the absence of OCC configuration means that no collision detection will be performed. We are considering having the default behavior be to overqualify the update statement with all modified columns.

+ +

Partial Update

+ +

Unless otherwise specified, the RDB DAS will default to a scheme where INSERT/UPDATE/DELETE statements are generated based on the change summary (ChangeSummaryProcessing) associated with the modified datagraph. The DAS will not generate an UPDATE statement that updates all table columns. Instead, the DAS will update only those columns that were actually modified in the graph.

+
+
+
+ + +
+ + + + + + website stats + + + + + + -- cgit v1.2.3