Commit Graph

58 Commits

Author SHA1 Message Date
Travis Burtrum c99b78691b Add support for calling getters/fields on parameters 2020-10-21 00:04:42 -04:00
Travis Burtrum 83fdc67e4a Add AutoCloseableUtil.java for java8+ 2020-08-31 21:48:55 -04:00
Travis Burtrum c143004fc2 Implement {str:booleanParamName} for JdbcMapper to set booleans as Strings for crippled databases like Oracle 2020-06-17 01:36:10 -04:00
Travis Burtrum c327f24e02 Make FunctionSupplier a FunctionalInterface 2019-07-26 00:56:37 -04:00
Travis Burtrum 595caa4aa8 Switch internal implementation of Cache refresh timing logic 2019-07-26 00:53:10 -04:00
Travis Burtrum f290187ee0 Add Cache utilities for java8+ only 2019-07-26 00:39:23 -04:00
Travis Burtrum 9e89131a5b Support @RunInTransaction for methods returning void 2019-07-21 00:35:09 -04:00
Travis Burtrum b62dc1912a Add SingletonCloseable.java and many tests for it 2019-07-20 22:01:09 -04:00
Travis Burtrum 62bf29dc2b Change default JdbcMapper.beanSuffix 2019-07-11 00:39:52 -04:00
Travis Burtrum 54e99e41aa Make sure EnsureContext is called before defaultInList is set up 2019-07-02 09:44:27 -04:00
Travis Burtrum e47ec84325 Clean up SqlBuilder API 2019-03-10 22:02:10 -04:00
Travis Burtrum 29ec477334 Start PreparedStatement binding documentation, fix some omissions/inconsistencies between QueryMapper and JdbcMapper 2019-02-11 00:55:24 -05:00
Travis Burtrum 89966a616d Make configurable system property JdbcMapper.beanSuffix 2019-02-09 00:38:08 -05:00
Travis Burtrum 267e438ac0 Remove JdbcMapper.WarnOnUnusedParams param in favor of prefixing unused params with _ 2019-02-09 00:16:21 -05:00
Travis Burtrum 664c00a5b2 Implement JdbcMapper.sqlBuilder() method 2019-02-09 00:06:13 -05:00
Travis Burtrum 26617e0781 Move InList and PreparedStatementUtil up to common, add support for custom sql/runtime bind in JdbcMapper 2019-02-07 01:09:15 -05:00
Travis Burtrum 243bf8c1ae Add @JdbcMapper.SkipSQLCheck annotation, and another method to skip SQL checking in SimpleSQLChecker 2018-10-25 21:54:43 -04:00
Travis Burtrum 6988a438ba Re-enable and fix jdk6 travis tests 2018-09-25 23:35:44 -04:00
Travis Burtrum 8e677aa92e Fix ResultSet leak in toStream 2018-09-06 01:15:20 -04:00
Travis Burtrum db1de1c43f Slight re-factor of ResultSetUtil.java 2018-09-04 23:24:02 -04:00
Travis Burtrum ac4216709e Minor re-factoring 2018-09-04 01:42:35 -04:00
Travis Burtrum 9c1efdc715 Optimize InListUtil.java 2018-05-23 00:50:12 -04:00
Travis Burtrum 81b91d43e8 Add ListQueryMapper.notInList() and tests 2018-05-22 23:09:57 -04:00
Travis Burtrum d89078ad89 Rename JdbcMapper.DatabaseType.STANDARD to ANY 2018-05-22 00:11:54 -04:00
Travis Burtrum 5522014f8e Implement JdbcMapper.DatabaseType.BIND support 2018-05-22 00:08:14 -04:00
Travis Burtrum 2f8f293ed2 Refactor BindInList, split out to InListUtil, add unit tests 2018-05-21 01:05:53 -04:00
Travis Burtrum 4874968824 Add annother inlist test where an array is re-used, fix hsqldb string type 2018-05-20 12:51:37 -04:00
Travis Burtrum 7cc5af55fb Implement UnNestArrayInList for hsqldb 2018-05-15 23:32:00 -04:00
Travis Burtrum 30599a15fd Add mariadb and postgresql tests 2018-05-15 22:41:02 -04:00
Travis Burtrum c2204b4635 Re-work IN LIST support in JdbcMapper to re-use created arrays, and free them after use 2018-05-12 00:30:57 -04:00
Travis Burtrum 50ebcc84cb Begin to refactor tests into single test module 2018-03-15 00:57:57 -04:00
Travis Burtrum edd6fc6e65 Remove Blob and Clob annotations in favor of SQL bind syntax 2018-03-14 02:25:11 -04:00
Travis Burtrum 9261ee216a Fix mapping null enums, add tests 2018-01-12 16:46:22 -05:00
Travis Burtrum 72906cf3c5 Add @JdbcMapper.RunInTransaction and static support methods to QueryRunner 2017-11-29 23:51:27 -05:00
Travis Burtrum 9829e98ae0 Add support for @SingleRow in JdbcMapper 2017-10-23 00:34:37 -04:00
Travis Burtrum d2353bd74b Add JdbcMapper.WarnOnUnusedParams annotation 2017-08-07 15:26:52 -04:00
Travis Burtrum 6f23696952 Allow to manually specify columnNames and isSelect for unparseable SQL queries in jdbcmapper 2017-08-04 13:55:05 -04:00
Travis Burtrum e246af935f Tweak JdbcMapperFactory, now used for QueryMapper and JdbcMapper generated classes 2017-07-03 03:05:53 -04:00
Travis Burtrum 08e2c9354d QueryRunner re-factor 2017-07-03 01:57:52 -04:00
Travis Burtrum 345a4120c8 Add withJitter(maxJitterMs) to QueryRunner.DelayStrategy 2017-07-03 01:20:06 -04:00
Travis Burtrum f24d4ed03e Add JdbcMapperFactory.connectionFactory() methods 2017-07-03 00:45:36 -04:00
Travis Burtrum 5d9ff80863 Use lambdas where possible in QueryRunner, fix java6 compilation 2017-07-03 00:00:03 -04:00
Travis Burtrum 133c4eb8c9 Add QueryRunner.runRetryCompletableFuture method for java8+ 2017-07-02 23:02:16 -04:00
Travis Burtrum 8400ed3d00 QueryRunner.runRetry and runRetryFuture methods 2017-07-02 01:35:59 -04:00
Travis Burtrum a22109f31c First go at QueryRunner and Factory<Connection> arg for QueryMapper 2017-07-01 02:07:04 -04:00
Travis Burtrum 46686e5b05 Allow JdbcMapper to use reflection for non-public fields optionally 2017-06-19 00:34:23 -04:00
Travis Burtrum 115a62293e Allow CompilingRowToObjectMapper to use reflection for non-public fields optionally 2017-06-18 21:58:55 -04:00
Travis Burtrum fe2a6eec22 Support for java.time api classes 2017-06-13 22:56:00 -04:00
Travis Burtrum 280e11b713 Implement toStream() in querymapper 2017-06-12 22:57:43 -04:00
Travis Burtrum d74c272e73 Add ResultSetIterable support to querymapper 2017-06-08 23:02:12 -04:00