Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addComment(String) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
-
给sql加上注释,返回加完注释之后的sql
- addGroupBy(String...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- addGroupBy(String...) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- addGroupByWithParam(String, Object...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- addGroupByWithParam(String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- addOrderBy(String...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- addOrderBy(String...) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- addOrderByWithParam(String, Object...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- addOrderByWithParam(String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- afterDelete(List<Object>, int) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
delete后执行
- afterInsert(List<Object>, int) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
insert后执行
- afterSelect(Class<?>, String, List<Object>, List<T>, long) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
select后执行。不会拦截getCount计算总数和getAllKey只查询key这2个接口。
- afterUpdate(List<Object>, int) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
update后执行
- alias() - Element in annotation type com.pugwoo.dbhelper.annotation.JoinLeftTable
-
表别名
- alias() - Element in annotation type com.pugwoo.dbhelper.annotation.JoinRightTable
-
表别名
- alias() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
表别名,默认是t,该别名目前仅对查询操作生效
- allSameClass(Collection<T>) - Static method in class com.pugwoo.dbhelper.sql.SQLAssert
- and(WhereSQL) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
功能同addAnd,注意:只会读取参数whereSQL的条件和参数,因此需要注意whereSQL里【不能】存在order/group by/limit等子句
- and(WhereSQLForNamedParam) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
功能同addAnd,注意:只会读取参数whereSQL的条件和参数,因此需要注意whereSQL里【不能】存在order/group by/limit等子句
- and(String) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- and(String, Object...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- and(String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- andIf(boolean, WhereSQL) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- andIf(boolean, WhereSQLForNamedParam) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- andIf(boolean, String) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- andIf(boolean, String, Object...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- andIf(boolean, String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- AnnotationSupportRowMapper<T> - Class in com.pugwoo.dbhelper.utils
-
2015年1月13日 17:48:30
抽取出来的根据注解来生成bean的rowMapper - AnnotationSupportRowMapper(DBHelper, Class<T>) - Constructor for class com.pugwoo.dbhelper.utils.AnnotationSupportRowMapper
- AnnotationSupportRowMapper(DBHelper, Class<T>, boolean) - Constructor for class com.pugwoo.dbhelper.utils.AnnotationSupportRowMapper
- applicationContext - Variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- AUTO_ADD_ORDER_FOR_PAGINATION - Enum constant in enum com.pugwoo.dbhelper.enums.FeatureEnum
-
分页是否自动加上order by子句,默认[开启];分页强烈建议加上order by排序,否则分页结果可能不正确
- AUTO_EXPLAIN_SLOW_SQL - Enum constant in enum com.pugwoo.dbhelper.enums.FeatureEnum
-
是否自动对慢SQL进行explain分析,默认[开启]
- AUTO_SUM_NULL_TO_ZERO - Enum constant in enum com.pugwoo.dbhelper.enums.FeatureEnum
-
如果计算列是sum()函数,那么则将sum函数包一层COALESCE(SUM(column),0),将null值转成0.
- autoSetSoftDeleted(DatabaseTypeEnum, String, Class<?>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
- autoSetSoftDeleted(DatabaseTypeEnum, String, Class<?>, String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
自动为【最后】where sql字句加上软删除查询字段。 说明:不支持virtualTable虚拟表。
- autoTrimString() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
是否自动去除字符串字段两端的空白,仅对String类型有效。该设置的优先级高于Table注解的autoTrimString属性。
值为1表示自动去除两端空白,值为0表示不去除,值为-1不设置,如果Table的autoTrimString属性也为-1时,不自动去除 - autoTrimString() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
是否自动去除String类型的字段两端的空白。该设置的优先级低于Table注解的autoTrimString属性。
值为1表示自动去除两端空白,值为0表示不去除,值为-1不设置,如果Column的autoTrimString属性也为-1时,不自动去除
B
- BadSQLSyntaxException - Exception Class in com.pugwoo.dbhelper.exception
- BadSQLSyntaxException() - Constructor for exception class com.pugwoo.dbhelper.exception.BadSQLSyntaxException
- BadSQLSyntaxException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.BadSQLSyntaxException
- BadSQLSyntaxException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.BadSQLSyntaxException
- BasicTypeResult() - Constructor for class com.pugwoo.dbhelper.utils.TypeAutoCast.BasicTypeResult
- BatchUpdateResultDTO() - Constructor for class com.pugwoo.dbhelper.sql.SQLUtils.BatchUpdateResultDTO
- beforeDelete(List<Object>) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
delete前执行,包括软删除和物理删除
- beforeInsert(List<Object>) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
insert前执行
- beforeSelect(Class<?>, String, List<Object>) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
select前执行。不会拦截getCount计算总数和getAllKey只查询key这2个接口。
- beforeUpdate(List<Object>, String, List<Object>) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
update前执行
- beforeUpdateAll(Class<?>, String, List<String>, List<Object>, List<Object>) - Method in interface com.pugwoo.dbhelper.DBHelperInterceptor
-
update前执行
C
- callback(long, String, List<Object>) - Method in interface com.pugwoo.dbhelper.IDBHelperSlowSqlCallback
-
超时sql回调
- cast(Object, Class<T>) - Static method in class com.pugwoo.dbhelper.utils.TypeAutoCast
-
自动转换类型
- casVersion() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
乐观锁,当字段为乐观锁时,它必须是Integer或Long类型,默认初始值为1, 当乐观锁失败时抛出CasVersionNotMatchException。 该特性仅对update和updateCustom方法生效,对updateAll不生效。 限制一个DO类最多只能有一个casVersion字段。 新增和更新会自动设置该字段的值,因此不需要在数据库和程序中手动去修改该值。
- CasVersionNotMatchException - Exception Class in com.pugwoo.dbhelper.exception
-
当乐观锁版本不匹配时,抛出异常
- CasVersionNotMatchException() - Constructor for exception class com.pugwoo.dbhelper.exception.CasVersionNotMatchException
- CasVersionNotMatchException(int, String) - Constructor for exception class com.pugwoo.dbhelper.exception.CasVersionNotMatchException
- CasVersionNotMatchException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.CasVersionNotMatchException
- CasVersionNotMatchException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.CasVersionNotMatchException
- ClassInfoCache - Class in com.pugwoo.dbhelper.cache
-
缓存类相关信息
- ClassInfoCache() - Constructor for class com.pugwoo.dbhelper.cache.ClassInfoCache
- CLICKHOUSE - Enum constant in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
- Column - Annotation Type in com.pugwoo.dbhelper.annotation
-
2015年1月12日 16:34:32 数据表列的信息
- com.pugwoo.dbhelper - package com.pugwoo.dbhelper
- com.pugwoo.dbhelper.annotation - package com.pugwoo.dbhelper.annotation
- com.pugwoo.dbhelper.cache - package com.pugwoo.dbhelper.cache
- com.pugwoo.dbhelper.enums - package com.pugwoo.dbhelper.enums
- com.pugwoo.dbhelper.exception - package com.pugwoo.dbhelper.exception
- com.pugwoo.dbhelper.impl - package com.pugwoo.dbhelper.impl
- com.pugwoo.dbhelper.impl.part - package com.pugwoo.dbhelper.impl.part
- com.pugwoo.dbhelper.json - package com.pugwoo.dbhelper.json
- com.pugwoo.dbhelper.model - package com.pugwoo.dbhelper.model
- com.pugwoo.dbhelper.sql - package com.pugwoo.dbhelper.sql
- com.pugwoo.dbhelper.utils - package com.pugwoo.dbhelper.utils
- comment() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
列注释
- comment() - Element in annotation type com.pugwoo.dbhelper.annotation.JoinTable
-
表注释
- comment() - Element in annotation type com.pugwoo.dbhelper.annotation.RelatedColumn
-
列注释
- comment() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
表注释
- computed() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
计算列。注意:计算列的别名为value属性的值,不需要再写上as 别名。
- conditional() - Element in annotation type com.pugwoo.dbhelper.annotation.RelatedColumn
-
用于控制该RelateColumn是否启用的mvel脚本,其中使用变量t表示当前DO类实例。
当为空或返回true时启用该RelatedColumn属性,当返回false或mvel脚本报错时不启用。
说明:当正常返回false时,对于List的属性类型也会设置空List。但对于返回null或报错的情况,List属性值设置为null,更早暴露问题。 - copy() - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
复制出一个新的WhereSQL对象,两个对象独立
- copy() - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
复制出一个新的WhereSQL对象,两个对象独立
D
- DatabaseTypeEnum - Enum in com.pugwoo.dbhelper.enums
-
数据库类型枚举值
- dataService() - Element in annotation type com.pugwoo.dbhelper.annotation.RelatedColumn
-
外部查询数据接口或类,该接口或类必须实现IDBHelperDataService,且在Spring容器中能拿到。
- DATE_FORMAT_REGEXPS - Static variable in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
- DBHelper - Interface in com.pugwoo.dbhelper
-
2015年8月17日 18:18:57
- dbHelperBean() - Element in annotation type com.pugwoo.dbhelper.annotation.RelatedColumn
-
指定数据源DBHelper bean名称,此时将使用该DBHelper实例进行查询。
默认不需要指定,将使用当前DBHelper进行查询。 - DBHelperContext - Class in com.pugwoo.dbhelper.impl
-
DBHelper线程上下文,支持:
1. - DBHelperContext() - Constructor for class com.pugwoo.dbhelper.impl.DBHelperContext
- DBHelperInterceptor - Interface in com.pugwoo.dbhelper
-
2017年9月5日 11:12:00 数据库操作拦截器,拦截器的命名为[before|after][select|update|insert|delete],拦截器将影响全局,请谨慎使用。 拦截器是栈式的,按拦截器的顺序,before顺序调用,after逆序调用。 关于拦截器的设计想法: 1.
- decodeBase64(String) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- delete(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
自定义条件删除数据,该操作【会】自动使用软删除标记。 对于使用了拦截器和deleteValueScript的场景,该方法的实现是先根据条件查出数据,再批量删除,以便拦截器可以记录下实际被删的数据,此时删除性能可能比较差,请权衡使用。
- delete(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P5_DeleteOp
- delete(Collection<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
删除数据库记录,返回数据库实际修改条数。 推荐使用单个主键的表使用该方法,当list所有对象都是同一个类时,将会拼凑为一条sql进行删除,效率提升多。 该操作【会】自动使用软删除进行删除
- delete(Collection<T>) - Method in class com.pugwoo.dbhelper.impl.part.P5_DeleteOp
- delete(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
删除数据库记录,返回数据库实际修改条数。 该操作【会】自动使用软删除进行删除
- delete(T) - Method in class com.pugwoo.dbhelper.impl.part.P5_DeleteOp
- deleteHard(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
自定义条件删除数据(无论是否注解了软删除字段)。
对于使用了拦截器和deleteValueScript的场景,该方法的实现是先根据条件查出数据,再批量删除,以便拦截器可以记录下实际被删的数据,此时删除性能可能比较差,请权衡使用。 - deleteHard(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P5_DeleteOp
- deleteHard(Collection<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
硬删除数据库记录(无论是否注解了软删除字段),返回数据库实际修改条数。 推荐使用单个主键的表使用该方法,当list所有对象都是同一个类时,将会拼凑为一条sql进行删除,效率提升多。
- deleteHard(Collection<T>) - Method in class com.pugwoo.dbhelper.impl.part.P5_DeleteOp
- deleteHard(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
硬删除数据库记录(无论是否注解了软删除字段),返回数据库实际修改条数。
- deleteHard(T) - Method in class com.pugwoo.dbhelper.impl.part.P5_DeleteOp
- deleteValueScript() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
当设置了非空字符串时,在对象删除数据之前,会自动执行该mvel脚本获得值,并把值设置到DO中,再写入数据库(软删除时)。
说明:无论是否是软删除,该脚本都会被执行。
【特别注意】对于delete(Class clazz, String postSql, Object... - deserialize(JsonParser, DeserializationContext) - Method in class com.pugwoo.dbhelper.json.MultiDateDeserializer
- deserialize(JsonParser, DeserializationContext) - Method in class com.pugwoo.dbhelper.json.MultiLocalDateDeserializer
- deserialize(JsonParser, DeserializationContext) - Method in class com.pugwoo.dbhelper.json.MultiLocalDateTimeDeserializer
- deserialize(JsonParser, DeserializationContext) - Method in class com.pugwoo.dbhelper.json.MultiLocalTimeDeserializer
- disableCache() - Static method in interface com.pugwoo.dbhelper.DBHelper
-
关闭DBHelper的缓存,目前缓存DO类信息
- disableCache() - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
- DOInfoReader - Class in com.pugwoo.dbhelper.utils
-
2015年1月12日 16:42:26 读取DO的注解信息: 1.
- DOInfoReader() - Constructor for class com.pugwoo.dbhelper.utils.DOInfoReader
- DOInfoReader.RelatedField - Class in com.pugwoo.dbhelper.utils
E
- enableCache() - Static method in interface com.pugwoo.dbhelper.DBHelper
-
开启DBHelper的缓存,目前缓存DO类信息,默认开启
- enableCache() - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
-
全局开启缓存
- encodeBase64(byte[]) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- executeAfterCommit(Runnable) - Method in interface com.pugwoo.dbhelper.DBHelper
-
当前事务提交后执行
- executeAfterCommit(Runnable) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- executeRaw(String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
执行自行指定的SQL语句,支持in(?)表达式,支持INSERT UPDATE DELETE TRUNCATE操作
- executeRaw(String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P6_ExecuteOp
- executeRaw(String, Map<String, ?>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
执行自行指定的SQL语句,支持通过namedParameter的方式传入参数,支持in(?)表达式,支持INSERT UPDATE DELETE TRUNCATE操作
- executeRaw(String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.impl.part.P6_ExecuteOp
- extraWhere() - Element in annotation type com.pugwoo.dbhelper.annotation.RelatedColumn
-
当使用remoteColumn关联查询时,可以额外指定查询条件,
extraWhere值为where开始(如果有where条件,必须带where关键字)的sql子句,不支持传递参数,
可以写order by,例如order by create_time。
不建议使用limit,当存在limit子句时,将不会用批量查询的方式,性能会急剧下降。
重要:【当使用dataService时,该字段无效。】
F
- FeatureEnum - Enum in com.pugwoo.dbhelper.enums
-
特性枚举
- features - Variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- fetchSize - Variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- field - Variable in class com.pugwoo.dbhelper.utils.DOInfoReader.RelatedField
- fieldPrefix - Variable in class com.pugwoo.dbhelper.utils.DOInfoReader.RelatedField
-
当fieldType==1或2时,存放表的别名前缀
- fieldType - Variable in class com.pugwoo.dbhelper.utils.DOInfoReader.RelatedField
-
0=普通field; 1=leftJoinTable; 2=rightJoinTable
- filter(Collection<T>, Predicate<? super T>) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
-
filter一个list
- filter(T[], Predicate<? super T>) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
-
filter一个数组
- filterNonNull(Collection<T>) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- firstLetterUpperCase(String) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- FixedAndExpression - Class in com.pugwoo.dbhelper.sql
-
修复jsqlparser对于AND OR嵌套的优先级问题: 当AND里面有OR时,OR应该加上()
- FixedAndExpression(Expression, Expression) - Constructor for class com.pugwoo.dbhelper.sql.FixedAndExpression
- forceIndex() - Element in annotation type com.pugwoo.dbhelper.annotation.JoinLeftTable
-
强制使用索引,格式为: index1,index2
说明: 该字符串将原样放入到FORCE INDEX() 括弧中。 - forceIndex() - Element in annotation type com.pugwoo.dbhelper.annotation.JoinRightTable
-
【仅适用于MySQL】强制使用索引,格式为: index1,index2
说明: 该字符串将原样放入到FORCE INDEX() 括弧中。 - format(Date) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
转换成标准的格式 yyyy-MM-dd HH:mm:ss
- format(Date, String) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
- FORMAT_DATE - Static variable in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
日期格式
- FORMAT_STANDARD - Static variable in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
标准日期时间格式
- formatDate(Date) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
转换成标准的格式 yyyy-MM-dd
- formatWithMs(Date) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
带上毫秒的时间
G
- Generated - Annotation Type in com.pugwoo.dbhelper.utils
-
用于标记不纳入到单元测试覆盖率的代码
- genLimitSQL(DatabaseTypeEnum, Integer, Integer) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
拼凑limit字句。前面有空格。
- get(List<Object>, RelatedColumn, Class<?>, Class<?>) - Method in interface com.pugwoo.dbhelper.IDBHelperDataService
-
关联查询RelatedColumn的外部数据服务接口。
该接口适合于SOA或缓存的关联查询场景。 - getAffectedRows() - Method in exception class com.pugwoo.dbhelper.exception.CasVersionNotMatchException
- getAll(Class<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,查询所有记录,如果数据量大请慎用
【会自动处理软删除记录】 - getAll(Class<T>) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getAll(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,查询所有记录,postSql指定查询where及order by limit等后续语句。
【会自动处理软删除记录】 - getAll(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getAllForStream(Class<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,查询所有记录,以Stream形式返回
【特别注意】为了确保Stream方式查询有效,请确保jdbc的URL参数带上:useCursorFetch=true
说明:可以通过setFetchSize方法修改流式获取数据时,每次获取的数据条数
说明:Stream方式不会调用拦截器的afterQuery
【会自动处理软删除记录】 - getAllForStream(Class<T>) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getAllForStream(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,查询所有记录,postSql指定查询where及order by limit等后续语句。以Stream形式返回
【特别注意】为了确保Stream方式查询有效,请确保jdbc的URL参数带上:useCursorFetch=true
说明:可以通过setFetchSize方法修改流式获取数据时,每次获取的数据条数
说明:Stream方式不会调用拦截器的afterQuery
【会自动处理软删除记录】 - getAllForStream(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getAllKey(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,但只查询主键出来,postSql指定查询where及order by limit等后续语句。
【会自动处理软删除记录】 - getAllKey(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getAutoIncrementField(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
- getBatchUpdateSQL(DatabaseTypeEnum, Collection<T>, List<Object>, Field, Field, List<Field>, Class<?>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成批量update的sql
- getByCode(String) - Static method in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
- getByExample(T, int) - Method in interface com.pugwoo.dbhelper.DBHelper
-
根据给定的对象t查询跟t的非null值完全相等的记录。 因为很容易出现当t的全部属性全为null时,把整个表都查询出来的问题,特要求调用者给定limit参数,该参数为返回的最大条目数。
- getByExample(T, int) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getByJdbcProtocol(String) - Static method in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
- getByKey(Class<T>, Object) - Method in interface com.pugwoo.dbhelper.DBHelper
-
适合于只有一个Key的情况,多主键的情况请使用getOne
【会自动处理软删除记录】 - getByKey(Class<T>, Object) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getCasVersionColumn(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得一个DO类注解的casVersion字段
- getCode() - Method in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
- getCode() - Method in enum com.pugwoo.dbhelper.enums.JoinTypeEnum
- getCode() - Method in enum com.pugwoo.dbhelper.enums.ValueConditionEnum
- getColumnFields(Class<?>) - Static method in class com.pugwoo.dbhelper.cache.ClassInfoCache
-
获得clazz的所有Column字段
- getColumnName(DatabaseTypeEnum, String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
- getColumns(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得所有有@Column注解的列,包括继承的父类中的,顺序父类先
- getColumnsForSelect(Class<?>, boolean) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得所有有@Column注解的列,包括继承的父类中的,顺序父类先。 该方法只用于select读操作。
- getComputedColumn(DatabaseTypeEnum, Column, Map<FeatureEnum, Boolean>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
拿到computed SQL在特性开关的情况下的返回值。说明:调用此方法请确保计算列是非空的。
- getCount(Class<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
计算总数
【会自动处理软删除记录】 - getCount(Class<T>) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getCount(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
计算总数
【会自动处理软删除记录】 - getCount(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getCustomDeleteSQL(DatabaseTypeEnum, Class<T>, String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
获得自定义删除SQL,给物理删除的
- getCustomSoftDeleteSQL(DatabaseTypeEnum, Class<T>, String, Field) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
- getCustomUpdateSQL(DatabaseTypeEnum, T, List<Object>, String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
获得自定义更新的sql
- getData() - Method in class com.pugwoo.dbhelper.model.PageData
- getDatabaseType() - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询dbHelper对应的数据库类型
- getDatabaseType() - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- getDeleteSQL(DatabaseTypeEnum, T, List<Object>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
获得硬删除SQL
- getDeleteSqlByKeyField(DatabaseTypeEnum, Field) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
- getFeature(FeatureEnum) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- getField() - Method in exception class com.pugwoo.dbhelper.exception.RowMapperFailException
- getFieldByDBField(Class<?>, String, Field) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
从db字段名拿字段对象。
新增支持@JoinTable的支持,可以获得JoinTable类中的对象的Field - getFieldGetMethod(Field) - Static method in class com.pugwoo.dbhelper.cache.ClassInfoCache
-
获得field对应的method的缓存数据
- getFieldSetMethod(Field) - Static method in class com.pugwoo.dbhelper.cache.ClassInfoCache
-
获得field对应的method的缓存数据
- getFromRS(ResultSet, String, Field, DatabaseTypeEnum) - Static method in class com.pugwoo.dbhelper.utils.TypeAutoCast
-
从ResultSet中读出数据并转成成对应的类型,如果指定类型rs无法转换,则不转换。 2018年4月24日 11:48:32 新增支持标记为isJSON的列的处理。
- getGenericFieldType(Field) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得泛型的class
- getGlobalComment() - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
- getInsertDefaultValue(DatabaseTypeEnum) - Static method in class com.pugwoo.dbhelper.sql.SQLDialect
-
获得insert into语句中表达数据库默认值的关键字
- getInsertDefaultValueMap(String) - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
- getInsertSQL(DatabaseTypeEnum, T, List<Object>, boolean) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成insert语句insert into (...) values (?,?,?),将值放到values中。
- getInsertSQLForBatch(DatabaseTypeEnum, String, Collection<Map<String, Object>>, List<Object>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成insert语句insert into (...) values (?,?,?),将值放到values中。
- getInsertSQLForBatch(DatabaseTypeEnum, String, List<String>, Collection<Object[]>, List<Object>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成insert语句insert into (...) values (?,?,?),将值放到values中。
- getInsertSQLForBatch(DatabaseTypeEnum, Collection<T>, List<Object>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成insert语句insert into (...) values (?,?,?),将值放到values中。
- getInsertSQLForBatchForJDBCTemplate(DatabaseTypeEnum, String, Collection<Map<String, Object>>, List<Object[]>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成insert语句insert into (...) values (?,?,?),将值放到values中。 说明:这种方式是交给jdbc驱动来处理批量插入。
- getInsertSQLForBatchForJDBCTemplate(DatabaseTypeEnum, String, List<String>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成insert语句insert into (...) values (?,?,?),将值放到values中。 说明:这种方式是交给jdbc驱动来处理批量插入。
- getInsertSQLForBatchForJDBCTemplate(DatabaseTypeEnum, Collection<T>, List<Object[]>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成insert语句insert into (...) values (?,?,?),将值放到values中。 说明:这种方式是交给jdbc驱动来处理批量插入。
- getJdbcTemplate() - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- getJoinLeftTable(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得注解了@JoinLeftTable的字段,如果没有注解,抛出NoJoinTableMemberException
- getJoinRightTable(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得注解了@JoinRightTable的字段,如果没有注解,抛出NoJoinTableMemberException
- getJoinTable(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得clazz上注解的JoinTable,如果没有则返回null
- getKeyColumns(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得字段里面的key字段
- getKeyColumnsNoThrowsException(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得字段里面的key字段
- getKeysWhereSQL(DatabaseTypeEnum, T, List<Object>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
获得主键where子句,包含where关键字。会自动处理软删除条件
- getKeysWhereSQLWithoutSoftDelete(DatabaseTypeEnum, Class<?>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
获得主键where子句,包含where关键字
- getLogParams() - Method in class com.pugwoo.dbhelper.sql.SQLUtils.BatchUpdateResultDTO
- getLogSql() - Method in class com.pugwoo.dbhelper.sql.SQLUtils.BatchUpdateResultDTO
- getName() - Method in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
- getName() - Method in enum com.pugwoo.dbhelper.enums.JoinTypeEnum
- getName() - Method in enum com.pugwoo.dbhelper.enums.ValueConditionEnum
- getNameByCode(String) - Static method in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
- getNamedParameterJdbcTemplate() - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- getNotKeyColumns(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得字段里面的非key字段
- getNowDateTime(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.PreHandleObject
-
返回对应的类型的时间日期字符串,返回null表示不支持该clazz
- getOne(Class<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询一条记录,如果有多条,也只返回第一条。该方法适合于知道返回值只有一条记录的情况。
【会自动处理软删除记录】 - getOne(Class<T>) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getOne(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询一条记录,如果有多条,也只返回第一条。该方法适合于知道返回值只有一条记录的情况。
【会自动处理软删除记录】 - getOne(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getPage(Class<T>, int, int) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,没有查询条件
【会自动处理软删除记录】 - getPage(Class<T>, int, int) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getPage(Class<T>, int, int, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,postSql可以带查询条件
【会自动处理软删除记录】 - getPage(Class<T>, int, int, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getPageSize() - Method in class com.pugwoo.dbhelper.model.PageData
- getPageWithoutCount(Class<T>, int, int) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,没有查询条件;不查询总数
【会自动处理软删除记录】 - getPageWithoutCount(Class<T>, int, int) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getPageWithoutCount(Class<T>, int, int, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
查询列表,postSql可以带查询条件;不查询总数
【会自动处理软删除记录】 - getPageWithoutCount(Class<T>, int, int, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getParamLogEndIndex() - Method in class com.pugwoo.dbhelper.sql.InsertSQLForBatchDTO
- getParams() - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
获得参数列表
- getParams() - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
获得参数列表
- getRaw(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
执行自行指定的SQL查询语句
- getRaw(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getRaw(Class<T>, String, Map<String, ?>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
执行自行指定的SQL查询语句,支持通过namedParameter的方式传入参数,放到args里面
- getRaw(Class<T>, String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getRawForStream(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
执行自行指定的SQL查询语句,以流Stream的形式返回。
【特别注意】为了确保Stream方式查询有效,请确保jdbc的URL参数带上:useCursorFetch=true
说明:可以通过setFetchSize方法修改流式获取数据时,每次获取的数据条数
说明:Stream方式不会调用拦截器的afterQuery - getRawForStream(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getRawForStream(Class<T>, String, Map<String, ?>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
执行自行指定的SQL查询语句,支持通过namedParameter的方式传入参数,放到args里面,以流Stream的形式返回。
【特别注意】为了确保Stream方式查询有效,请确保jdbc的URL参数带上:useCursorFetch=true
说明:可以通过setFetchSize方法修改流式获取数据时,每次获取的数据条数
说明:Stream方式不会调用拦截器的afterQuery - getRawForStream(Class<T>, String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getRawOne(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
执行自行指定的SQL查询语句,只返回第一行 (特别说明,当有多行时也只返回第一行而不会失败或告警)
- getRawOne(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getRawOne(Class<T>, String, Map<String, ?>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
执行自行指定的SQL查询语句,支持通过namedParameter的方式传入参数,放到args里面,只返回第一行 (特别说明,当有多行时也只返回第一行而不会失败或告警)
- getRawOne(Class<T>, String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- getRelatedColumns(Class<?>) - Static method in class com.pugwoo.dbhelper.cache.ClassInfoCache
- getRelatedColumns(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得所有有@RelatedColumn注解的列,包括继承的父类中的,顺序父类先
- getSelectCountSQL(DatabaseTypeEnum, Class<?>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
select count(1) from t_table, 不包含where子句及以后的语句
- getSelectSQL(DatabaseTypeEnum, Class<?>, boolean, boolean, Map<FeatureEnum, Boolean>, String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
select 字段 from t_table, 不包含where子句及以后的语句
- getSoftDeleteColumn(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获得软删除标记字段,最多只能返回1个。
- getSoftDeleteSQL(DatabaseTypeEnum, T, Column, List<Object>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
获得软删除SQL
- getSql() - Method in class com.pugwoo.dbhelper.sql.InsertSQLForBatchDTO
- getSql() - Method in class com.pugwoo.dbhelper.sql.SQLUtils.BatchUpdateResultDTO
- getSQL() - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
获得从where开始的SQL子句
- getSQL() - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
获得从where开始的SQL子句
- getSQLForWhereAppend() - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
获得用于where开始的SQL子句,用于追加到一个已有的where sql中,所以如果有where时,会以and开头,并且where条件会自动加上括号
- getSQLForWhereAppend() - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
获得用于where开始的SQL子句,用于追加到一个已有的where sql中,所以如果有where时,会以and开头,并且where条件会自动加上括号
- getSqlLogEndIndex() - Method in class com.pugwoo.dbhelper.sql.InsertSQLForBatchDTO
- getTable(Class<?>) - Static method in class com.pugwoo.dbhelper.cache.ClassInfoCache
- getTable(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
获取DO的@Table信息,如果子类没有,会往父类查找
- getTableName(Class<?>) - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
-
动态获得类对应的自定义表名,不存在返回null
- getThreadLocalComment() - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
-
获取线程上下文的SQL注释
- getTotal() - Method in class com.pugwoo.dbhelper.model.PageData
- getTotalPage() - Method in class com.pugwoo.dbhelper.model.PageData
-
总页数,通过计算得出来
- getUpdateAllSQL(DatabaseTypeEnum, Class<T>, String, String, String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
获得批量更新sql
- getUpdateSQL(DatabaseTypeEnum, T, List<Object>, boolean, String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
生成update语句
- getValue() - Method in class com.pugwoo.dbhelper.utils.TypeAutoCast.BasicTypeResult
- getValue(Field, Object) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
优先通过getter获得值,如果没有getter,则直接获取
- getValueForRelatedColumn(List<DOInfoReader.RelatedField>, Object) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
为relatedColumn获得字段的值。这里有特别的逻辑。 当fields只有一个时,返回的是对象本身;否则是一个List,里面是按顺序的fields的多个值
- getValueFromScript(Boolean, String) - Static method in class com.pugwoo.dbhelper.utils.ScriptUtils
-
执行mvel脚本,返回脚本执行返回的值
- getValueFromScript(Object, Boolean, String) - Static method in class com.pugwoo.dbhelper.utils.ScriptUtils
-
执行mvel脚本,返回脚本执行返回的值
H
- handleRelatedColumn(List<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
单独抽离出处理RelatedColumn的类,参数list的元素不需要@Table的注解了。但要求list都同一class类型的对象。
- handleRelatedColumn(List<T>) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- handleRelatedColumn(List<T>, String...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
单独抽离出处理RelatedColumn的类,参数list的元素不需要@Table的注解了。但要求list都同一class类型的对象。
- handleRelatedColumn(List<T>, String...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- handleRelatedColumn(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
单独抽离出处理RelatedColumn的类,参数t不需要@Table的注解了
- handleRelatedColumn(T) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- handleRelatedColumn(T, String...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
单独抽离出处理RelatedColumn的类,参数t不需要@Table的注解了
- handleRelatedColumn(T, String...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- having(String) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- having(String, Object...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
多次调用时,会覆盖前一次调用设置的值。不需要加HAVING关键字。
- having(String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
多次调用时,会覆盖前一次调用设置的值。不需要加HAVING关键字。
I
- IDBHelperDataService - Interface in com.pugwoo.dbhelper
-
关联字段自定义读取接口。
- IDBHelperSlowSqlCallback - Interface in com.pugwoo.dbhelper
-
特别说明:在回调方法callback,尽量不使用dbhelper及其关联的service,以免Spring循环依赖。 如确实需要依赖dbhelper及其关联的service,可以考虑使用懒加载的方式。
- ignoreScriptError() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
当查询、新增、修改、删除的mvel脚本执行出错时,是否忽略该错误,默认忽略并返回null。 如果设置为不忽略,则会在脚本执行出错时,抛出异常ScriptErrorException。
- InnerCommonUtils - Class in com.pugwoo.dbhelper.utils
-
内部常用工具类
- InnerCommonUtils() - Constructor for class com.pugwoo.dbhelper.utils.InnerCommonUtils
- insert(Collection<?>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
批量插入多条记录,返回数据库实际修改的条数。
【说明】该方法没有事务,请在外层加事务。
【特别说明】因为需要获取自增主键,对于有自增id的插入,会降级为逐条插入,如果想提升性能,请使用insertBatchWithoutReturnId方法。 - insert(Collection<?>) - Method in class com.pugwoo.dbhelper.impl.part.P2_InsertOp
- insert(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
插入一条记录
如果包含了自增id,则自增Id会被设置。
【注】只插入非null的值,如要需要插入null值,则用insertWithNull。 - insert(T) - Method in class com.pugwoo.dbhelper.impl.part.P2_InsertOp
- insertBatchWithoutReturnId(String, Collection<Map<String, Object>>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
批量插入多条记录,返回数据库实际修改的条数。【不支持拦截器】
- insertBatchWithoutReturnId(String, Collection<Map<String, Object>>) - Method in class com.pugwoo.dbhelper.impl.part.P2_InsertOp
- insertBatchWithoutReturnId(String, List<String>, Collection<Object[]>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
以JDBCTemplate的batchUpdate方式,批量插入多条记录,返回数据库实际修改的条数。【不支持拦截器】
- insertBatchWithoutReturnId(String, List<String>, Collection<Object[]>) - Method in class com.pugwoo.dbhelper.impl.part.P2_InsertOp
- insertBatchWithoutReturnId(Collection<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
批量插入多条记录,返回数据库实际修改的条数。
【重点】不会自动设置插入数据的返回自增ID(拦截器里也拿不到ID),也不会设置回数据库的默认值 - insertBatchWithoutReturnId(Collection<T>) - Method in class com.pugwoo.dbhelper.impl.part.P2_InsertOp
- insertDefaultValueMap() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
表级别的插入数据默认值集合,这里填的是DBHelperContext中的默认值集合的名称
如果字段级别有默认值,则它的优先级高于表级别的默认值 - insertOrUpdate(Collection<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
如果t有主键,则更新值;否则插入记录。只有非null的值会更新或插入。
- insertOrUpdate(Collection<T>) - Method in class com.pugwoo.dbhelper.impl.part.P4_InsertOrUpdateOp
- insertOrUpdate(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
如果t有主键,则更新值;否则插入记录。只有非null的值会更新或插入。
- insertOrUpdate(T) - Method in class com.pugwoo.dbhelper.impl.part.P4_InsertOrUpdateOp
- insertOrUpdateWithNull(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
如果t有主键,则更新值;否则插入记录。包括null的值会更新或插入。
- insertOrUpdateWithNull(T) - Method in class com.pugwoo.dbhelper.impl.part.P4_InsertOrUpdateOp
- InsertSQLForBatchDTO - Class in com.pugwoo.dbhelper.sql
-
生成批量插入SQL的返回值,抽取这个DTO的主要目的是为了log时不打印太多的信息
- InsertSQLForBatchDTO() - Constructor for class com.pugwoo.dbhelper.sql.InsertSQLForBatchDTO
- InsertSQLForBatchDTO(String, int, int) - Constructor for class com.pugwoo.dbhelper.sql.InsertSQLForBatchDTO
- insertValueCondition() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
insertValueScript脚本的执行条件,默认为null,表示只有当原值为null时才执行脚本
- insertValueCondition() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
insertValueScript脚本的执行条件,默认为null,表示只有当原值为null时才执行脚本
- insertValueScript() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
当设置了非空字符串时,在对象插入数据库之前,会自动执行该mvel脚本获得值,并把值设置到DO中,再插入数据库。
mvel脚本中,可以通过t标识获取当前插入的对象。
从1.2版本起,仅当原值是null时,才自动执行脚本并设置脚本返回的值。 - insertWhereAndExpression(DatabaseTypeEnum, String, String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
往where sql里面插入AND关系的表达式。 例如:whereSql为 where a!=3 or a!=2 limit 1 condExpress为 deleted=0 那么返回:where (deleted=0 and (a!=3 or a!=2)) limit 1
- insertWithNull(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
插入一条记录,返回数据库实际修改条数。
如果包含了自增id,则自增Id会被设置。 - insertWithNull(T) - Method in class com.pugwoo.dbhelper.impl.part.P2_InsertOp
- interceptors - Variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- InvalidParameterException - Exception Class in com.pugwoo.dbhelper.exception
- InvalidParameterException() - Constructor for exception class com.pugwoo.dbhelper.exception.InvalidParameterException
- InvalidParameterException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.InvalidParameterException
- InvalidParameterException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.InvalidParameterException
- isAllSameClass(Collection<T>) - Static method in class com.pugwoo.dbhelper.sql.SQLAssert
- isAutoIncrement() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
主键是否自增
- isBasicType() - Method in class com.pugwoo.dbhelper.utils.TypeAutoCast.BasicTypeResult
- isBlank(String) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- isCacheEnabled() - Static method in interface com.pugwoo.dbhelper.DBHelper
-
是否开启了DBHelper的缓存,目前缓存DO类信息,默认开启
- isCacheEnabled() - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
- isContains(String, String[]) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
-
检查strings中是否包含有checkStr字符串
- isContainsLimit(String) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
判断postSql是否包含了limit子句
- isEmpty(Collection<?>) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- isExist(Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
是否出现至少一条记录
- isExist(Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- isExistAtLeast(int, Class<T>, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
是否出现至少N条记录(含N条)
- isExistAtLeast(int, Class<T>, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- isJSON() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
标记该列是否转成json字符串存入数据库,此时数据库列的类型必须可以存放字符串
- isKey() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
是否主键
- isNotBlank(String) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- isNotEmpty(String[]) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
-
判断给定的数组是否非空
- isNotEmpty(Collection<?>) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- isVirtualTable(Class<?>) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
判断一个Table是否是虚拟表
J
- jdbcExecuteUpdate(String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
-
使用jdbcTemplate模版执行update,不支持in (?)表达式
- jdbcTemplate - Variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- JOIN - Enum constant in enum com.pugwoo.dbhelper.enums.JoinTypeEnum
-
默认join
- JoinLeftTable - Annotation Type in com.pugwoo.dbhelper.annotation
-
join的左表注解,被注解的字段类型必须有@Table注解。左表的别名默认为t1
- JoinRightTable - Annotation Type in com.pugwoo.dbhelper.annotation
-
join的右表注解,被注解的字段类型必须有@Table注解。右表的别名默认为t2
- JoinTable - Annotation Type in com.pugwoo.dbhelper.annotation
-
Join表的注解 2017年4月17日 14:36:10
- joinType() - Element in annotation type com.pugwoo.dbhelper.annotation.JoinTable
-
join方式,默认join,可选:left join, right join等。 【注意】 对于软删除的处理:当是left join时,右表的软删除条件为 (t2.软删除字段=未删除 or t2.软删除字段 is null)。 当是right join时,左表的软删除条件为 (t1.软删除字段=未删除 or t1.软删除字段 is null)
- joinTypeAsString() - Element in annotation type com.pugwoo.dbhelper.annotation.JoinTable
-
字符串形式的join,当值不为空时,优先级高于joinType
使用自定义join请自行处理好软删除的查询条件 - JoinTypeEnum - Enum in com.pugwoo.dbhelper.enums
-
两表join的方式枚举
其它类型的join,请使用字符串形式的join,详见`@JoinTable`的joinTypeAsString属性
L
- LEFT_JOIN - Enum constant in enum com.pugwoo.dbhelper.enums.JoinTypeEnum
-
left join左连接
- limit(Integer) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- limit(Integer) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- limit(Integer, Integer) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- limit(Integer, Integer) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- limit(Long) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- limit(Long) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- limit(Long, Long) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- limit(Long, Long) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- localColumn() - Element in annotation type com.pugwoo.dbhelper.annotation.RelatedColumn
-
必须,本表关联的表字段名称(不是java属性名)。多个用逗号隔开。
- log(String, int, Object) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
-
批量和非批量的log
- LOG_SQL_AT_INFO_LEVEL - Enum constant in enum com.pugwoo.dbhelper.enums.FeatureEnum
-
以info的级别log SQL,默认[关闭],默认时用debug级别打印sql
- LOGGER - Static variable in interface com.pugwoo.dbhelper.DBHelper
- LOGGER - Static variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- logSlow(long, String, int, Object) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
-
记录慢sql请求
M
- mapRow(ResultSet, int) - Method in class com.pugwoo.dbhelper.utils.AnnotationSupportRowMapper
- maxPageSize - Variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- maxStringLength() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
写入到数据库的最大字符串长度(字符数,不是字节数)
当字段的值的字符串长度超过设置的值时,将自动截取前maxStringLength个字符。
说明:如果值为负数表示不限制。该限制只对String类型生效,其它类型不生效。特别的,当值为0时,字符串将截断成空字符串。
注意:在mysql中,varchar的长度是字符数,而text/mediumtext/longtext的长度是字节(不是字符),因此当使用的是text时,请注意估算字符的最大长度 - MultiDateDeserializer - Class in com.pugwoo.dbhelper.json
- MultiDateDeserializer() - Constructor for class com.pugwoo.dbhelper.json.MultiDateDeserializer
- MultiDateDeserializer(Class<?>) - Constructor for class com.pugwoo.dbhelper.json.MultiDateDeserializer
- MultiLocalDateDeserializer - Class in com.pugwoo.dbhelper.json
- MultiLocalDateDeserializer() - Constructor for class com.pugwoo.dbhelper.json.MultiLocalDateDeserializer
- MultiLocalDateDeserializer(Class<?>) - Constructor for class com.pugwoo.dbhelper.json.MultiLocalDateDeserializer
- MultiLocalDateTimeDeserializer - Class in com.pugwoo.dbhelper.json
- MultiLocalDateTimeDeserializer() - Constructor for class com.pugwoo.dbhelper.json.MultiLocalDateTimeDeserializer
- MultiLocalDateTimeDeserializer(Class<?>) - Constructor for class com.pugwoo.dbhelper.json.MultiLocalDateTimeDeserializer
- MultiLocalTimeDeserializer - Class in com.pugwoo.dbhelper.json
- MultiLocalTimeDeserializer() - Constructor for class com.pugwoo.dbhelper.json.MultiLocalTimeDeserializer
- MultiLocalTimeDeserializer(Class<?>) - Constructor for class com.pugwoo.dbhelper.json.MultiLocalTimeDeserializer
- MustProvideConstructorException - Exception Class in com.pugwoo.dbhelper.exception
-
deleteByKey的class必须有默认构造方法
- MustProvideConstructorException() - Constructor for exception class com.pugwoo.dbhelper.exception.MustProvideConstructorException
- MustProvideConstructorException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.MustProvideConstructorException
- MustProvideConstructorException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.MustProvideConstructorException
- MyObjectMapper - Class in com.pugwoo.dbhelper.json
- MyObjectMapper() - Constructor for class com.pugwoo.dbhelper.json.MyObjectMapper
- MYSQL - Enum constant in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
N
- namedJdbcExecuteUpdate(String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
-
使用namedParameterJdbcTemplate模版执行update,支持in(?)表达式
- namedJdbcExecuteUpdateWithLog(String, String, int, List<Object>, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
-
使用namedParameterJdbcTemplate模版执行update,支持in(?)表达式
- namedParameterJdbcTemplate - Variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- NamedParameterUtils - Class in com.pugwoo.dbhelper.utils
-
2015年8月24日 18:37:48 因为jdbcTemplate不支持 in (?)传入list的方式 只支持NamedParameterJdbcTemplate,所以需要把?的方式换成:param的方式 【重要】约定替换后的参数为 paramN, N从1开始
- NamedParameterUtils() - Constructor for class com.pugwoo.dbhelper.utils.NamedParameterUtils
- NimbleOrmDateUtils - Class in com.pugwoo.dbhelper.json
- NimbleOrmDateUtils() - Constructor for class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
- NimbleOrmJSON - Class in com.pugwoo.dbhelper.json
-
封装起来的常用的json方法
- NimbleOrmJSON() - Constructor for class com.pugwoo.dbhelper.json.NimbleOrmJSON
- NoColumnAnnotationException - Exception Class in com.pugwoo.dbhelper.exception
- NoColumnAnnotationException() - Constructor for exception class com.pugwoo.dbhelper.exception.NoColumnAnnotationException
- NoColumnAnnotationException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.NoColumnAnnotationException
- NoColumnAnnotationException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.NoColumnAnnotationException
- NoJoinTableMemberException - Exception Class in com.pugwoo.dbhelper.exception
-
对于@JoinTable的VO,没有声明@JoinLeftTable和@JoinRightTable是抛出
- NoJoinTableMemberException() - Constructor for exception class com.pugwoo.dbhelper.exception.NoJoinTableMemberException
- NoJoinTableMemberException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.NoJoinTableMemberException
- NoJoinTableMemberException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.NoJoinTableMemberException
- NoKeyColumnAnnotationException - Exception Class in com.pugwoo.dbhelper.exception
- NoKeyColumnAnnotationException() - Constructor for exception class com.pugwoo.dbhelper.exception.NoKeyColumnAnnotationException
- NoKeyColumnAnnotationException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.NoKeyColumnAnnotationException
- NoKeyColumnAnnotationException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.NoKeyColumnAnnotationException
- not() - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- not() - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- NoTableAnnotationException - Exception Class in com.pugwoo.dbhelper.exception
- NoTableAnnotationException() - Constructor for exception class com.pugwoo.dbhelper.exception.NoTableAnnotationException
- NoTableAnnotationException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.NoTableAnnotationException
- NoTableAnnotationException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.NoTableAnnotationException
- NotAllowModifyException - Exception Class in com.pugwoo.dbhelper.exception
- NotAllowModifyException() - Constructor for exception class com.pugwoo.dbhelper.exception.NotAllowModifyException
- NotAllowModifyException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.NotAllowModifyException
- NotAllowModifyException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.NotAllowModifyException
- NotAllowQueryException - Exception Class in com.pugwoo.dbhelper.exception
- NotAllowQueryException() - Constructor for exception class com.pugwoo.dbhelper.exception.NotAllowQueryException
- NotAllowQueryException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.NotAllowQueryException
- NotAllowQueryException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.NotAllowQueryException
- notIf(boolean) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
只有当ifTrue为true时,才会执行not
- notIf(boolean) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- NotOnlyOneKeyColumnException - Exception Class in com.pugwoo.dbhelper.exception
- NotOnlyOneKeyColumnException() - Constructor for exception class com.pugwoo.dbhelper.exception.NotOnlyOneKeyColumnException
- NotOnlyOneKeyColumnException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.NotOnlyOneKeyColumnException
- NotOnlyOneKeyColumnException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.NotOnlyOneKeyColumnException
- NullKeySerializer - Class in com.pugwoo.dbhelper.json
- NullKeySerializer() - Constructor for class com.pugwoo.dbhelper.json.NullKeySerializer
- NullKeyValueException - Exception Class in com.pugwoo.dbhelper.exception
-
查询时,主键的值是null时抛异常
- NullKeyValueException() - Constructor for exception class com.pugwoo.dbhelper.exception.NullKeyValueException
- NullKeyValueException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.NullKeyValueException
- NullKeyValueException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.NullKeyValueException
O
- on() - Element in annotation type com.pugwoo.dbhelper.annotation.JoinTable
-
join的关联条件,必须,left表别名为t1,right表别名为t2
- OnConditionIsNeedException - Exception Class in com.pugwoo.dbhelper.exception
- OnConditionIsNeedException() - Constructor for exception class com.pugwoo.dbhelper.exception.OnConditionIsNeedException
- OnConditionIsNeedException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.OnConditionIsNeedException
- OnConditionIsNeedException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.OnConditionIsNeedException
- onlyOneKeyColumn(Class<?>) - Static method in class com.pugwoo.dbhelper.sql.SQLAssert
- or(WhereSQL) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
功能同addOr,注意:只会读取参数whereSQL的条件和参数,因此需要注意whereSQL里【不能】存在order/group by/limit等子句
- or(WhereSQLForNamedParam) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
功能同addOr,注意:只会读取参数whereSQL的条件和参数,因此需要注意whereSQL里【不能】存在order/group by/limit等子句
- or(String, Object...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- or(String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- orIf(boolean, WhereSQL) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- orIf(boolean, WhereSQLForNamedParam) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- orIf(boolean, String, Object...) - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- orIf(boolean, String, Map<String, ?>) - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
P
- P0_JdbcTemplateOp - Class in com.pugwoo.dbhelper.impl.part
-
jdbcTemplate原生操作接口封装
- P0_JdbcTemplateOp() - Constructor for class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- P1_QueryOp - Class in com.pugwoo.dbhelper.impl.part
- P1_QueryOp() - Constructor for class com.pugwoo.dbhelper.impl.part.P1_QueryOp
- P2_InsertOp - Class in com.pugwoo.dbhelper.impl.part
- P2_InsertOp() - Constructor for class com.pugwoo.dbhelper.impl.part.P2_InsertOp
- P3_UpdateOp - Class in com.pugwoo.dbhelper.impl.part
- P3_UpdateOp() - Constructor for class com.pugwoo.dbhelper.impl.part.P3_UpdateOp
- P4_InsertOrUpdateOp - Class in com.pugwoo.dbhelper.impl.part
- P4_InsertOrUpdateOp() - Constructor for class com.pugwoo.dbhelper.impl.part.P4_InsertOrUpdateOp
- P5_DeleteOp - Class in com.pugwoo.dbhelper.impl.part
- P5_DeleteOp() - Constructor for class com.pugwoo.dbhelper.impl.part.P5_DeleteOp
- P6_ExecuteOp - Class in com.pugwoo.dbhelper.impl.part
- P6_ExecuteOp() - Constructor for class com.pugwoo.dbhelper.impl.part.P6_ExecuteOp
- PageData<T> - Class in com.pugwoo.dbhelper.model
-
2015年4月22日 13:32:30 记录分页数据和总数
- PageData() - Constructor for class com.pugwoo.dbhelper.model.PageData
- PageData(long, List<T>, int) - Constructor for class com.pugwoo.dbhelper.model.PageData
- ParameterSizeNotMatchedException - Exception Class in com.pugwoo.dbhelper.exception
-
sql参数个数不一致异常
- ParameterSizeNotMatchedException() - Constructor for exception class com.pugwoo.dbhelper.exception.ParameterSizeNotMatchedException
- ParameterSizeNotMatchedException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.ParameterSizeNotMatchedException
- ParameterSizeNotMatchedException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.ParameterSizeNotMatchedException
- parse(String, Class<T>) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmJSON
- parseGeneric(String, ParameterizedType) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmJSON
- parseLocalDate(String) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
失败返回null,不会抛异常
- parseLocalDateTime(String) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
失败返回null,不会抛异常
- parseLocalTime(String) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
失败返回null,不会抛异常
- parseThrowException(String) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
-
自动解析,失败抛出异常
- partition(Stream<T>, int) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
- POSTGRESQL - Enum constant in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
- preHandleDelete(T) - Static method in class com.pugwoo.dbhelper.utils.PreHandleObject
- preHandleInsert(T) - Static method in class com.pugwoo.dbhelper.utils.PreHandleObject
-
插入前预处理字段值
- PreHandleObject - Class in com.pugwoo.dbhelper.utils
-
预处理对象
- PreHandleObject() - Constructor for class com.pugwoo.dbhelper.utils.PreHandleObject
- preHandleUpdate(T) - Static method in class com.pugwoo.dbhelper.utils.PreHandleObject
R
- readClasspathResourceAsString(String) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
-
读取classpath目录下的资源,返回为String,默认是utf-8编码。 如果需要其它编码,请获得byte[]之后自行转换。 说明:当有多个同名的资源时,会返回第一个加载到jvm的资源内容,因此这里具有随机性。
- readIfNullScript() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
设置当字段从数据库读取的值为null时,设置为该脚本返回的值
- RelatedColumn - Annotation Type in com.pugwoo.dbhelper.annotation
-
2017年3月17日 22:15:11
- RelatedColumnFieldNotFoundException - Exception Class in com.pugwoo.dbhelper.exception
-
RelatedColumn的localColumn或remoteColumn错误时抛出
- RelatedColumnFieldNotFoundException() - Constructor for exception class com.pugwoo.dbhelper.exception.RelatedColumnFieldNotFoundException
- RelatedColumnFieldNotFoundException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.RelatedColumnFieldNotFoundException
- RelatedColumnFieldNotFoundException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.RelatedColumnFieldNotFoundException
- RelatedField(Field, int, String) - Constructor for class com.pugwoo.dbhelper.utils.DOInfoReader.RelatedField
- remoteColumn() - Element in annotation type com.pugwoo.dbhelper.annotation.RelatedColumn
-
必须,外部关联的表字段名称(不是java属性名)。多个用逗号隔开。
- removeLimitAndAddOrder(DatabaseTypeEnum, String, boolean, Class<?>) - Static method in class com.pugwoo.dbhelper.sql.SQLUtils
-
移除whereSql中的limit子句;检查并加上order by子句
- resetGroupBy() - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- resetGroupBy() - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- resetOrderBy() - Method in class com.pugwoo.dbhelper.sql.WhereSQL
- resetOrderBy() - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
- resetTableName() - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
-
清空自定义表名
- RIGHT_JOIN - Enum constant in enum com.pugwoo.dbhelper.enums.JoinTypeEnum
-
right join右连接
- rollback() - Method in interface com.pugwoo.dbhelper.DBHelper
-
手动回滚@Transactional的事务。 对于已知需要回滚的动作,我更推荐主动调用让其回滚,而非抛出RuntimeException。 当前如果没有事务而调用该方法,将抛出org.springframework.transaction.NoTransactionException。
对于手动回滚事务rollback抛出`org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only` 异常的情况,需要使用者保证满足以下两点中的任意一点:
1) 调用rollback的代码所在的方法是注解了@Transactional最外层的方法;
2) 调用rollback的代码最近的@Transactional注解加上propagation = Propagation.NESTED属性。 - rollback() - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- RowMapperFailException - Exception Class in com.pugwoo.dbhelper.exception
-
数据行转换成Java对象时失败异常
- RowMapperFailException() - Constructor for exception class com.pugwoo.dbhelper.exception.RowMapperFailException
- RowMapperFailException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.RowMapperFailException
- RowMapperFailException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.RowMapperFailException
- RowMapperFailException(Throwable, Field) - Constructor for exception class com.pugwoo.dbhelper.exception.RowMapperFailException
S
- sameTableNameAs() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
指定和另外一个DO/VO类同名,当指定别名时,value()值失效,建议将其留空,以免有歧义
- ScriptErrorException - Exception Class in com.pugwoo.dbhelper.exception
- ScriptErrorException() - Constructor for exception class com.pugwoo.dbhelper.exception.ScriptErrorException
- ScriptErrorException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.ScriptErrorException
- ScriptErrorException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.ScriptErrorException
- ScriptUtils - Class in com.pugwoo.dbhelper.utils
- ScriptUtils() - Constructor for class com.pugwoo.dbhelper.utils.ScriptUtils
- serialize(Object, JsonGenerator, SerializerProvider) - Method in class com.pugwoo.dbhelper.json.NullKeySerializer
- setAffectedRows(int) - Method in exception class com.pugwoo.dbhelper.exception.CasVersionNotMatchException
- setApplicationContext(ApplicationContext) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- setBasicType(boolean) - Method in class com.pugwoo.dbhelper.utils.TypeAutoCast.BasicTypeResult
- setData(List<T>) - Method in class com.pugwoo.dbhelper.model.PageData
- setFetchSize(int) - Method in interface com.pugwoo.dbhelper.DBHelper
-
对于流式Stream获取数据的,可以指定fetchSize大小,默认1000
- setFetchSize(int) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- setGlobalComment(String) - Static method in interface com.pugwoo.dbhelper.DBHelper
-
设置全局的SQL注释,设置后每条执行的SQL都将自动带上该注释到数据库中执行。
说明:该方法会对所有的DBHelper实例生效。 - setGlobalComment(String) - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
- setInsertDefaultValue(String, Class<?>, Object) - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
-
设置插入时的默认值
- setInterceptors(List<DBHelperInterceptor>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
数据库拦截器
- setInterceptors(List<DBHelperInterceptor>) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- setJdbcTemplate(JdbcTemplate) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- setLocalComment(String) - Static method in interface com.pugwoo.dbhelper.DBHelper
-
设置线程上下文的SQL注释,设置后当前线程执行的每条SQL都将自动带上该注释到数据库中执行。
说明:该方法会对所有的DBHelper实例生效。 - setLogParams(List<Object>) - Method in class com.pugwoo.dbhelper.sql.SQLUtils.BatchUpdateResultDTO
- setLogSql(String) - Method in class com.pugwoo.dbhelper.sql.SQLUtils.BatchUpdateResultDTO
- setMaxPageSize(int) - Method in interface com.pugwoo.dbhelper.DBHelper
-
设置允许的每页最大的个数,当页数超过允许的最大页数时,设置为最大页数。 默认对每页最大个数没有限制,该限制只对getPage和getPageWithoutCount接口生效。
- setMaxPageSize(int) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- setNamedParameterJdbcTemplate(NamedParameterJdbcTemplate) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
-
可选,非必须 since 1.2
- setPageSize(int) - Method in class com.pugwoo.dbhelper.model.PageData
- setParamLogEndIndex(int) - Method in class com.pugwoo.dbhelper.sql.InsertSQLForBatchDTO
- setRandomStringWhenInsert() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
插入时,当字段值未提供时,设置是否自动生成随机32字符,此时字段必须是String类型。
这个功能用于随机生成主键。 - setSql(String) - Method in class com.pugwoo.dbhelper.sql.InsertSQLForBatchDTO
- setSql(String) - Method in class com.pugwoo.dbhelper.sql.SQLUtils.BatchUpdateResultDTO
- setSqlLogEndIndex(int) - Method in class com.pugwoo.dbhelper.sql.InsertSQLForBatchDTO
- setTableName(Class<?>, String) - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
-
设置类对应的自定义表名
- setThreadLocalComment(String) - Static method in class com.pugwoo.dbhelper.impl.DBHelperContext
-
设置线程上下文的SQL注释
- setTimeoutWarningCallback(IDBHelperSlowSqlCallback) - Method in interface com.pugwoo.dbhelper.DBHelper
-
设置SQL执行超时回调,可用于自行实现将慢sql存放到db
- setTimeoutWarningCallback(IDBHelperSlowSqlCallback) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- setTimeoutWarningValve(long) - Method in interface com.pugwoo.dbhelper.DBHelper
-
设置SQL执行超时的WARN log,超时时间默认为1秒
- setTimeoutWarningValve(long) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- setTimeWhenDelete() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
当设置为true时,会自动设置当前日期时间
对应的类型必须是以下其中一种,对应精度约定如下:
java.util.Date 精度:秒
java.sql.Date 精度:秒
java.sql.Timestamp 精度:毫秒
java.sql.Time 精度:秒
java.time.LocalDateTime 精度:秒
java.time.LocalDate 精度:天
java.time.LocalTime 精度:秒
java.util.Calendar 精度:秒
java.time.Instant 精度:秒
java.time.ZonedDateTime 精度:秒 - setTimeWhenInsert() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
当设置为true时,且原值为null时,更新时会自动设置当前日期时间,对应的类型必须是以下其中一种,对应精度约定如下:
java.util.Date 精度:秒
java.sql.Date 精度:秒
java.sql.Timestamp 精度:毫秒
java.sql.Time 精度:秒
java.time.LocalDateTime 精度:秒
java.time.LocalDate 精度:天
java.time.LocalTime 精度:秒
java.util.Calendar 精度:秒
java.time.Instant 精度:秒
java.time.ZonedDateTime 精度:秒 - setTimeWhenUpdate() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
当设置为true时,无论改值是不是null都会更新时会自动设置当前日期时间, (这是因为,从数据库全量查出来的updateTime是有值的,只能强制设置Date)
特别的,软删除时,会设置该值为删除时的时间。
对应的类型必须是以下其中一种,对应精度约定如下:
java.util.Date 精度:秒
java.sql.Date 精度:秒
java.sql.Timestamp 精度:毫秒
java.sql.Time 精度:秒
java.time.LocalDateTime 精度:秒
java.time.LocalDate 精度:天
java.time.LocalTime 精度:秒
java.util.Calendar 精度:秒
java.time.Instant 精度:秒
java.time.ZonedDateTime 精度:秒 - setTotal(long) - Method in class com.pugwoo.dbhelper.model.PageData
- setValue(Object) - Method in class com.pugwoo.dbhelper.utils.TypeAutoCast.BasicTypeResult
- setValue(Field, Object, Object) - Static method in class com.pugwoo.dbhelper.utils.DOInfoReader
-
先按照setter的约定寻找setter方法(必须严格匹配参数类型或自动转换)
如果有则按setter方法,如果没有则直接写入
如果写入失败,会log error但不会抛出异常。 - setValueFromScript(Object, Field, Boolean, String) - Static method in class com.pugwoo.dbhelper.utils.ScriptUtils
-
执行mvel脚本,并设置到到对象t中
- softDelete() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
软删除标记,如果注解了该数据,则对应的字段为软删除标记。
这里【必须】提供一个数组,包含两个值,第一个值是未删除标记,第二个值是已删除标记。
一般软删除字段是数组,所以softDelete的值会直接设置到sql中。
如果这个字段是字符串,请这样写:softDelete = {"'NO'", "'YES'"}
这样设计的目的,是支持软删除使用其它列名的值,和字符串区分
特别的,softDelete的第二个参数写为列名称时,可以在软删除时设置为该列的值
【错误的个数(不是两个)和空的String值将认为是无效的标记而失效。】
每个DO最多有一个softDelete字段表示软删除。可以不用软删除。
使用示例:
\@Column(value = "deleted", softDelete = {"0", "1"}) private Boolean deleted; - softDeleteDBHelperBean() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
当软删除表不是同一个数据库时,可以通过softDeleteDBHelper指定数据库
- softDeleteTable() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
指定软删除表名,本表删除时,会将删除的数据插入到该表中,该表的结构必须和本表一致。
- split(String, String) - Static method in class com.pugwoo.dbhelper.utils.InnerCommonUtils
-
将字符串str按间隔符sep分隔,返回分隔后的字符串
- SpringBeanNotMatchException - Exception Class in com.pugwoo.dbhelper.exception
-
当从Spring中获取的bean的类型不匹配时抛出
- SpringBeanNotMatchException() - Constructor for exception class com.pugwoo.dbhelper.exception.SpringBeanNotMatchException
- SpringBeanNotMatchException(String) - Constructor for exception class com.pugwoo.dbhelper.exception.SpringBeanNotMatchException
- SpringBeanNotMatchException(Throwable) - Constructor for exception class com.pugwoo.dbhelper.exception.SpringBeanNotMatchException
- SpringJdbcDBHelper - Class in com.pugwoo.dbhelper.impl
-
2015年1月12日 16:41:03 数据库操作封装:增删改查
- SpringJdbcDBHelper() - Constructor for class com.pugwoo.dbhelper.impl.SpringJdbcDBHelper
- SpringJdbcDBHelper(JdbcTemplate) - Constructor for class com.pugwoo.dbhelper.impl.SpringJdbcDBHelper
- SQLAssert - Class in com.pugwoo.dbhelper.sql
- SQLAssert() - Constructor for class com.pugwoo.dbhelper.sql.SQLAssert
- SQLDialect - Class in com.pugwoo.dbhelper.sql
-
提供各种数据库不同的方言表达
- SQLDialect() - Constructor for class com.pugwoo.dbhelper.sql.SQLDialect
- SQLUtils - Class in com.pugwoo.dbhelper.sql
-
SQL解析工具类
- SQLUtils() - Constructor for class com.pugwoo.dbhelper.sql.SQLUtils
- SQLUtils.BatchUpdateResultDTO - Class in com.pugwoo.dbhelper.sql
T
- Table - Annotation Type in com.pugwoo.dbhelper.annotation
-
2015年1月12日 16:19:46 数据表信息注解
- THROW_EXCEPTION_IF_COLUMN_NOT_EXIST - Enum constant in enum com.pugwoo.dbhelper.enums.FeatureEnum
-
当DO类@Column注解的列不在数据库返回的列中时,是否抛出异常,默认[关闭],即不抛出异常
- timeoutWarningValve - Variable in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- toJson(Object) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmJSON
-
将对象转换成json字符串
- toLocalDateTime(Date) - Static method in class com.pugwoo.dbhelper.json.NimbleOrmDateUtils
- toSqlValueStr(Object) - Static method in class com.pugwoo.dbhelper.utils.TypeAutoCast
-
转换成sql值的字符串形式,带上单引号。 例如传入hello, 返回 'hello'
- toString() - Method in class com.pugwoo.dbhelper.sql.FixedAndExpression
- toString() - Method in class com.pugwoo.dbhelper.sql.WhereSQL
-
等价于getSQL()
- toString() - Method in class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
等价于getSQL()
- trans(String, List<Object>) - Static method in class com.pugwoo.dbhelper.utils.NamedParameterUtils
-
把?变成:paramN的形式,不包括'?'中的? paramN的N从1开始
- transBasicType(Class<?>, ResultSet) - Static method in class com.pugwoo.dbhelper.utils.TypeAutoCast
-
转换基本类型
- transform(Function<? super T, ? extends R>) - Method in class com.pugwoo.dbhelper.model.PageData
- transParam(List<Object>) - Static method in class com.pugwoo.dbhelper.utils.NamedParameterUtils
- turnOffFeature(FeatureEnum) - Method in interface com.pugwoo.dbhelper.DBHelper
-
关闭某个特性
- turnOffFeature(FeatureEnum) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- turnOnFeature(FeatureEnum) - Method in interface com.pugwoo.dbhelper.DBHelper
-
开启某个特性
- turnOnFeature(FeatureEnum) - Method in class com.pugwoo.dbhelper.impl.part.P0_JdbcTemplateOp
- TypeAutoCast - Class in com.pugwoo.dbhelper.utils
-
2015年8月22日 16:58:48 自动转换类型
- TypeAutoCast() - Constructor for class com.pugwoo.dbhelper.utils.TypeAutoCast
- TypeAutoCast.BasicTypeResult - Class in com.pugwoo.dbhelper.utils
U
- UNKNOWN - Enum constant in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
- update(Collection<T>) - Method in interface com.pugwoo.dbhelper.DBHelper
-
批量更新数据库记录,返回数据库实际修改条数。【只更新非null字段,需要更新null字段请使用updateWithNull方法】
当符合以下条件时,更新数据将转换成真正的批量更新,性能可提升100倍左右:
1) list中所有的元素都是相同的类
2) list中所有的元素都有且只有一个主键,且主键有值(多主键场景很少,后续有时间再支持多主键)
特别说明:如果有cas版本,会抛出CasVersionNotMatchException异常(可以从该异常中获取实际的修改行数),需要自行注解@Transactional事务进行回滚,否则修改的数据不会回滚。此外,clickhouse不支持有cas的批量更新操作,一般情况下也不会使用clickhouse进行批量cas update操作。 - update(Collection<T>) - Method in class com.pugwoo.dbhelper.impl.part.P3_UpdateOp
- update(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
更新单条数据库记录,必须带上object的key。【只更新非null字段】
- update(T) - Method in class com.pugwoo.dbhelper.impl.part.P3_UpdateOp
- update(T, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
更新单条数据库记录,必须带上object的key,主要用于mysql的update ...
- update(T, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P3_UpdateOp
- updateAll(Class<T>, String, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
自定义更新多行记录,会自动去掉已软删除的行。 【重要更新 since 1.0.0】该方法修改的记录,不会再调用afterUpdate方法,如果需要获得被修改的行记录,请考虑使用canal方案。
- updateAll(Class<T>, String, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P3_UpdateOp
- updateCustom(T, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
自定义set字句更新,用于单个sql进行值更新,例如set reads = reads + 1这种情况。
- updateCustom(T, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P3_UpdateOp
- updateValueScript() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
当设置了非空字符串时,在对象更新数据库之前,会自动执行该mvel脚本获得值,并把值设置到DO中,再插入数据库。
mvel脚本中,可以通过t标识获取当前插入的对象
【特别注意】由于是更新,因此无论原值是否为null,该脚本都会执行并设置脚本返回的值。
【特别注意】对于updateAll方法,mvel脚本无法获得该变量t
说明:该脚本对于updateCustom和updateAll也是生效的。
说明:如果脚本的返回值为null,则等价于不设置值(不支持通过该脚本将数据库的值设置为null)。 【特别注意】对于updateCustom和updateAll方法,要求脚本返回的对象toString之后,数据库可以识别 - updateWithNull(T) - Method in interface com.pugwoo.dbhelper.DBHelper
-
更新单个实例数据库记录,必须带上object的key,包含更新null值的字段
- updateWithNull(T) - Method in class com.pugwoo.dbhelper.impl.part.P3_UpdateOp
- updateWithNull(T, String, Object...) - Method in interface com.pugwoo.dbhelper.DBHelper
-
带条件的更新单个对象,必须带上object的key,主要用于mysql的update ...
- updateWithNull(T, String, Object...) - Method in class com.pugwoo.dbhelper.impl.part.P3_UpdateOp
V
- value() - Element in annotation type com.pugwoo.dbhelper.annotation.Column
-
列名
- value() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
表名
- ValueConditionEnum - Enum in com.pugwoo.dbhelper.enums
-
默认值启用条件枚举
- valueOf(String) - Static method in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.pugwoo.dbhelper.enums.FeatureEnum
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.pugwoo.dbhelper.enums.JoinTypeEnum
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.pugwoo.dbhelper.enums.ValueConditionEnum
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.pugwoo.dbhelper.enums.DatabaseTypeEnum
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.pugwoo.dbhelper.enums.FeatureEnum
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.pugwoo.dbhelper.enums.JoinTypeEnum
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.pugwoo.dbhelper.enums.ValueConditionEnum
-
Returns an array containing the constants of this enum type, in the order they are declared.
- virtualTablePath() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
作用同virtualTableSQL()注解,但是是一个classpath路径
- virtualTableSQL() - Element in annotation type com.pugwoo.dbhelper.annotation.Table
-
虚拟表SQL,从select开始的完整SQL,该方式只对查询操作有效。当非空时有效,此时value()表名失效。
说明:虚拟表也支持path路径,path路径的文件内容就是SQL。
该方式适用于自定义表,接近于getRaw方法,有以下约束:
1) getPage不会自动移除limit和加order by 2) 不支持自动处理软删除softDelete标记 3) 不支持getByKey/getByKeyList/getAllKey/getByExample
W
- WHEN_BLANK - Enum constant in enum com.pugwoo.dbhelper.enums.ValueConditionEnum
-
当值为blank时(仅String有效)
- WHEN_EMPTY - Enum constant in enum com.pugwoo.dbhelper.enums.ValueConditionEnum
-
当值为empty时(仅String有效)
- WHEN_NULL - Enum constant in enum com.pugwoo.dbhelper.enums.ValueConditionEnum
-
当值为null时
- WhereSQL - Class in com.pugwoo.dbhelper.sql
-
辅助构造where子句及后续子句的工具
- WhereSQL() - Constructor for class com.pugwoo.dbhelper.sql.WhereSQL
-
空的WhereSQL
- WhereSQL(String, Object...) - Constructor for class com.pugwoo.dbhelper.sql.WhereSQL
-
使用条件进行初始化,条件即例如 a=? 这样的表达式,也可以是 a=? or b=? 这样的表达式。
当表达式是or表达式时,工具会自动加上括号。 - WhereSQLForNamedParam - Class in com.pugwoo.dbhelper.sql
-
辅助构造where子句及后续子句的工具,用于命名参数
- WhereSQLForNamedParam() - Constructor for class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
空的WhereSQL
- WhereSQLForNamedParam(String) - Constructor for class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
使用条件进行初始化,条件即例如 a=:param 这样的表达式,也可以是 a=:param1 or b=:param2 这样的表达式。
当表达式是or表达式时,工具会自动加上括号。 - WhereSQLForNamedParam(String, Map<String, ?>) - Constructor for class com.pugwoo.dbhelper.sql.WhereSQLForNamedParam
-
使用条件进行初始化,条件即例如 a=:param 这样的表达式,也可以是 a=:param1 or b=:param2 这样的表达式。
当表达式是or表达式时,工具会自动加上括号。 - withTableNames(Map<Class<?>, String>, Runnable) - Static method in interface com.pugwoo.dbhelper.DBHelper
-
获取指定类的表名,适合于分表场景;执行完成后会自动还原成原来的表名。
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form