Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DATACASS-484 - Add Kotlin extensions for Template API. #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mp911de wants to merge 3 commits into master from issue/DATACASS-484

Conversation

@mp911de
Copy link
Member

@mp911de mp911de commented Mar 28, 2018

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")))

Related ticket: DATACASS-484.

xmlking, 1ou, and michael-barker reacted with thumbs up emoji
mp911de added 3 commits March 28, 2018 16:00
Introduce static empty Query and Update objects.
Remove unused type argument from ReactiveUpdateOperation.
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")))
Copy link
Member Author

mp911de commented Mar 28, 2018

/cc @sdeleuze

jxblum added a commit to jxblum/spring-data-cassandra that referenced this pull request May 17, 2018
@jxblum jxblum added this to the Lovelace-M3 milestone May 17, 2018
@mp911de mp911de deleted the issue/DATACASS-484 branch May 17, 2018 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Labels

None yet

Projects

None yet

Milestone

Lovelace-M3

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /