ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Ws Wiki] Update of "ColumnConverters" by KevinWilliams
Date Fri, 27 Oct 2006 04:30:18 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.

The following page has been changed by KevinWilliams:

  This example just shows a simple read of a customer !DataObject followed setting the last
name to some new value.  You will have to take my word for it that the value is not written
as-is but is instead obfuscated.  The actual value written to the database table column is
"Fbzr arj anzr" based on the ROT13 algorithm used in the converter.
+ Converters are specified in the configuration, usually as part of a config.xml file.  Here
is the config file for the example:
+ {{{
+ <Config xsi:noNamespaceSchemaLocation="http:///org.apache.tuscany.das.rdb/config.xsd"
+   <Command name="getFirstCustomer" SQL="Select * from CUSTOMER where ID = 1" kind="Select"/>
+   <Table tableName="CUSTOMER">
+ 	<Column columnName="ID" primaryKey="true"/>
+     <Column columnName="LASTNAME" converterClassName="org.apache.tuscany.das.rdb.test.mappings.StringObfuscationConverter"/>
+   </Table>
+ </Config>
+ }}}

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message