Commit graph

446 commits

Author SHA1 Message Date
Greg Burd
a198989a76 Cleanup. 2017-11-07 23:01:43 -05:00
Greg Burd
eb22e3c72e Added batch() to perform mutations as a batch at the commit of a unit of work. Lots of fixes. 2017-11-07 21:23:33 -05:00
Greg Burd
a79e7dacf1 Cache data from MaterializedViews under their parent name. Add some relationship constraints that can decorate getters in model classes and be used in some cases to better cache data. 2017-11-06 13:49:34 -05:00
Greg Burd
fe47531984 Formatting. 2017-11-03 13:32:57 -04:00
Greg Burd
a600c0bd23 Correct logic error. 2017-11-03 11:41:09 -04:00
Greg Burd
b777e9c051 Remove redundant dependency. 2017-11-03 10:42:46 -04:00
Greg Burd
0b86d33725 Change ALLOW FILTERING logic and session cache merge a bit. 2017-11-03 08:49:31 -04:00
Greg Burd
9eaa53c5f0 Merge branch 'develop' 2017-11-02 16:32:22 -04:00
Greg Burd
690cd1e064 Formatting. 2017-11-02 16:32:09 -04:00
Greg Burd
ef4f9054ac Formatting. 2017-11-02 16:23:45 -04:00
Greg Burd
465c7d6f2a Don't reset is first index every iteration 2017-11-02 16:12:46 -04:00
Greg Burd
864c4af5af We only transition to allow filtering and only if we've not already set it. 2017-11-02 16:09:47 -04:00
Greg Burd
d1fe54b0ce Add ALLOW FILTERING in the cases Cassandra requires it based on query. More result info formatting. 2017-11-02 15:46:49 -04:00
Greg Burd
962145bf46 Formatting. 2017-11-02 15:08:58 -04:00
Greg Burd
e4cda1a268 Re-enable (for now) the addition of ALLOW FILTERING to SELECT statements that include a filter column indexed by a non-standard index type (e.g. SASI, Lucene, etc.) as that's required and mysterious to end users. 2017-11-02 15:05:43 -04:00
Greg Burd
377191f12a No longer add allowFiltering based on entity properties, force user to add as required. Add information about Cassandra execution to the UOW log line when DEBUG. Throw errors when execution doesn't complete properly. 2017-11-02 14:46:55 -04:00
Greg Burd
792d2b6598 Find proper stack frame to use for purpose. 2017-11-02 10:42:15 -04:00
Greg Burd
2ee300e420 Formatting. 2017-11-01 16:19:07 -04:00
Greg Burd
13eaa7e7ea Change how we find the frame to use for the UOW's purpose. 2017-11-01 16:17:00 -04:00
Greg Burd
5905663c58 Cached values were being updated to their database-specific values (Enum -> String) rather than their intended values. 2017-11-01 14:24:03 -04:00
Greg Burd
857eadff45 Avoid complications with merges in the session cache, evict and then update. 2017-11-01 11:09:14 -04:00
Greg Burd
e1884cf52d Remove the 'final' from HelenusSession. 2017-11-01 09:57:58 -04:00
Greg Burd
09a7fbc405 Address some issues identified by FindBugs. 2017-10-31 21:10:15 -04:00
Greg Burd
01a458a7f6 A few minor fixes. 2017-10-31 17:43:52 -04:00
Greg Burd
9675c10772 Merge branch 'develop' 2017-10-30 15:59:38 -04:00
Greg Burd
48545c1e84 Finish implementation of proxy model objects. 2017-10-30 15:21:43 -04:00
Greg Burd
dcea254fdb Formatting. 2017-10-30 11:52:12 -04:00
Greg Burd
5605824886 Minor fixes. 2017-10-30 11:49:48 -04:00
Greg Burd
c3f9b83770 Log the purposes of nested UOWs as well as the parent. Create a serialization proxy for mapped objects. 2017-10-30 09:40:41 -04:00
Greg Burd
52dab5872c Formatting. Also, need to redo merge so as to avoid ValueProviderMap immutability. 2017-10-27 15:05:08 -04:00
Greg Burd
a65b775faa Abstract the SessionCache and allow outside implementations. 2017-10-27 14:33:04 -04:00
Greg Burd
62be0e6ccd Merge branch 'gburd/wip-abstract-cache' into develop 2017-10-27 14:01:08 -04:00
Greg Burd
7b14eda9b3 More caching fixes. 2017-10-27 14:00:24 -04:00
Greg Burd
92f74e41e1 WIP: support other caches 2017-10-27 08:48:42 -04:00
Greg Burd
b04e033bf4 Re-enable TimeoutException. Revert changes to add type to UnitOfWork as it breaks the use of subclasses. 2017-10-26 10:37:08 -04:00
Greg Burd
c7e37acc5a Add generic type where overlooked. Fix some cache logic. 2017-10-25 21:59:12 -04:00
Greg Burd
e5918cd1e8 Formatting. 2017-10-25 20:53:58 -04:00
Greg Burd
7535e9ade7 Improved logging output. Fixed caching for insert, update, delete cases. 2017-10-25 20:53:12 -04:00
Greg Burd
8a7dbfdec1 Implement missing getFacets() methods. Clean up some logic. 2017-10-24 21:07:47 -04:00
Greg Burd
18f2a057de Refining logging. 2017-10-24 16:01:48 -04:00
Greg Burd
1642f09ce9 Fix NPE, replace forEach() with for() /because Java. Formatting. 2017-10-24 14:24:23 -04:00
Greg Burd
c6b95f12b4 Fix up logging a bit. Fix bug where updateCache wasn't properly adding facets that were bound. 2017-10-24 13:40:35 -04:00
Greg Burd
a1e29c62c8 Improve UOW logging. 2017-10-24 11:05:44 -04:00
Greg Burd
25eb81219d WIP: caching 2017-10-23 16:29:23 -04:00
Greg Burd
dcc0927a4a Merge branch 'develop' 2017-10-23 14:48:33 -04:00
Greg Burd
a3b9ff9af3 Formatting 2017-10-23 14:47:56 -04:00
Greg Burd
7c683acb56 Formatting. 2017-10-23 14:41:20 -04:00
Greg Burd
d25061366b Ensure that the session cache is only used on entity objects marked @Cacheable. 2017-10-23 14:40:00 -04:00
Greg Burd
852ee59da2 Only use session cache for entites and only when requested. 2017-10-23 13:37:27 -04:00
Greg Burd
682a1a304e WIP: more progress toward session cache. 2017-10-23 12:45:03 -04:00