Skip to content

Commit

Permalink
[update][writer][oracle] Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Apr 30, 2024
1 parent 143e107 commit 4897020
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Reader;
import java.io.StringReader;
import java.math.BigDecimal;
import java.sql.Clob;
import java.sql.Connection;
Expand All @@ -51,8 +49,6 @@
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CommonRdbmsWriter
{
Expand Down Expand Up @@ -603,23 +599,5 @@ protected String calcValueHolder(String columnType)
{
return VALUE_HOLDER;
}

private String stringInsertByInterval(String original, String insertString, int interval) {
if (original == null) return "";
int len = original.length();
if (interval >= len) return original;

String rtnString = original;
List<String> strList = new ArrayList<>();
Pattern p = Pattern.compile("(.{" + interval + "}|.*)");
Matcher m = p.matcher(original);
while (m.find()) {
strList.add(m.group());
}
strList = strList.subList(0, strList.size() - 1);
rtnString = StringUtils.join(strList, insertString);
rtnString = "'TO_CLOB('" + rtnString + "')";
return rtnString;
}
}
}

0 comments on commit 4897020

Please sign in to comment.