And if you use Byte and Short, you can get something uglier. But you
can also use this prettier one below:
<$
identify currentValueType = attribute.javaValueClassName$><$
if currentValueType == 'Number'$><$
if attribute.valueType == 'B'$><$
identify currentValueType = 'BigDecimal'$><$
elseif attribute.valueType == 'b'$><$
identify currentValueType = 'Byte'$><$
elseif attribute.valueType == 'd'$><$
identify currentValueType = 'Double'$><$
elseif attribute.valueType == 'f'$><$
identify currentValueType = 'Float'$><$
elseif attribute.valueType == 'i'$><$
identify currentValueType = 'Integer'$><$
elseif attribute.valueType == 'l'$><$
identify currentValueType = 'Long'$><$
elseif attribute.valueType == 's'$><$
identify currentValueType = 'Short'$><$
endif$><$
endif$>
Kind regards,
--
Francis Labrie
ms