public final ExecutorType executorType = ExecutorType.SIMPLE;
public ShardImpl(Set<ShardId> shardIds, SqlSessionFactory sqlSessionFactory){
this.shardIds = shardIds;
this.sqlSessionFactory = sqlSessionFactory;
this.exceptionTranslator = new MyBatisExceptionTranslator(
sqlSessionFactory.getConfiguration().getEnvironment().getDataSource(), true);
this.sqlSessionProxy = (SqlSession) Proxy.newProxyInstance(
SqlSessionFactory.class.getClassLoader(),
new Class[] { SqlSession.class },
new SqlSessionInterceptor());