From 96d0aca9ff3b29be62bc6558af80fe115b646b88 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 6 Nov 2014 15:34:50 -0500 Subject: [PATCH] Implement Dao proxy generation with annotated sql statement execution This functionality is inspired by JDBI but is not based on it's implementation. --- README.markdown | 2 +- build.xml | 544 ++++++------ releases.moxie | 10 +- src/main/java/com/iciql/Dao.java | 162 ++++ src/main/java/com/iciql/DaoProxy.java | 792 ++++++++++++++++++ src/main/java/com/iciql/Db.java | 18 +- src/site/dao.mkd | 137 +++ src/site/examples.mkd | 23 +- src/site/index.mkd | 85 +- src/site/jaqu_comparison.mkd | 1 + src/site/model_classes.mkd | 4 +- src/site/table_versioning.mkd | 32 +- src/site/usage.mkd | 17 +- src/test/java/com/iciql/test/IciqlSuite.java | 2 +- .../java/com/iciql/test/ProductDaoTest.java | 346 ++++++++ .../java/com/iciql/test/models/Product.java | 10 + .../com/iciql/test/models/SupportedTypes.java | 2 +- 17 files changed, 1868 insertions(+), 319 deletions(-) create mode 100644 src/main/java/com/iciql/Dao.java create mode 100644 src/main/java/com/iciql/DaoProxy.java create mode 100644 src/site/dao.mkd create mode 100644 src/test/java/com/iciql/test/ProductDaoTest.java diff --git a/README.markdown b/README.markdown index 63ec22a..fdc5699 100644 --- a/README.markdown +++ b/README.markdown @@ -5,7 +5,7 @@ iciql **is**... - a model-based, database access wrapper for JDBC - for modest database schemas and basic statement generation - for those who want to write code, instead of SQL, using IDE completion and compile-time type-safety -- small (200KB with debug symbols) with no runtime dependencies +- small (225KB with debug symbols) with no runtime dependencies - pronounced *icicle* (although it could be French: *ici ql* - here query language) - a friendly fork of the H2 [JaQu](http://h2database.com/html/jaqu.html) project diff --git a/build.xml b/build.xml index bcbcd7f..008f31a 100644 --- a/build.xml +++ b/build.xml @@ -1,271 +1,273 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This will take a minute or two... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -