public Object sqlToJava(Object source) throws ConversionException
{
if(source == null) return null;
if (!(source instanceof Integer))
{
throw new ConversionException(
"Wrong java field type when java-->sql, expected java.lang.Integer, found "
+ source.getClass());
}
return new Long(((Integer) source).longValue());
}