Here you can find the source of convertObjectToSqlSyntaxe(Object value)
private static String convertObjectToSqlSyntaxe(Object value)
//package com.java2s; //License from project: LGPL public class Main { private static String convertObjectToSqlSyntaxe(Object value) { String valuesSql = "''"; if (value != null) { if (value instanceof String) { valuesSql = "'" + ((String) value).replaceAll("'", "''") + "'"; } else if (value instanceof Boolean) { valuesSql = "" + ((Boolean) value ? 1 : 0); } else { valuesSql = value.toString(); }/*from w w w .j a v a 2s . c o m*/ } return valuesSql; } }