Here you can find the source of bigDecimalToDbString(BigDecimal bd)
public static String bigDecimalToDbString(BigDecimal bd)
//package com.java2s; import java.math.BigDecimal; public class Main { /**/*ww w .j a va 2 s . c om*/ * Converts the BigDecimal {@code bd} into something formatted properly * for MySQL. The current implementation simply converts a null input to the * String "NULL"; returns {@code bd.toString()} otherwise. */ public static String bigDecimalToDbString(BigDecimal bd) { return (bd == null) ? "NULL" : bd.toString(); } }