Author: kwilliams
Date: Wed Apr 26 18:50:57 2006
New Revision: 397354
URL: http://svn.apache.org/viewcvs?rev=397354&view=rev
Log:
Cleaning up Command interface (TUSCANY-230)
Modified:
incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/ApplyChangesCommand.java
incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/wrapper/MappingWrapper.java
Modified:
incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/ApplyChangesCommand.java
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/ApplyChangesCommand.java?rev=397354&r1=397353&r2=397354&view=diff
==============================================================================
---
incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/ApplyChangesCommand.java
(original)
+++
incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/ApplyChangesCommand.java
Wed Apr 26 18:50:57 2006
@@ -16,8 +16,6 @@
*/
package org.apache.tuscany.das.rdb;
-import java.io.IOException;
-import java.io.InputStream;
import java.sql.Connection;
import commonj.sdo.DataObject;
@@ -99,83 +97,5 @@
* commit/rollback
*/
public void setConnection(Connection connection, boolean
manageTransactions);
-
- /**
- * Add relationship metadata necessary for processing query results.
This is
- * an alternative to providing the same information in a config file.
- *
- * @param parent
- * a name identifying the relationship parent key (example:
- * "CUSTOMER.ID")
- * @param child
- * a name identifying the relationship child key
- * ("ORDER.CUSTOMER_ID")
- */
- public void addRelationship(String parent, String child);
-
- /**
- * Add relationship metadata necessary for processing query results.
This is
- * an alternative to providing the same information in a config file.
- *
- * @param parentKey
- * the parent key for the relationship
- * @param childKey
- * the child key in the relationship
- * @see Key
- */
- public void addRelationship(Key parentKey, Key childKey);
-
- /**
- * Add primary key metadata. This is an alternative to providing the
same
- * information in a config file.
- *
- * @param pk
- * the string identifying a prmary key. (Example:
"CUSTOMER.ID")
- */
- public void addPrimaryKey(String columnName);
-
- /**
- * Add primary key metadata. This is an alternative to providing the
same
- * information in a config file.
- *
- * @param key
- * the primary key
- * @see Key
- */
- public void addPrimaryKey(Key key);
-
- /**
- * Adds a column to be used in a optimistic concurrency control (OCC)
- * strategy. The generated UPDATE statement will include a overqualified
- * where clause using this column
- *
- * @param columnName
- * the name of the column to be used for OCC
- */
- public void addCollisionColumn(String columnName);
-
- /**
- * Add metadata that indicate a column is a generated primary key.
- *
- * @param string
- * the name of the generated primary key column. Example
- * ("COMPANY.ID")
- */
- public void addGeneratedPrimaryKey(String columnName);
-
- /**
- * Associate a [EMAIL PROTECTED] Converter} with a column to be used by
this command.
- * This is an alternative to providing the same information in a config
- * file.
- *
- * @param name
- * the name of the column being assigned a converter
(example:
- * "CUSTOMER.LASTNAME")
- * @param converterName
- * the name of the converter instance being assigned
(example:
- * org.company.project.StringConverter)
- * @see Converter
- **/
- public void addConverter(String name, String converterName);
}
Modified:
incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/wrapper/MappingWrapper.java
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/wrapper/MappingWrapper.java?rev=397354&r1=397353&r2=397354&view=diff
==============================================================================
---
incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/wrapper/MappingWrapper.java
(original)
+++
incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/wrapper/MappingWrapper.java
Wed Apr 26 18:50:57 2006
@@ -82,9 +82,10 @@
if (name.equals(wrapper.getPropertyName()))
return t;
}
+ return null;
- throw new RuntimeException("Table with property name " + name
- + " not found.");
+// throw new RuntimeException("Table with property name " + name
+// + " not found.");
}