Here you can find the source of quote(String tableName)
public static String quote(String tableName)
//package com.java2s; /* (c) 2017 Open Source Geospatial Foundation - all rights reserved * This code is licensed under the GPL 2.0 license, available at the root * application directory./*from w w w . j a va2s . c o m*/ */ public class Main { public static String quote(String tableName) { String[] parts = tableName.split("\\."); StringBuffer sb = new StringBuffer(); for (String part : parts) { sb.append("\"").append(part).append("\"").append("."); } sb.setLength(sb.length() - 1); return sb.toString(); } }