Commit Graph

466 Commits

Author SHA1 Message Date
Mark Paluch
00734b67ea DATACASS-632 - Add ReactiveFluentCassandraOperations Coroutines extensions.
This commit introduces Coroutines support for ReactiveFluentCassandraOperations API via Kotlin extensions that provide suspendable functions prefixed by `await` or suffixed by `AndAwait` for Mono based APIs.

Extensions for Flux will be added when Kotlin/kotlinx.coroutines#254 is fixed.
2019-02-22 15:07:32 +01:00
Mark Paluch
dd3a5a680a DATACASS-627 - Add support for derived Between queries.
We now support derived queries using the Between keyword. Between query parts map to either two simple parameters (findByAgeBetween(int from, int to)) or a Range<T> parameter that defines inclusive/exclusive boundary comparison (findByAgeBetween(Range<Integer> age)).

Between queries use are issued by default as exclusive ranges so findByAgeBetween(int from, int to) maps to age > from AND age < to.
2019-02-22 11:12:45 +01:00
Mark Paluch
aa3ed4e22b DATACASS-622 - Updated changelog. 2019-02-13 11:47:52 +01:00
Mark Paluch
3a062afafb DATACASS-623 - Add support for read-only properties.
We now support read-only properties by annotating such properties with @ReadOnlyProperty. Read-only properties are read from results but never written (i.e. through INSERT or UPDATE) back to Cassandra.

Read-only properties can still be updated by using the Update/Query API.

class Person {

  @Id String id;

  String firstname;
  String lastname;
  @ReadOnlyProperty String externallyUpdatedProperty;
}

CassandraTemplate template = …
Person person = …
template.insert(person);
2019-01-31 10:01:30 +01:00
Mark Paluch
9e825d376e DATACASS-585 - Document relationship between @PrimaryKeyColumn and @Id.
Document that using PrimaryKeyColumn does not mark properties as Id properties.
2019-01-30 09:51:08 +01:00
Mark Paluch
aa54b8a9a1 DATACASS-610 - Updated changelog. 2019-01-10 14:15:39 +01:00
Mark Paluch
d917c7ec40 DATACASS-609 - Updated changelog. 2019-01-10 12:26:31 +01:00
Mark Paluch
1612cfb001 DATACASS-608 - Updated changelog. 2019-01-10 11:01:17 +01:00
Mark Paluch
e6b5c5e7a2 DATACASS-616 - Update copyright years to 2019. 2019-01-02 12:22:19 +01:00
Christoph Strobl
f64e851ac2 DATACASS-612 - Prepare 2.2 M1 (Moore). 2018-12-11 10:53:11 +01:00
Christoph Strobl
42a833887f DATACASS-612 - Updated changelog. 2018-12-11 10:53:07 +01:00
Mark Paluch
63747cef1f DATACASS-613 - Simplify reference documentation setup. 2018-12-10 10:04:26 +01:00
Mark Paluch
7c08eba31d DATACASS-605 - Updated changelog. 2018-11-27 14:54:05 +01:00
Mark Paluch
44b2e50c10 DATACASS-602 - Updated changelog. 2018-11-27 12:36:45 +01:00
Mark Paluch
3584efbd4c DATACASS-603 - Updated changelog. 2018-11-27 11:27:19 +01:00
Mark Paluch
ada4bc0ab1 DATACASS-601 - Updated changelog. 2018-10-29 14:32:04 +01:00
Mark Paluch
795ae8fa18 DATACASS-598 - Updated changelog. 2018-10-15 11:37:19 +02:00
Mark Paluch
a11785ad42 DATACASS-588 - Prepare 2.1 GA (Lovelace). 2018-09-21 07:07:50 -04:00
Mark Paluch
bfaf7fb31d DATACASS-588 - Updated changelog. 2018-09-21 07:07:44 -04:00
Mark Paluch
69a6f9b1b9 DATACASS-596 - Include documentation about Object Mapping Fundamentals.
Related ticket: DATACMNS-1374.
2018-09-18 13:04:01 +02:00
Mark Paluch
6286761ce1 DATACASS-583 - Updated changelog. 2018-09-10 14:15:49 +02:00
Mark Paluch
bfc85d9e7e DATACASS-584 - Updated changelog. 2018-09-10 10:20:53 +02:00
Oliver Gierke
090ae848a1 DATACASS-582 - Prepare 2.1 RC2 (Lovelace). 2018-08-20 10:39:43 +02:00
Oliver Gierke
ea53863855 DATACASS-582 - Updated changelog. 2018-08-20 10:39:32 +02:00
Mark Paluch
c61683cae5 DATACASS-566 - Updated changelog. 2018-07-27 11:45:20 +02:00
Mark Paluch
e6f4cb562b DATACASS-567 - Updated changelog. 2018-07-26 16:23:51 +02:00
Mark Paluch
31c6d209ed DATACASS-554 - Prepare 2.1 RC1 (Lovelace). 2018-07-26 12:04:30 +02:00
Mark Paluch
8da68a03a9 DATACASS-554 - Updated changelog. 2018-07-26 12:04:21 +02:00
Mark Paluch
c843293fa5 DATACASS-529 - Polishing.
Introduce ReactiveResultSet.availableRows() to fetch rows without transparent paging. Refactor QueryUtils to extract a Slice from an Iterable. Add slice(Query, Class) to ReactiveCassandraOperations to expose a consistent API. Convert space indentation to tab indentation. Add tests. Add since tags. Add documentation. Reformat code.

Original pull request: #128.
2018-06-18 11:54:16 +02:00
Mark Paluch
7e64eddbfd DATACASS-552 - Updated changelog. 2018-06-13 21:39:49 +02:00
Mark Paluch
ac0f0c3bcc DATACASS-551 - Updated changelog. 2018-06-13 15:01:55 +02:00
Mark Paluch
e462c7165a DATACASS-561 - Polishing.
Fix typos. Use uppercase CQL keywords. Remove outdated sections. Align reactive and imperative documentation wording.

Original pull request: #132.
2018-06-04 15:39:35 +02:00
Jay Bryant
a0ceb25edd DATACASS-561 - Full editing pass on reference documentation.
Original pull request: #132.
2018-06-04 15:39:35 +02:00
Jay Bryant
5a2c190d4c DATACASS-562 - Add coverpage for epub documentation output.
Original pull request: #132.
2018-06-04 14:10:43 +02:00
Christoph Strobl
9080d64622 DATACASS-545 - Prepare 2.1 M3 (Lovelace). 2018-05-17 09:50:48 +02:00
Christoph Strobl
7f8b174509 DATACASS-545 - Updated changelog. 2018-05-17 09:50:40 +02:00
Mark Paluch
f123624b3d DATACASS-484 - Add Kotlin extensions for Template API.
We now provide Kotlin extensions for imperative, asynchronous, and reactive Template API interfaces.

CqlOperations and CassandraOperations expose Kotlin-friendly methods accepting KClasses and leveraging reified generics. We also provide Kotlin-friendly method renames for methods such as in that do not require quoting in Kotlin code.

operations.query(Person::class).inTable("my_table").asType<User>().all()

operations.select<Person>(query(where("firstname").isEqualTo("Walter") and where("lastname").isEqualTo("White")))
2018-05-17 00:10:31 -07:00
Mark Paluch
6b250c6e47 DATACASS-540 - Updated changelog. 2018-05-08 15:27:19 +02:00
Mark Paluch
bf4dc741aa DATACASS-539 - Updated changelog. 2018-05-08 12:22:50 +02:00
Mark Paluch
8cfbd4b167 DATACASS-524 - Prepare 2.1 M2 (Lovelace). 2018-04-13 14:30:01 +02:00
Mark Paluch
9eab52e1a2 DATACASS-524 - Updated changelog. 2018-04-13 14:29:51 +02:00
Mark Paluch
2e20a21843 DATACASS-302 - Support Cassandra time columns.
We now support Cassandra time columns via LocalTime types (JSR-310, Joda and ThreeTenBackport) in domain classes, queries and updates.

@Table
class Schedule {

  @Id String id;

  LocalTime scheduledAt;

}
2018-04-10 23:07:09 -07:00
Ivan Sopov
b90682add2 DATACASS-541 - Remove links to decommissioned Planet Cassandra.
Planet Cassandra was decommissioned on October 31st, 2016.
For more information - https://www.datastax.com/2016/10/take-a-bow-planet-cassandra.

Original pull request: #126.
2018-04-06 14:30:59 +02:00
Mark Paluch
d2f2498ae4 DATACASS-532 - Updated changelog. 2018-04-04 17:12:49 +02:00
Mark Paluch
69d22c50c3 DATACASS-519 - Updated changelog. 2018-04-04 15:16:20 +02:00
John Blum
48077f8b0e DATACASS-523 - Polish. 2018-03-26 15:52:45 -07:00
Mark Paluch
dd718ae234 DATACASS-523 - Documentation. 2018-03-26 15:52:38 -07:00
Mark Paluch
56df77efdf DATACASS-106 - Polishing.
Add AfterConvertEvent, introduce base class for AbstractDeleteEvent. Turn table name in mapping events to non-nullable. Replace guessTableName(…) with getTableName(…) and table name extraction from statements. Pass table name to converter mapper function for event propagation. Refactor tests to base class and test operations accessor.

Introduce lifecycle events and ProjectionFactory to AsyncCassandraTemplate.

Extend JavaDoc, add author and since tags. Reduce copyright year to inception year of new classes. Extend reference documentation.

Original pull request: #123.
2018-03-06 09:35:32 +01:00
Lukasz Antoniak
774d6b2732 DATACASS-106 - Support persistence lifecycle callbacks.
We now support persistence lifecycle callbacks via Spring's ApplicationEvents. Events are fired upon select, insert, update, delete, and truncate statements. The following events are available:

* BeforeSaveEvent: Before inserting/updating a row in the database, via insert(…) and update(…).
* AfterSaveEvent: After inserting/updating a row in the database, via insert(…) and update(…).
* BeforeDeleteEvent: Before deleting row from the database, via delete(…) and truncate(…).
* AfterDeleteEvent: After deleting row from the database, via delete(…) and truncate(…).
* AfterLoadEvent: After retrieving a row from the database, via select(…), slice(…), and stream(…).
* AfterConvertEvent: After converting a row from the database to a POJO, via select(…), slice(…), and stream(…).

Original pull request: #123.
2018-03-06 09:35:23 +01:00
Mark Paluch
7e7bc5121b DATACASS-526 - Updated changelog. 2018-02-28 11:17:33 +01:00