跳过导航链接
A B C D F G I J M N Q R S U 

A

AbstractDataSource - com.mario6.common.db.datasource中的类
抽象的数据源头 复制来自spring-jdbc
AbstractDataSource() - 类 的构造器com.mario6.common.db.datasource.AbstractDataSource
 
AutoKey<T> - com.mario6.common.db中的类
对数据库自增主键数据的抽象
AutoKey() - 类 的构造器com.mario6.common.db.AutoKey
 
AutoKey.IntegerAutoKey - com.mario6.common.db中的类
自增数据类型为Integer的数据模型
AutoKey.LongAutoKey - com.mario6.common.db中的类
数据库自动生成的主键为Long的数据类型
AutoKey.StringAutoKey - com.mario6.common.db中的类
数据库自动生成的主键为String类型

B

BeanRowMapper<T> - com.mario6.common.db.mapper中的类
通过反射获得对应POJO对象 注:反射对象类型必须拥有一个默认构造函数
begin() - 类 中的静态方法com.mario6.common.db.DataSourceManager
开始事务

C

call(String, Object[], int[]) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
camelToSnake(String) - 类 中的静态方法com.mario6.common.db.util.Utils
驼峰命名转蛇形
checkIdInfo() - 类 中的方法com.mario6.common.db.mapper.ClassInfo
 
ClassInfo<T> - com.mario6.common.db.mapper中的类
存储类的反射得到的一些信息
ClassInfo.FieldInfo - com.mario6.common.db.mapper中的类
字段信息
closeConnection() - 类 中的方法com.mario6.common.db.JdbcTemplate
 
closeConnection(Connection) - 类 中的静态方法com.mario6.common.db.util.JdbcUtils
关闭数据库连接
closeResultSet(ResultSet) - 类 中的静态方法com.mario6.common.db.util.JdbcUtils
关闭结果集
closeStatement(Statement) - 类 中的静态方法com.mario6.common.db.util.JdbcUtils
关闭Statement语句
com.mario6.common.db - 程序包 com.mario6.common.db
 
com.mario6.common.db.datasource - 程序包 com.mario6.common.db.datasource
 
com.mario6.common.db.mapper - 程序包 com.mario6.common.db.mapper
 
com.mario6.common.db.util - 程序包 com.mario6.common.db.util
 
commit() - 类 中的静态方法com.mario6.common.db.DataSourceManager
提交事务
count(String) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
count(String, List) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
count(String, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
countForLong(String, List) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
countForLong(String, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
createByDefaultConstructor() - 类 中的方法com.mario6.common.db.mapper.ClassInfo
创建该类型的一个实例,通过无参构造函数
createInstance(Properties) - 类 中的静态方法com.mario6.common.db.datasource.JdbcDataSource
获得数据连接源头

D

DataAccessException - com.mario6.common.db中的异常错误
数据库访问异常类
DataAccessException(String, Throwable) - 异常错误 的构造器com.mario6.common.db.DataAccessException
 
DataAccessException(Throwable) - 异常错误 的构造器com.mario6.common.db.DataAccessException
 
DataAccessException(String) - 异常错误 的构造器com.mario6.common.db.DataAccessException
 
DataSourceManager - com.mario6.common.db中的类
数据源管理 主要提供连接获取和事务管理
DataSourceManager() - 类 的构造器com.mario6.common.db.DataSourceManager
 
doGetUpdateSetSqlSnippet(T, boolean, boolean) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得更新sql的set片段

F

FieldInfo(Field) - 类 的构造器com.mario6.common.db.mapper.ClassInfo.FieldInfo
 
fill(List<?>, T) - 类 中的静态方法com.mario6.common.db.util.Utils
填充集合并返回

G

get() - 类 中的方法com.mario6.common.db.AutoKey
 
getColumnName() - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
 
getConnection() - 类 中的方法com.mario6.common.db.datasource.JdbcDataSource
 
getConnection(String, String) - 类 中的方法com.mario6.common.db.datasource.JdbcDataSource
 
getConnection(DataSource) - 类 中的静态方法com.mario6.common.db.DataSourceManager
获取一个连接
getCurrentConnection(DataSource) - 类 中的静态方法com.mario6.common.db.DataSourceManager
 
getField() - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
 
getFieldName() - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
 
getFieldsInfo() - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得所有字段的信息
getIdName(boolean) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得主键名称
getIdType() - 类 中的方法com.mario6.common.db.mapper.ClassInfo
 
getIdValue(T) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得主键值
getInsertColumns(boolean) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得insert语句的列列表
getInsertColumnsSelective(T, boolean) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得insert语句的列列表, 对null敏感
getInsertValues(T) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得insert语句的列的值
getInsertValuesSelective(T) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得insert语句的列的值,对null敏感
getLoginTimeout() - 类 中的方法com.mario6.common.db.datasource.AbstractDataSource
Returns 0, indicating the default system timeout is to be used.
getLogWriter() - 类 中的方法com.mario6.common.db.datasource.AbstractDataSource
LogWriter methods are not supported.
getName(boolean) - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
获得对应数据库字段名称
getParentLogger() - 类 中的方法com.mario6.common.db.datasource.AbstractDataSource
 
getSnakeName() - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
 
getTableName(boolean) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得表名
getType() - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
 
getUpdateSetSqlSnippet(boolean) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得update语句set中的代码段
getUpdateSetSqlSnippetSelective(T, boolean) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得更新语句set中的代码段,对插入对象null敏感
getUpdateSetValues(T) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
获得update语句所需要的插入值
getUpdateSetValuesSelective(T) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
呼的update语句所玉箫的插入值,对null敏感
getValue(Object) - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
 

I

isAutoClose() - 类 中的方法com.mario6.common.db.JdbcTemplate
当前是否自动关闭连接
isTransactionFlag() - 类 中的静态方法com.mario6.common.db.DataSourceManager
 
isTransient() - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
 
isWrapperFor(Class<?>) - 类 中的方法com.mario6.common.db.datasource.AbstractDataSource
 

J

JdbcDataSource - com.mario6.common.db.datasource中的类
Jdbc数据源
JdbcTemplate - com.mario6.common.db中的类
数据库访问工具类 线程安全的
JdbcTemplate(DataSource) - 类 的构造器com.mario6.common.db.JdbcTemplate
 
JdbcUtils - com.mario6.common.db.util中的类
Jdbc工具类 主要提供关闭相关资源
JdbcUtils() - 类 的构造器com.mario6.common.db.util.JdbcUtils
 
join(String, List<? extends CharSequence>) - 类 中的静态方法com.mario6.common.db.util.Utils
连接成字符串
join(String, String, List<? extends CharSequence>) - 类 中的静态方法com.mario6.common.db.util.Utils
字符连接
join(String, String, String, List<? extends CharSequence>) - 类 中的静态方法com.mario6.common.db.util.Utils
字符串连接

M

main(String[]) - 类 中的静态方法com.mario6.common.db.util.Utils
 
MapRowMapper - com.mario6.common.db.mapper中的类
数据库行记录映射为Map对象

N

newInstance(Class<T>, boolean) - 类 中的静态方法com.mario6.common.db.mapper.BeanRowMapper
 
newInstance(Class<T>, boolean) - 类 中的静态方法com.mario6.common.db.mapper.ClassInfo
静态工厂方法
newInstance(Class<T>) - 类 中的静态方法com.mario6.common.db.mapper.ClassInfo
 
newInstance() - 类 中的静态方法com.mario6.common.db.mapper.MapRowMapper
 
newInstance(Class<T>) - 类 中的静态方法com.mario6.common.db.mapper.SingleColumnRowMapper
 
newInstanceWithInteger() - 类 中的静态方法com.mario6.common.db.AutoKey
返回一个代表整型的自增值的对象
newInstanceWithLong() - 类 中的静态方法com.mario6.common.db.AutoKey
返回一个代表Long的自增值的对象
newInstanceWithString() - 类 中的静态方法com.mario6.common.db.AutoKey
返回一个代表String的自增值的对象
newInstanceWithType(Class) - 类 中的静态方法com.mario6.common.db.AutoKey
 
newInstantce(Class<T>) - 类 中的静态方法com.mario6.common.db.mapper.BeanRowMapper
 

Q

query(String, RowMapper<T>) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
query(String, RowMapper<T>, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
query(String, List, RowMapper<T>) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
query(String, List) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
query(String) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
query(String, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForList(String, Class<T>) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForList(String, Class<T>, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForList(String, List, Class<T>) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String, List, RowMapper<T>) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String, RowMapper<T>) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String, RowMapper<T>, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String, List) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String, Class<T>) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String, Class<T>, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
queryForObject(String, List, Class<T>) - 类 中的方法com.mario6.common.db.JdbcTemplate
 

R

rollback() - 类 中的静态方法com.mario6.common.db.DataSourceManager
回滚事务
rowMap(ResultSet) - 类 中的方法com.mario6.common.db.mapper.BeanRowMapper
 
rowMap(ResultSet) - 类 中的方法com.mario6.common.db.mapper.MapRowMapper
 
rowMap(ResultSet) - 接口 中的方法com.mario6.common.db.mapper.RowMapper
 
rowMap(ResultSet) - 类 中的方法com.mario6.common.db.mapper.SingleColumnRowMapper
 
RowMapper<T> - com.mario6.common.db.mapper中的接口
数据库行结果集映射为特定对象的接口

S

set(T) - 类 中的方法com.mario6.common.db.AutoKey
 
setAutoClose(boolean) - 类 中的方法com.mario6.common.db.JdbcTemplate
设置自动关闭标志值
setIdValue(T, Object) - 类 中的方法com.mario6.common.db.mapper.ClassInfo
设置主键值
setLoginTimeout(int) - 类 中的方法com.mario6.common.db.datasource.AbstractDataSource
Setting a login timeout is not supported.
setLogWriter(PrintWriter) - 类 中的方法com.mario6.common.db.datasource.AbstractDataSource
LogWriter methods are not supported.
setValue(T, Object) - 类 中的方法com.mario6.common.db.mapper.ClassInfo.FieldInfo
 
SingleColumnRowMapper<T> - com.mario6.common.db.mapper中的类
单列的行映射 支持的类型: 基本类型以及对应包装类型 工具时间、java.sql.Date、java.sql.Time 其他情况使用rs.getObject();
snakeToCamel(String) - 类 中的静态方法com.mario6.common.db.util.Utils
蛇形转驼峰命名

U

unwrap(Class<T>) - 类 中的方法com.mario6.common.db.datasource.AbstractDataSource
 
update(String) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
update(String, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
update(String, List) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
update(String, AutoKey) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
update(String, AutoKey, Object...) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
update(String, List, AutoKey) - 类 中的方法com.mario6.common.db.JdbcTemplate
 
Utils - com.mario6.common.db.util中的类
 
Utils() - 类 的构造器com.mario6.common.db.util.Utils
 
A B C D F G I J M N Q R S U 
跳过导航链接