Commit Graph

1264 Commits

Author SHA1 Message Date
Mark Paluch
f29cededbb DATACASS-722 - Move off deprecated EntityInstantiators.
We now use the newly introduced EntityInstantiator at o.s.d.mapping.model and moved off the deprecated one in o.s.d.convert.
2020-01-29 11:29:34 +01:00
John Blum
6bf448adac DATACASS-721 - Refactor codebase around uses of the new DataStax 4.x Driver API. 2020-01-21 21:24:23 -08:00
Mark Paluch
c341025138 DATACASS-708 - Allow configuration of execution profile and serial consistency per statement.
We now allow configuration of the execution profile and serial consistency through QueryOptions and CassandraAccessor/ReactiveCqlTemplate. Settings are applied on a per-Statement basis. The newly ExecutionProfileResolver can resolve the profile either from a profile name or a DriverExecutionProfile object for more flexibility.

With this change, we removed the support for setting a RetryPolicy directly as the new driver 4 does not support a direct configuration of the RetryPolicy. Instead, the RetryPolicy is configured through an execution profile.
2020-01-17 13:26:35 +01:00
Mark Paluch
a3e66c3f67 DATACASS-717 - After release cleanups. 2020-01-17 09:47:50 +01:00
Mark Paluch
2d7d49937d DATACASS-717 - Prepare next development iteration. 2020-01-17 09:47:49 +01:00
Mark Paluch
cb480e3472 DATACASS-717 - Release version 3.0 M2 (Neumann). 2020-01-17 09:39:03 +01:00
Mark Paluch
6e944b0854 DATACASS-717 - Prepare 3.0 M2 (Neumann). 2020-01-17 09:38:43 +01:00
Mark Paluch
eb8ef64561 DATACASS-717 - Updated changelog. 2020-01-17 09:38:35 +01:00
Mark Paluch
848eed31a0 DATACASS-692 - After release cleanups. 2020-01-16 16:11:55 +01:00
Mark Paluch
b47669e7fd DATACASS-692 - Prepare next development iteration. 2020-01-16 16:11:54 +01:00
Mark Paluch
99d50096cd DATACASS-692 - Release version 3.0 M1 (Neumann). 2020-01-16 16:05:23 +01:00
Mark Paluch
dbc101488b DATACASS-692 - Prepare 3.0 M1 (Neumann). 2020-01-16 16:05:03 +01:00
Mark Paluch
478f82c898 DATACASS-692 - Updated changelog. 2020-01-16 16:05:00 +01:00
Mark Paluch
71c6851bb7 DATACASS-656 - Guard tests for unsupported Cassandra versions. 2020-01-15 14:57:35 +01:00
Mark Paluch
9dc4f17260 DATACASS-699 - Polishing.
Javadoc tweaks.
2020-01-15 14:41:12 +01:00
Mark Paluch
cce8d54898 DATACASS-656 - Extend test matrix on TravisCI to use latest 2.2, 3.0 and 3.11 Cassandra versions.
Guard tests for unsupported Cassandra versions.
2020-01-15 14:41:11 +01:00
Greg Turnquist
6f6d91c7d6 DATACASS-699 - Address changes in Java 9 and newer.
Adapt to changed Stream behavior that mapper is not used when issuing a count() operation. Fix generics.
2020-01-15 14:41:11 +01:00
Mark Paluch
040a5938a3 DATACASS-699 - Introduce Testcontainers for integration tests. 2020-01-15 14:41:11 +01:00
Mark Paluch
cfc3148dbd DATACASS-707 - Updated changelog. 2020-01-15 12:51:13 +01:00
Mark Paluch
a16e8fb158 DATACASS-706 - Updated changelog. 2020-01-15 10:36:36 +01:00
Mark Paluch
dc2ccc8ba2 DATACASS-714 - Upgrade to Cassandra driver 4.3.1. 2020-01-14 14:40:32 +01:00
Mark Paluch
9b8fbe31fa DATACASS-713 - Rename Session and SessionFactory bean names with cassandra prefix.
We now register the Session under cassandraSession and SessionFactory with cassandraSessionFactory as bean name. ReactiveSession and ReactiveSessionFactory beans are named reactiveCassandraSession respective reactiveCassandraSessionFactory. Beans are consistently named using Java and XML-based configuration avoiding potential clashes with other data integrations that use Session or SessionFactory beans.
2020-01-14 10:26:05 +01:00
Mark Paluch
ee09353cb3 DATACASS-656 - Polishing.
Pick up compression type and session name properties along with SessionBuilderConfigurer.

Include LocalDataCenter in migration guide.
2020-01-14 10:08:58 +01:00
Mark Paluch
15df0fdddb DATACASS-656 - Polishing.
Fix nullability annotation on Update.update(…) to accept null values.
2020-01-08 13:49:13 +01:00
Mark Paluch
3079bcf6e4 DATACASS-656 - Disable schema debouncer.
Allows running tests much faster as we no longer use the debouncer.
2020-01-08 12:20:39 +01:00
Mark Paluch
343983847d DATACASS-656 - Polishing.
Fix references to CqlSession. Typos.

Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
4d08a90eda DATACASS-656 - Move Name enumeration to CassandraType.
CassandraType is a better place for the name enumeration as it provides the necessary context how Cassandra primitives are used than CassandraSimpleTypeHolder.

Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
4098040e71 DATACASS-656 - Update documentation.
Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
5ae8e4c2aa DATACASS-656 - Polishing.
Update license header years to 2020.

Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
b083941b7c DATACASS-656 - Increase test timeouts to run safely on slower environments. 2020-01-08 12:06:56 +01:00
Mark Paluch
2946f2913a DATACASS-656 - Test cleanups.
Original pull request: #167.
2020-01-08 11:47:05 +01:00
Mark Paluch
100a94bfad DATACASS-656 - Introduce MapTerm, SetTerm, and ListTerm.
Collection-type terms cannot properly render tuple values or UDT values so we're translating these to proper CQL using nested term collections.

Original pull request: #167.
2020-01-08 11:47:01 +01:00
Mark Paluch
3bf86dd0b1 DATACASS-656 - Polishing.
Move to Driver's CqlIdentifier in Javadoc.

Original pull request: #167.
2020-01-08 11:46:59 +01:00
Mark Paluch
7e5455ce03 DATACASS-656 - Deprecate forceQuote.
Forced quoting is now deprecated as we're using CqlIdentifier which is able to determine whether an identifier requires quoting.

Original pull request: #167.
2020-01-08 11:46:56 +01:00
Mark Paluch
68a8588df9 DATACASS-656 - Support j.u.Date as TIMESTAMP type.
Cassandra Driver 4 uses LocalDateTime as type for TIMESTAMP. We want to allow also usage of plain old Date to ease migration.

Original pull request: #167.
2020-01-08 11:46:51 +01:00
Mark Paluch
4ded76da0e DATACASS-656 - Migrate to Cassandra driver 4.
Original pull request: #167.
2020-01-08 11:46:48 +01:00
Mark Paluch
67bc99ff0a DATACASS-656 - Migrate QueryOptions.fetchSize and readTimeout to pageSize and timeout.
Use renamed Statement options by introducing new pageSize(…) and timeout(…) methods. Deprecated existing methods. Also, deprecate retryPolicy method in preparation for execution profiles.

Original pull request: #167.
2020-01-08 11:46:42 +01:00
Mark Paluch
968eedbcf9 DATACASS-656 - Add StatementBuilder and AsyncResultStream utilities.
We now provide a utility class to build CQL statements using a fluent functional declaration.

AsyncResultStream can forward-stream over a AsyncResultStream by fetching subsequent pages and applying either a Consumer or Collector for non-blocking processing of asynchronously fetched results.

Original pull request: #167.
2020-01-08 11:46:38 +01:00
Mark Paluch
24f73b89c7 DATACASS-656 - Migrate CQL generators to new CqlIdentifier.
Original pull request: #167.
2020-01-08 11:46:34 +01:00
Mark Paluch
3eb2bb10f0 DATACASS-656 - Add CassandraValueProvider for new driver types (row, tuples, UDT).
Original pull request: #167.
2020-01-08 11:46:29 +01:00
Mark Paluch
7f743e3c4e DATACASS-656 - Migrate CqlSessionFactoryBean to CqlSession.
Original pull request: #167.
2020-01-08 11:46:25 +01:00
Mark Paluch
2dd83238af DATACASS-705 - Introduce FactoryBean for SessionFactory.
We now provide SessionFactoryFactoryBean as factory bean and initializer for a SessionFactory.

<cassandra:session-factory>
	<cassandra:script
			location="my/scripts/schema.cql"/>
</cassandra:session-factory>

Original pull request: #167.
2020-01-08 11:46:21 +01:00
Mark Paluch
efb5b4b5d4 DATACASS-705 - Polishing.
Use consistently -ref.

Original pull request: #167.
2020-01-08 11:46:17 +01:00
Mark Paluch
119c0b499a DATACASS-703 - Move Keyspace initialization from CassandraClusterFactoryBean to CassandraCqlSessionFactoryBean.
Original pull request: #167.
2020-01-08 11:46:14 +01:00
Mark Paluch
bf3ea7ab0a DATACASS-704 - Add utility to initialize and cleanup the CQL keyspace.
Original pull request: #167.
2020-01-08 11:45:06 +01:00
Mark Paluch
7c45340b77 DATACASS-656 - Bump version to 3.0.0.BUILD-SNAPSHOT.
Original pull request: #167.
2020-01-08 11:44:55 +01:00
Mark Paluch
ce8f0467cc DATACASS-711 - Update copyright years to 2020. 2020-01-07 08:36:56 +01:00
Jens Schauder
7bd67eecfd DATACASS-702 - Updated changelog. 2019-12-04 14:32:42 +01:00
Jens Schauder
bfc48fedd3 DATACASS-701 - Updated changelog. 2019-12-04 12:09:44 +01:00
Mark Paluch
5aa269ac58 DATACASS-698 - Updated changelog. 2019-11-18 12:43:25 +01:00