The NullValueClassConverter plugin is shipped with the JDBC connector. To use the NullValueClassConverter for endpoints other than JDBC endpoints, configure the Java Connector Server to load the converter.
Note: The converter is loaded automatically for JDBC endpoints.
Note: The property metadataPropNames has a value of useSpecialNullValue. Add the metadataPropNames metadata attribute to the Connector Xpress Dyn mapping to each attribute that plugin handles. The Java Connector Server checks for the presence of this metadata attribute before enabling the plugin.
To enable the plugin, configure the plugin in an override connector.xml for your endpoint.
To configure the Java Connector Server to load the NullValueClassConverter
<property name="classPluginConfigs"> <list> <bean class="com.ca.jcs.cfg.MetaPluginConfig"> <property name="pluginClass"> <value>com.ca.jcs.converter.meta.NullValueClassConverter</value> </property> <property name="pluginConfig"> <bean class="com.ca.jcs.converter.meta.NullValueClassConverter$NullValueConverterConfig"> <property name="nullValue"> <value> </value> </property> </bean> </property> <property name="metadataPropNames"> <list> <value>useSpecialNullValue</value> </list> </property> </bean> </list> </property>
Note: The property nullValue in the pluginConfig class in the NullValueClassConverter is set to a space by default. To change the null value the plugin uses, change the nullValue in the config bean.
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |