com.alicloud.openservices.tablestore.jdbc.StringUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tablestore-jdbc Show documentation
Show all versions of tablestore-jdbc Show documentation
Aliyun TableStore JDBC Driver Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com
package com.alicloud.openservices.tablestore.jdbc;
public class StringUtils {
public static String quoteIdentifier(String identifier, String quoteChar) {
if (identifier == null) {
return null;
}
int quoteCharLength = quoteChar.length();
if (quoteCharLength == 0) {
return identifier;
}
return quoteChar + identifier.replaceAll(quoteChar, quoteChar + quoteChar) + quoteChar;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy