/* * @(#)ShardedSqlSessionTemplate.java 2012-8-1 下午10:00:00 * * Copyright (c) 2011-2012 Makersoft.org all rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * */ package org.makersoft.shards.spring; import java.sql.Connection; import java.util.List; import java.util.Map; import org.apache.ibatis.executor.BatchResult; import org.apache.ibatis.session.Configuration; import org.apache.ibatis.session.ResultHandler; import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.springframework.beans.factory.InitializingBean; /** * */ public class ShardedSqlSessionTemplate implements SqlSession, InitializingBean{ public ShardedSqlSessionTemplate(SqlSessionFactory sqlSessionFactory) { } @Override public <T> T selectOne(String statement) { return null; } @Override public <T> T selectOne(String statement, Object parameter) { return null; } @Override public <E> List<E> selectList(String statement) { return null; } @Override public <E> List<E> selectList(String statement, Object parameter) { return null; } @Override public <E> List<E> selectList(String statement, Object parameter, RowBounds rowBounds) { // TODO Auto-generated method stub return null; } @Override public <K, V> Map<K, V> selectMap(String statement, String mapKey) { // TODO Auto-generated method stub return null; } @Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) { // TODO Auto-generated method stub return null; } @Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds) { // TODO Auto-generated method stub return null; } @Override public void select(String statement, Object parameter, ResultHandler handler) { // TODO Auto-generated method stub } @Override public void select(String statement, ResultHandler handler) { // TODO Auto-generated method stub } @Override public void select(String statement, Object parameter, RowBounds rowBounds, ResultHandler handler) { // TODO Auto-generated method stub } @Override public int insert(String statement) { // TODO Auto-generated method stub return 0; } @Override public int insert(String statement, Object parameter) { // TODO Auto-generated method stub return 0; } @Override public int update(String statement) { // TODO Auto-generated method stub return 0; } @Override public int update(String statement, Object parameter) { // TODO Auto-generated method stub return 0; } @Override public int delete(String statement) { // TODO Auto-generated method stub return 0; } @Override public int delete(String statement, Object parameter) { // TODO Auto-generated method stub return 0; } @Override public void commit() { // TODO Auto-generated method stub } @Override public void commit(boolean force) { // TODO Auto-generated method stub } @Override public void rollback() { // TODO Auto-generated method stub } @Override public void rollback(boolean force) { // TODO Auto-generated method stub } @Override public List<BatchResult> flushStatements() { // TODO Auto-generated method stub return null; } @Override public void close() { // TODO Auto-generated method stub } @Override public void clearCache() { // TODO Auto-generated method stub } @Override public Configuration getConfiguration() { // TODO Auto-generated method stub return null; } @Override public <T> T getMapper(Class<T> type) { // TODO Auto-generated method stub return null; } @Override public Connection getConnection() { // TODO Auto-generated method stub return null; } @Override public void afterPropertiesSet() throws Exception { } }