类 MybatisHelper
- java.lang.Object
-
- net.sinodawn.framework.mybatis.MybatisHelper
-
@Component public class MybatisHelper extends Object
-
-
构造器概要
构造器 构造器 说明 MybatisHelper()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static ConnectiongetConnection()static StringgetKeyPrefix()static StringgetMapperContent(Class<? extends GenericMapper<?>> mapperClazz)static StringgetMapperContent(String mapperId)static org.apache.ibatis.session.SqlSessionFactorygetSqlSessionFactory()static StringgetStatementContent(String mappedStatementId)voidinit()static voidremoveDraftMapper(String menuId, String mapperId)static voidremoveKeyPrefix()static voidremoveRuntimeMapper(String resource)static voidsetDraftMapper(String menuId, String mapperId)static voidsetKeyPrefix(String prefix)static voidupdateRuntimeConfiguration()static voidupdateRuntimeMapper(String mapperXmlContent, String prefix, String resource)
-
-
-
方法详细资料
-
init
@PostConstruct public void init()
-
getSqlSessionFactory
public static org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
-
getConnection
public static Connection getConnection()
-
updateRuntimeConfiguration
public static void updateRuntimeConfiguration()
-
removeRuntimeMapper
public static void removeRuntimeMapper(String resource)
-
updateRuntimeMapper
public static void updateRuntimeMapper(String mapperXmlContent, String prefix, String resource)
-
getMapperContent
public static String getMapperContent(Class<? extends GenericMapper<?>> mapperClazz)
-
setKeyPrefix
public static void setKeyPrefix(String prefix)
-
removeKeyPrefix
public static void removeKeyPrefix()
-
getKeyPrefix
public static String getKeyPrefix()
-
-