Commit Graph

11 Commits

Author SHA1 Message Date
Oliver Gierke
e1ffab6131 Simplified implementation of SimpleParameterAccessor.
Changed API of Parameters and Parameter class accordingly. Adapted test cases as well.
2010-12-07 20:47:28 +01:00
Oliver Gierke
a551a6a061 Improvements in AbstractRepositoryConfigDefinitionParser.
Slight modification to the callback that's called once per repositories root node. Clarified JavaDoc regarding it's purpose.
2010-12-06 21:19:03 +01:00
Oliver Gierke
2b7c555273 DATACMNS-10 - Made some QueryMethod methods public. 2010-12-02 19:26:22 +01:00
Oliver Gierke
4bd005d17b DATACMNS-10 - Introduce method name parser to build criteria based queries.
Minor tweaks to Parameter and Parameters to remove some JPA implications (1-based position indexes). Introduced PartTree abstraction that results from query parsing and allows simple API to traverse the query parts. Added AbstractQueryCreator to implement general traversing logic on PartTree and provide typed callback hooks for persistence technology specific creation of a criteria query.
2010-12-02 18:56:16 +01:00
Oliver Gierke
e82b896fa9 Refactored internal mechanism to resolve RepositoryQuery instances.
Simplified creation of RepositoryQuery instances by changing the QueryLookupStrategy interface method to take a plain Method instead of a QueryMethod. This way we get rid of an indirection where subclasses have to implement two methods (one creating a QueryMethod, one returning the QueryLookupStrategy). Thus a QueryLookupStrategy is responsible for creating RepositoryQueries from a Method and using a QueryMethod is an implementation detail of QueryLookupStrategy implementations actually.
2010-11-30 12:40:12 +01:00
Oliver Gierke
1c80a56626 Generified QueryLookupStrategy to allow type safe calls to resolveQuery(…) without the need for an explicit cast. 2010-11-29 23:00:41 +01:00
Oliver Gierke
6194acd825 Initial commit for repository abstraction.
Extracted common functionality from project Hades to build a common infrastructure for generic repository implementations independent of the underlying persistence mechanism. Fixes DATACMNS-2, DATACMNS-3, DATACMNS-4, DATACMNS-5, DATACMNS-6, DATACMNS-8, DATACMNS-9.
2010-11-28 18:15:38 +01:00
Thomas Risberg
b750d48df4 changed package name 2010-11-17 17:36:42 -05:00
Mark Pollack
46315f9916 Remove override annotation for building on Java 5 2010-11-09 11:44:12 -05:00
Thomas Risberg
dbe37a6d21 moved @Indexed to data-commons 2010-10-21 14:21:51 -04:00
Thomas Risberg
0f7984a331 Switched to use new project layout; updated build; moved files around 2010-10-07 12:14:39 -04:00