@@ -76,7 +76,7 @@ public SelectWithProjection<T> from(SqlIdentifier tableName) {
76
76
77
77
Assert .notNull (tableName , "Table name must not be null" );
78
78
79
- return new ReactiveSelectSupport <>(this . template , this . domainType , this . returnType , this . query , tableName );
79
+ return new ReactiveSelectSupport <>(template , domainType , returnType , query , tableName );
80
80
}
81
81
82
82
/*
@@ -88,7 +88,7 @@ public <R> SelectWithQuery<R> as(Class<R> returnType) {
88
88
89
89
Assert .notNull (returnType , "ReturnType must not be null" );
90
90
91
- return new ReactiveSelectSupport <>(this . template , this . domainType , returnType , this . query , this . tableName );
91
+ return new ReactiveSelectSupport <>(template , domainType , returnType , query , tableName );
92
92
}
93
93
94
94
/*
@@ -100,7 +100,7 @@ public TerminatingSelect<T> matching(Query query) {
100
100
101
101
Assert .notNull (query , "Query must not be null" );
102
102
103
- return new ReactiveSelectSupport <>(this . template , this . domainType , this . returnType , query , this . tableName );
103
+ return new ReactiveSelectSupport <>(template , domainType , returnType , query , tableName );
104
104
}
105
105
106
106
/*
@@ -109,7 +109,7 @@ public TerminatingSelect<T> matching(Query query) {
109
109
*/
110
110
@ Override
111
111
public Mono <Long > count () {
112
- return this . template .doCount (this . query , this . domainType , getTableName ());
112
+ return template .doCount (query , domainType , getTableName ());
113
113
}
114
114
115
115
/*
@@ -118,7 +118,7 @@ public Mono<Long> count() {
118
118
*/
119
119
@ Override
120
120
public Mono <Boolean > exists () {
121
- return this . template .doExists (this . query , this . domainType , getTableName ());
121
+ return template .doExists (query , domainType , getTableName ());
122
122
}
123
123
124
124
/*
@@ -127,8 +127,7 @@ public Mono<Boolean> exists() {
127
127
*/
128
128
@ Override
129
129
public Mono <T > first () {
130
- return this .template .doSelect (this .query .limit (1 ), this .domainType , getTableName (), this .returnType ,
131
- RowsFetchSpec ::first );
130
+ return template .doSelect (query .limit (1 ), domainType , getTableName (), returnType , RowsFetchSpec ::first );
132
131
}
133
132
134
133
/*
@@ -137,8 +136,7 @@ public Mono<T> first() {
137
136
*/
138
137
@ Override
139
138
public Mono <T > one () {
140
- return this .template .doSelect (this .query .limit (2 ), this .domainType , getTableName (), this .returnType ,
141
- RowsFetchSpec ::one );
139
+ return template .doSelect (query .limit (2 ), domainType , getTableName (), returnType , RowsFetchSpec ::one );
142
140
}
143
141
144
142
/*
@@ -147,11 +145,11 @@ public Mono<T> one() {
147
145
*/
148
146
@ Override
149
147
public Flux <T > all () {
150
- return this . template .doSelect (this . query , this . domainType , getTableName (), this . returnType , RowsFetchSpec ::all );
148
+ return template .doSelect (query , domainType , getTableName (), returnType , RowsFetchSpec ::all );
151
149
}
152
150
153
151
private SqlIdentifier getTableName () {
154
- return this . tableName != null ? this . tableName : this . template .getTableName (this . domainType );
152
+ return tableName != null ? tableName : template .getTableName (domainType );
155
153
}
156
154
}
157
155
}
0 commit comments