Interface Template
- All Known Implementing Classes:
Template.Default, Templates
public interface Template
模板接口。
模板是可信 SQL 片段,使用 {} 占位;框架不做注入校验。模板参数在 WHERE/ON 等
条件中会绑定为 ?,在 SELECT 列表中会被当作字面量。
禁止将终端用户输入作为模板内容。
- Author:
- Maning
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
-
Field Details
-
FUNCTION_PRECEDENCE
static final int FUNCTION_PRECEDENCE函数默认优先级最高- See Also:
-
-
Method Details
-
of
-
name
-
precedence
default int precedence()优先级,越大越优先,作用于操作符- Returns:
- 优先级
-
template
-