Class ExpressionUtil
- java.lang.Object
-
- me.danwi.sqlex.core.query.expression.ExpressionUtil
-
public class ExpressionUtil extends java.lang.Object表达式辅助类
-
-
Constructor Summary
Constructors Constructor Description ExpressionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetParameterPlaceholder(java.lang.Object value)获取参数占位符static SQLParameterBindtoSQL(Expression expression)表达式转换成SQL,并保留参数绑定信息
-
-
-
Method Detail
-
getParameterPlaceholder
public static java.lang.String getParameterPlaceholder(java.lang.Object value)
获取参数占位符- Parameters:
value- 参数值- Returns:
- 占位符
-
toSQL
public static SQLParameterBind toSQL(Expression expression)
表达式转换成SQL,并保留参数绑定信息- Parameters:
expression- 表达式树- Returns:
- 参数bind信息
-
-