Here you can find the source of quoteMonetDbValue(String value)
public static String quoteMonetDbValue(String value)
//package com.java2s; //License from project: Apache License public class Main { /**//from w ww. j a va2s . co m * Put escaped quotes around a value. */ public static String quoteMonetDbValue(String value) { return "'" + value.replaceAll("\\\\", "\\\\\\\\").replaceAll("'", "\\\\'") + "'"; } }