Module bus.pager

Class SimpleWithNolock

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

public class SimpleWithNolock extends Object implements ReplaceSql
简单处理 with(nolock)
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • WITHNOLOCK

      protected String WITHNOLOCK
  • Constructor Details

    • SimpleWithNolock

      public SimpleWithNolock()
  • 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