- All Known Implementing Classes:
RegexWithNolock,SimpleWithNolock
public interface ReplaceSql
Interface for replacing and restoring SQL statements. Implementations of this interface can modify SQL for parsing
and then revert it to its original form.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
-
Method Details
-
replace
Temporarily replaces parts of the SQL statement for jsqlparser parsing.- Parameters:
sql- the original SQL statement- Returns:
- the modified SQL statement suitable for parsing
-
restore
Restores the SQL statement after it has been parsed and potentially modified.- Parameters:
sql- the SQL statement that was previously replaced and parsed- Returns:
- the restored SQL statement
-