Commit Graph

40 Commits

Author SHA1 Message Date
Oliver Gierke
4ea08045fb DATAKV-134 - Updated changelog. 2016-07-28 08:57:08 +02:00
Christoph Strobl
522173e5c3 DATAKV-136 - Choose SecureRandom algorithm based on operating system and availability.
We now distinguish between operating systems when choosing a SecureRandom algorithm. Additionally we check the availability of the implementations and choose the first one available.

Original pull request: #21.
2016-06-13 13:21:10 +02:00
Oliver Gierke
eb1e043860 DATAKV-132 - Updated changelog. 2016-04-06 23:14:23 +02:00
Oliver Gierke
c40cfc07df DATAKV-130 - Updated changelog. 2016-04-06 18:44:31 +02:00
Oliver Gierke
74551c44bc DATAKV-128 - Updated changelog. 2016-03-18 13:19:16 +01:00
Oliver Gierke
5b8cbca571 DATAKV-126 - Prepare 1.0.4 (Gosling SR4). 2016-02-23 12:56:55 +01:00
Oliver Gierke
b24bb667f2 DATAKV-126 - Updated changelog. 2016-02-23 12:56:46 +01:00
Oliver Gierke
aba50ea481 DATAKV-124 - Updated changelog. 2016-02-12 22:11:00 +01:00
Oliver Gierke
2d16bb988a DATAKV-122 - Prepare 1.0.2.RELEASE (Gosling SR2). 2015-12-18 08:30:37 +01:00
Oliver Gierke
906ed6510e DATAKV-122 - Updated changelog. 2015-12-18 08:30:24 +01:00
Oliver Gierke
9737c02c6b DATAKV-118 - Prepare 1.0.1.RELEASE (Gosling SR1). 2015-11-15 14:06:55 +01:00
Oliver Gierke
28e4c4d1a0 DATAKV-118 - Updated changelog. 2015-11-15 14:06:52 +01:00
Oliver Gierke
0ba4b0b3c9 DATAKV-114 - Polishing.
Polished newly added unit tests. Added missing license header and JavaDoc where necessary. More speaking variable names. Removed unnecessary code from test domain type.

Original pull request: #15.
2015-11-02 06:34:19 +01:00
Martin Macko
4b217cef15 DATAKV-114 - Fixed NullPointerException in SpelQueryEngine.
Original pull request: #15.
2015-11-02 06:34:13 +01:00
Martin Macko
ddeee72f0d DATAKV-111 - Fix typos in reference documentation. 2015-10-31 15:17:25 +01:00
Oliver Gierke
44839d2982 DATAKV-110 - Prepare 1.0.0.RELEASE (Gosling GA). 2015-09-01 09:44:23 +02:00
Oliver Gierke
3a717b4497 DATAKV-110 - Updated changelog. 2015-09-01 09:44:20 +02:00
Oliver Gierke
7ee5c663bb DATAKV-109 - Prepare 1.0.0.RC1 (Gosling RC1). 2015-08-04 11:48:44 +02:00
Oliver Gierke
b7f565f181 DATAKV-109 - Updated changelog. 2015-08-04 11:48:42 +02:00
Oliver Gierke
7b2e624b86 DATAKV-108 - Prepare 1.0.0.M1 (Gosling M1).
Added changelog, license and notice file.
2015-06-02 09:20:38 +02:00
Oliver Gierke
3371a6b7a2 DATAKV-104 - Polishing.
Moved configuration setters under constructors of KeyValueTemplate.

Original pull request: #12.
2015-05-19 17:49:12 +02:00
Christoph Strobl
fe50d6b242 DATAKV-104 - Refactor event handling according to design in Spring Data MongoDB.
We now favor dedicated types over event type enum and allow events to be generically typed. We favor ApplicationEventPublisherAware over ApplicationContextAware. By default we now publish all events and allow user to opt out.

Original pull request: #12.
2015-05-19 17:49:12 +02:00
Oliver Gierke
e3733ab9b5 DATAKV-105 - Polishing.
Moved KeySpaceResolver interfaces into mapping package. Let defaulting happen in BasicKeyValuePersistentEntity so that ClassNameKeySpaceResolver can be made package protected.

FowardingCloseableIterator is now generically typed and not bound to Map.Entry.

Original pull request: #11.
2015-05-19 17:36:00 +02:00
Christoph Strobl
f19a6c0faf DATAKV-105 - Polish implementation after recent addition of features.
Remove obsolete method hasKeyspace() from KeyValueAdapter. Transition from List to Iterable for find methods in KeyValueTemplate.

We now offer a plug able KeySpace resolution by providing a KeySpaceResolver via the KeyValueMappingContext. By default an AnnotationBasedKeySpaceResolver will be used to examine the type for @KeySpace. In case of non explicit keySpace we fall back to using the class' fully-qualified name as the default key space.

Key space resolution is now fixed on resolving @KeySpace on a given PersistentEntity. In case no annotation key space can be found we by default fall back to a class name based key space. It is possible to configure the fallback via the MappingContext.

Refactored names & visibility of types required for tests.
Removed shortcut for returning results not having an explicit key space, since we now can no longer rely on the type name strategy dividing non explicit types into separate key spaces.

Original pull request: #11.
2015-05-19 17:35:56 +02:00
Christoph Strobl
02759f58ea DATAKV-99 - Polishing.
Removed dedicated Entry<K,V> interface, since Map.Entry<K,V> is already sufficient. Favoured CloseableIterator over KeyValueIterator since it offers no additional functionality but less generic parameter clutter.
Added missing JavaDoc.
2015-05-13 12:53:44 +02:00
Christoph Strobl
952a901164 DATAKV-101 - Favor Iterable over Collection types for KeyValueOperations.
Change return types for Adapter and Operations from Collection types to Iterable. Added count(keyspace) to KeyValueAdapter.

Original pull request: #8.
2015-05-11 11:39:56 +02:00
Christoph Strobl
16dc4b5e7d DATAKV-99 - Add KeyValueIterator.
We now offer the possibility to iterate through available key/value pairs via a KeyValueIterator. The default implementation for java.util.Map based Adapters is a ForwardingKeyValueIterator delegating to the underlying entrySet iterator.

Original pull request: #7.
2015-05-11 11:26:31 +02:00
Christoph Strobl
07b3a1547c DATAKV-91 - Add support for sending application events.
We now allow definition of event types to be published via the application context.

Original pull request: #5.
2015-05-05 16:09:31 +02:00
Christoph Strobl
a8a37d4a32 DATAKV-98 - Adapt to changes in Spring Data Commons.
Tweaked method signatures in KeyValueRepositoryFactory after some signature changes in Spring Data Commons. Use newly introduced getTragetRepositoryViaReflection(…) to obtain the repository instance via the super class.

Added repositoryBaseClass() attribute to @EnableMapRepositories.

Related tickets: DATACMNS-542.
2015-05-05 12:20:30 +02:00
Thomas Darimont
c305988582 DATAKV-96 - Added QueryDslPredicateExecutor.findAll(Predicate, Sort).
We now support findAll on QuerydslKeyValueRepository that accepts a Querydsl Predicate and a Sort.

Original pull request: #4.
2015-02-24 10:18:19 +01:00
Oliver Gierke
8f1bc111b4 DATAKV-95 - Added exists(…) method to QuerydslKeyValueRepository.
Renamed QueryDsl… classes to Querydsl… for consistency. Restructured test cases for repositories to make better use of generics.
2015-02-03 11:50:16 +01:00
Christoph Strobl
b8de114457 DATAKV-94 - Remove @since attributes from left over from sd-commons. 2014-12-19 08:36:24 +01:00
Christoph Strobl
680d32fff8 DATAKV-93 - Added README and reference documentation.
Original pull request: #3.
2014-12-05 19:38:16 +01:00
Oliver Gierke
bc88cb48ac DATAKV-87 - Polished implementation of configurability of Map type on @EnableMapRepositories.
Removed the MapKeyValueAdapterFactory in favor of using instantiating MapKeyValueAdapters directly. Reverted additional hook in KeyValueRepositoryConfigurationExtension as we now rather use inner bean definitions.

Original pull request: #2.
2014-12-05 19:38:13 +01:00
Christoph Strobl
b16a454c6c DATAKV-87 - Allow definition of target Map type via @EnableMapRepositories.
We added the configuration attribute ‘mapType’ to @EnableMapRepositories which allows to change defaulting of the Map structure used by the MapKeyValueAdapter. To do so we now register a MapKeyValueAdapterFactory and delegate creation of the adapter to it. This also allows usage of interface types such as plain java.util.Map which will initialize the adapter with the approximated type resolved via CollectionFactory.

Original pull request #2.
2014-12-05 19:37:55 +01:00
Oliver Gierke
5a14d7bc12 DATAVK-86 - Improved auto-template-registration infrastructure.
KeyValueRepositoryConfigurationExtension now need to report the default value for the KeyValueTemplate reference. We now only register a default template if the reference has not been customized. Changed the default reference value for Maps to mapKeyValueTemplate to allow individual defaults per store.

Removed obsolete RepositoryNamespaceHandler.

Original pull request: #1.
2014-12-01 16:35:28 +01:00
Christoph Strobl
ff1338a99c DATAKV-86 - Move configuration infrastructure for Map-based repositories.
We removed the EnableKeyValueRepositories in favor of store specific implementations. In this case EnableMapRepositories.

The configuration now defaults a KeyValueTemplate with a MapKeyValueAdapter but allows overriding the template in a bean named keyValueTemplate.
2014-12-01 16:13:01 +01:00
Christoph Strobl
4f37a7ecc3 DATAKV-90 - Add findAll variant with QueryDSL OrderSpecifier without a Predicate. 2014-11-28 15:17:51 +01:00
Christoph Strobl
5f62882a3e DATAKV-89 - KeyValueTemplate now throws DuplicateKeyException.
We now throw DuplicateKeyException instead of InvalidDataAccessApiUsageException in case an object with given id already exists.

Original pull request: spring-projects/spring-data-commons#106.
2014-11-27 14:30:22 +01:00
Oliver Gierke
42a13a7403 DATAKV-85 - Ported key-value infrastructure from Spring Data Commons. 2014-11-27 14:19:30 +01:00