public class PluginUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PluginUtils.BoundSqlSqlSource |
| 构造器和说明 |
|---|
PluginUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Dialect |
getDialect(org.apache.ibatis.executor.Executor executor)
不关闭 Connection,因为是从事务里获取的,sqlSession会负责关闭
|
static Dialect |
getDialect(String jdbcUrl)
根据连接地址判断数据库类型
|
static org.apache.ibatis.mapping.MappedStatement |
newMappedStatement(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
String sql) |
static <T> T |
readXml(InputStream is,
Class<T> clazz)
read xml
|
public static Dialect getDialect(org.apache.ibatis.executor.Executor executor)
executor - Executorpublic static Dialect getDialect(String jdbcUrl)
jdbcUrl - 连接地址public static org.apache.ibatis.mapping.MappedStatement newMappedStatement(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
String sql)
public static <T> T readXml(InputStream is, Class<T> clazz) throws JAXBException
T - pojo classis - inputstreamclazz - pojo classJAXBException - jaxb exceptionCopyright © 2024. All rights reserved.