Converter converter = getQuirks().converterOf(value.getClass());
if (converter == null) {
// let's try to add parameter AS IS
return value;
}
return converter.toDatabaseParam(value);
}
public <T> Query addParameter(String name, Class<T> parameterClass, T value){
//TODO: must cover most of types: BigDecimal,Boolean,SmallInt,Double,Float,byte[]
if(InputStream.class.isAssignableFrom(parameterClass))