public class OrderByHelper extends Object implements org.apache.ibatis.plugin.Interceptor
| 构造器和说明 |
|---|
OrderByHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clear()
清除本地变量
|
static String |
getOrderBy() |
static boolean |
hasOrderBy(org.apache.ibatis.mapping.MappedStatement ms)
是否已经处理过
|
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation) |
static void |
orderBy(String orderBy)
增加排序
|
Object |
plugin(Object target) |
static void |
processIntercept(org.apache.ibatis.plugin.Invocation invocation)
不支持注解形式(ProviderSqlSource)的增加order by
|
void |
setProperties(Properties properties) |
public static String getOrderBy()
public static void orderBy(String orderBy)
orderBy - public static void clear()
public static boolean hasOrderBy(org.apache.ibatis.mapping.MappedStatement ms)
ms - public static void processIntercept(org.apache.ibatis.plugin.Invocation invocation)
throws Throwable
invocation - Throwablepublic Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
intercept 在接口中 org.apache.ibatis.plugin.InterceptorThrowablepublic void setProperties(Properties properties)
setProperties 在接口中 org.apache.ibatis.plugin.InterceptorCopyright © 2015. All rights reserved.