Commit Graph

255 Commits

Author SHA1 Message Date
46686e5b05 Allow JdbcMapper to use reflection for non-public fields optionally 2017-06-19 00:34:23 -04:00
115a62293e Allow CompilingRowToObjectMapper to use reflection for non-public fields optionally 2017-06-18 21:58:55 -04:00
f9ac10c70f Fix multiple artifact builds 2017-06-13 23:55:57 -04:00
fe2a6eec22 Support for java.time api classes 2017-06-13 22:56:00 -04:00
6fe563f25a Re-factor TypeMappingsFactory with proper support for Enums 2017-06-13 21:42:32 -04:00
9c22b36267 Implement Stream support in jdbcmapper 2017-06-12 23:48:54 -04:00
280e11b713 Implement toStream() in querymapper 2017-06-12 22:57:43 -04:00
c902da5126 Add support for java 8 while keeping java 6 compatible artifacts 2017-06-12 20:59:04 -04:00
099d88c26d Enable java 8 lambda for ResultSetIterable when compiling for 8+ 2017-06-12 19:24:04 -04:00
12ba416181 Preserve parameter level annotations in generated source 2017-06-11 20:25:53 -04:00
881de93799 Add ResultSetIterable support to jdbcmapper 2017-06-09 00:36:41 -04:00
d74c272e73 Add ResultSetIterable support to querymapper 2017-06-08 23:02:12 -04:00
d80a9325d7 Nicer dynamic type support for JdbcMapper maxRows, fixed unlimited loop on MAX_VALUE 2017-06-08 01:27:56 -04:00
4db87d4dc5 javax.sql is not java.sql oops 2017-06-08 00:23:59 -04:00
e28c1fef14 Add support for maxRows in the annotation and sent in dynamically 2017-06-08 00:09:00 -04:00
d0d362c58c Implement Cleaner interface support in JdbcMapper, relax Cleaner interface 2017-06-07 21:29:28 -04:00
85e0d868fe Compile differently based on Calendar object existence 2017-06-07 20:30:58 -04:00
8e125d8e68 Clean up random todos 2017-06-07 19:15:00 -04:00
6897043392 Fix compilation with java 6 2017-06-07 03:00:29 -04:00
53a8c4032e Add missing import to generated JdbcMapper classes 2017-06-07 02:50:36 -04:00
783b51b810 Migrate JdbcMapperProcessor away from using reflection and Class objects all together... 2017-06-07 02:43:46 -04:00
a1ad929cf4 Half measure to avoid using Class objects in CompileTimeResultSetMapper 2017-06-06 22:33:51 -04:00
be6689aa29 Sometimes class is not available on classpath, use type when we can 2017-05-29 18:26:11 -04:00
f028853c15 Set in list type names in a smarter fashion 2017-06-02 01:59:17 -04:00
c1139447e4 In JdbcMapper, error out on unused parameters 2017-06-02 01:01:53 -04:00
f14b87203a If we can not properly infer PreparedStatement bind in JdbcMapper, error out saying so 2017-06-02 00:43:32 -04:00
8d9a01766f Implement in lists for Oracle and standard SQL in JdbcMapper 2017-06-02 00:39:03 -04:00
2162e35456 Add support for binding Blob, Clob, java.sql.Array to PreparedStatement in JdbcMapper 2017-05-29 18:26:11 -04:00
12fc0edbd4 Call .setClob for clob wrapped Strings in QueryMapper 2017-05-29 18:24:48 -04:00
2f19f2ad46 Remove requirement for @JdbcMapper.Mapper to implement JdbcMapper, logic around requiring close() method or not 2017-05-28 23:38:10 -04:00
5960341297 Add presto-sqlparser module for alternative SQLParser implementation (requires java 8+) 2017-05-28 22:14:30 -04:00
849a85f1be Split into modules 2017-05-28 18:01:00 -04:00
59cf4ff2cd Fork from beehive 2017-05-28 00:29:58 -04:00
d8f7e6df4a Initial JdbcMapper annotation support 2017-05-27 23:54:22 -04:00
67ae0d257c Change getColumnName to getColumnLabel, should work the same on oracle and fix mysql... 2017-05-26 11:43:33 -04:00
5d859c49d7 Fix test database use with multiple test classes 2017-05-18 14:59:16 -04:00
efd1d44808 Major refactor, more tests 2017-05-18 14:26:23 -04:00
e7639d740c Somewhat major re-factor, all tests pass now 2017-05-17 17:32:48 -04:00
b425bb49b0 Setup tests for all ResultSetMappers, fix some problems 2017-05-17 15:45:45 -04:00
c9e8037963 Cache options for CachingResultSetMapper too, added StaticCachingResultSetMapper and StaticCompilingResultSetMapper 2017-05-17 14:01:08 -04:00
ccbbb3929e Cache constructor in CachingResultSetMapper too 2017-05-17 13:49:36 -04:00
f97ad82389 Some re-factoring for lazy loading 2017-05-17 13:07:08 -04:00
9310c759e6 Flexible cache implementation options in CompilingResultSetMapper 2017-05-17 12:35:28 -04:00
34a7a55bfc Fix map and array mapping from CompilingResultSetMapper, add javadocs 2017-05-17 11:18:58 -04:00
61010ec39e Handle booleans same way in CompilingResultSetMapper as ResultSetMapper 2017-05-17 10:15:27 -04:00
2e6fce9786 Initial CompilingResultSetMapper implementation 2017-05-16 16:56:53 -04:00
9d131e13ce Make CachingResultSetMapper not have an entire cache shared over the whole application, only per instance, also fix hashing logic 2017-05-16 12:32:34 -04:00
1b2f248574 Add Compiler 2017-05-16 10:42:14 -04:00
8ac701ea4a Fix NewDefaultObjectResultSetMapper 2017-04-20 14:53:43 -04:00
b0a5905c41 Remove toMap that takes a Map class, because it cannot be called without an unchecked warning, send in object 2017-04-20 14:15:59 -04:00