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:
http://wiki.apache.org/ws/ColumnConverters

------------------------------------------------------------------------------
  
  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"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+ 
+   <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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to