Module bus.pager

Class RegexWithNolock

java.lang.Object
org.miaixz.bus.pager.dialect.replace.RegexWithNolock
All Implemented Interfaces:
ReplaceSql

public class RegexWithNolock extends Object implements ReplaceSql
正则处理 with(nolock),转换为一个 table_PAGEWITHNOLOCK
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • WITHNOLOCK

      protected String WITHNOLOCK
  • Constructor Details

    • RegexWithNolock

      public RegexWithNolock()
  • Method Details

    • replace

      public String replace(String sql)
      Description copied from interface: ReplaceSql
      临时替换后用于 jsqlparser 解析
      Specified by:
      replace in interface ReplaceSql
      Parameters:
      sql - SQL
      Returns:
      the string
    • restore

      public String restore(String sql)
      Description copied from interface: ReplaceSql
      还原经过解析后的 sql
      Specified by:
      restore in interface ReplaceSql
      Parameters:
      sql - SQL
      Returns:
      the string