Skip to content

Conversation

@mp911de
Copy link
Member

@mp911de mp911de commented May 2, 2019

We now provide fluent operations for all CRUD operations through a fluent interface.

We introduced Criteria and Update objects to express filter conditions and to describe update assignments.

We also removed StatementFactory in favor of a StatementMapper. StatementMapper accepts statement specifications and maps these to dialec-specific PreparedOperations considering mapping-metadata.

We also split documentation for R2DBC into parts for easier editing.


Depends on: #73.

mp911de added 4 commits May 6, 2019 14:14
We now support Criteria creation and mapping to express where conditions with a fluent API. databaseClient.select().from("legoset")	.where(Criteria.of("name").like("John%").and("id").lessThanOrEquals(42055)); databaseClient.delete()	.from(LegoSet.class)	.where(Criteria.of("id").is(42055))	.then() databaseClient.delete()	.from(LegoSet.class)	.where(Criteria.of("id").is(42055))	.fetch()	.rowsUpdated()
Document fluent API. Add fluent API for update. Introduce StatementMapper. Migrate Insert to StatementMapper. Refactoring and cleanup. Migrate Select to StatementMapper.
@mp911de mp911de marked this pull request as ready for review May 6, 2019 12:36
@schauder schauder self-requested a review May 7, 2019 08:19
Fixed typos, formatting and minor errors in documentation.
Copy link
Contributor

@schauder schauder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments, nothing sever.

*/
protected ConnectionFactory obtainConnectionFactory() {
return connector;
return this.connector;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for using this. all over the place?

@odrotbohm odrotbohm self-requested a review May 8, 2019 07:14
odrotbohm added a commit that referenced this pull request May 8, 2019
Incorporated feedback from review. Polished documentation and Javadoc. Minor code improvements restructuring for better readability. Removed unused methods types. Some polishing for compiler warnings. Original pull request: #106.
odrotbohm pushed a commit that referenced this pull request May 8, 2019
We now support Criteria creation and mapping to express where conditions with a fluent API. databaseClient.select().from("legoset") .where(Criteria.of("name").like("John%").and("id").lessThanOrEquals(42055)); databaseClient.delete() .from(LegoSet.class) .where(Criteria.of("id").is(42055)) .then() databaseClient.delete() .from(LegoSet.class) .where(Criteria.of("id").is(42055)) .fetch() .rowsUpdated() Original pull request: #106.
odrotbohm pushed a commit that referenced this pull request May 8, 2019
odrotbohm pushed a commit that referenced this pull request May 8, 2019
Document fluent API. Add fluent API for update. Introduce StatementMapper. Migrate Insert to StatementMapper. Refactoring and cleanup. Migrate Select to StatementMapper. Original pull request: #106.
odrotbohm pushed a commit that referenced this pull request May 8, 2019
Fixed typos, formatting and minor errors in documentation. Original pull request: #106.
odrotbohm added a commit that referenced this pull request May 8, 2019
Incorporated feedback from review. Polished documentation and Javadoc. Minor code improvements restructuring for better readability. Removed unused methods types. Some polishing for compiler warnings. Original pull request: #106.
@odrotbohm
Copy link
Member

That's polished and merged.

@odrotbohm odrotbohm closed this May 8, 2019
@mp911de mp911de deleted the issue/gh-64 branch September 5, 2019 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants