Commit Graph

100 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 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 1e4a1c2371 Allow parens directly before and after FROM 2020-03-31 23:50:48 -04:00
Travis Burtrum 3a51d6ee56 Fix breakage when encountering TYPE_USE annotations 2020-03-31 21:35:49 -04:00
Travis Burtrum aac0f30e8a Extend SimpleSQLParser to support more SQL, add tests 2020-03-31 21:26:37 -04:00
Travis Burtrum 9e89131a5b Support @RunInTransaction for methods returning void 2019-07-21 00:35:09 -04:00
Travis Burtrum 73867bb011 SimpleSQLChecker handles Stream in-lists 2019-07-12 17:22:38 -04:00
Travis Burtrum 27f26e6ef4 SimpleSQLParser supports subqueries-as-columns now 2019-07-12 15:13:51 -04:00
Travis Burtrum 943ac3ac85 JdbcMapper allow wildcards for java.sql.ResultSet 2019-07-12 14:03:23 -04:00
Travis Burtrum 168186d43f Fix SQLChecker for bind in lists and Bindable sql params 2019-03-12 00:34:23 -04:00
Travis Burtrum 1766a9af6d JdbcMapperProcessor considers anything implementing Bindable a shortcut for {sql:} 2019-03-10 23:40:16 -04:00
Travis Burtrum 94d3ba89e0 SimpleSQLChecker tighten up exception handling 2019-02-15 12:38:55 -05:00
Travis Burtrum 7b1b83fddd Lazy load SQLChecker so it doesn't error if it won't be used 2019-02-15 11:12:24 -05: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 f24ba9ba0b Fix bug with generated SQL for getGeneratedKey, add unit test for it 2019-02-04 23:23:37 -05:00
Travis Burtrum e7f191f54b Reuse variable 2019-01-10 23:09:17 -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 20c5cb6f8d Add SpringRepository and SpringScope annotations for generating JdbcMapper implementations with spring annotations 2018-10-23 01:22:29 -04:00
Travis Burtrum 278e99e894 Fix JdbcMapper blob/clob warning messages and mistaken fallthrough to CLOB case from BLOB 2018-10-09 00:23:22 -04:00
Travis Burtrum fad614f85a Partially implement PreparedStatement.getGeneratedKeys() returning long/Long in JdbcMapper 2018-09-26 00:30:11 -04:00
Travis Burtrum b04e9092d2 Get rid of SourceVersion warnings 2018-09-25 23:53:58 -04:00
Travis Burtrum 6988a438ba Re-enable and fix jdk6 travis tests 2018-09-25 23:35:44 -04:00
Travis Burtrum 3f45785865 Fix not in ANY bind lists 2018-05-23 00:45:22 -04:00
Travis Burtrum 9ad437b697 Can never cache PreparedStatement with bind in lists 2018-05-22 00:54:33 -04:00
Travis Burtrum b609747b50 Fix java6 compilation 2018-05-22 00:26:09 -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 c899d07a71 Profiles to test oracle and hsql special DatabaseTypes 2018-05-19 00:32:25 -04:00
Travis Burtrum 7cc5af55fb Implement UnNestArrayInList for hsqldb 2018-05-15 23:32:00 -04:00
Travis Burtrum 79625c08cd Fix java8+ diamond operator 2018-05-12 00:33: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 3fb9559ba7 Fix generated code causing warnings 2018-05-11 00:14:58 -04:00
Travis Burtrum c04a9ee842 Fix generic array creation error in JdbcMapper, add test 2018-05-08 00:09:56 -04:00
Travis Burtrum 64e500ca2a Add JdbcMapper cleaner test 2018-04-18 00:16:16 -04:00
Travis Burtrum 2be8f073a4 Use correct variable name to work inside lambdas 2018-04-17 23:07:34 -04:00
Travis Burtrum f68fd749e3 Call super(Connection) if it exists, tweak cannot find Constructor error message 2018-03-17 00:42:22 -04:00
Travis Burtrum 50ebcc84cb Begin to refactor tests into single test module 2018-03-15 00:57:57 -04:00
Travis Burtrum 5c3a88232e Handle binding of Enums correctly 2018-03-15 00:45:42 -04:00
Travis Burtrum cb36e783ed Fix paramPattern regex 2018-03-14 02:30:03 -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 ba7fb733b2 More enum support 2018-03-09 00:09:01 -05:00
Travis Burtrum a6c5fc7b52 Implement optional compile-time SQL checking with explain plan 2018-03-06 01:04:44 -05:00
Travis Burtrum 1fa08bc74b Call com.moparisthebest.jdbc.Finishable.finish(ResultSet) in more cases as appropriate 2018-01-15 14:46:13 -05:00
Travis Burtrum 4c8c848a1f Fix jdbcmapper enums when being compiled in same run as generated code 2018-01-15 14:12:41 -05:00
Travis Burtrum 52dec09346 isSetter now recognizes Builder pattern, where this is returned instead of void 2018-01-15 13:24:53 -05:00
Travis Burtrum 6ba284e8c2 Setter methods now just have to start with 'set' not 'set[A-Z_]' 2018-01-15 12:54:59 -05:00