com.jeesuite.mybatis.plugin.shard.TableRouteHandler Maven / Gradle / Ivy
package com.jeesuite.mybatis.plugin.shard;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import com.jeesuite.mybatis.core.InterceptorHandler;
import com.jeesuite.mybatis.plugin.InvocationVals;
import com.jeesuite.mybatis.plugin.JeesuiteMybatisInterceptor;
/**
* 分库自动路由处理
*
* @description
* @author vakin
* @date 2015年12月7日
* @Copyright (c) 2015, jwww
*/
public class TableRouteHandler implements InterceptorHandler,InitializingBean {
protected static final Logger logger = LoggerFactory.getLogger(TableRouteHandler.class);
@Override
public void afterPropertiesSet() throws Exception {
// TODO Auto-generated method stub
}
@Override
public Object onInterceptor(InvocationVals invocation) throws Throwable {
// TODO Auto-generated method stub
return null;
}
@Override
public void onFinished(InvocationVals invocation, Object result) {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see com.jeesuite.mybatis.core.InterceptorHandler#onStart()
*/
@Override
public void start(JeesuiteMybatisInterceptor context) {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see com.jeesuite.mybatis.core.InterceptorHandler#onClose()
*/
@Override
public void close() {
// TODO Auto-generated method stub
}
@Override
public int interceptorOrder() {
// TODO Auto-generated method stub
return 0;
}
}