public interface PermissionProvider
Data permission provider interface that defines the logic for generating data permission SQL segments.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.sf.jsqlparser.expression.ExpressiongetSqlSegment(net.sf.jsqlparser.schema.Table table, net.sf.jsqlparser.expression.Expression where, String mappedStatementId) Retrieves the data permission SQL segment.
-
Method Details
-
getSqlSegment
default net.sf.jsqlparser.expression.Expression getSqlSegment(net.sf.jsqlparser.schema.Table table, net.sf.jsqlparser.expression.Expression where, String mappedStatementId) Retrieves the data permission SQL segment.- Parameters:
table- the database table information, including table name and aliaswhere- the original WHERE conditionmappedStatementId- the MyBatis MappedStatement ID, used to determine the specific execution method- Returns:
- a JSqlParser conditional expression that will be appended to the original WHERE condition, not overwriting it
-