20
20
import java .util .stream .Stream ;
21
21
22
22
import org .jspecify .annotations .Nullable ;
23
+
23
24
import org .springframework .dao .DataAccessException ;
24
25
import org .springframework .data .cassandra .core .convert .CassandraConverter ;
25
26
import org .springframework .data .cassandra .core .cql .CqlOperations ;
@@ -92,7 +93,7 @@ default CassandraBatchOperations batchOps() {
92
93
/**
93
94
* The table name used for the specified class by this template.
94
95
*
95
- * @param entityClass The entity type must not be {@literal null}.
96
+ * @param entityClass the entity type must not be {@literal null}.
96
97
* @return the {@link CqlIdentifier}
97
98
*/
98
99
CqlIdentifier getTableName (Class <?> entityClass );
@@ -105,7 +106,7 @@ default CassandraBatchOperations batchOps() {
105
106
* Execute a {@code SELECT} query and convert the resulting items to a {@link List} of entities.
106
107
*
107
108
* @param cql must not be {@literal null}.
108
- * @param entityClass The entity type must not be {@literal null}.
109
+ * @param entityClass the entity type must not be {@literal null}.
109
110
* @return the converted results
110
111
* @throws DataAccessException if there is any problem executing the query.
111
112
*/
@@ -129,7 +130,7 @@ default CassandraBatchOperations batchOps() {
129
130
* Execute a {@code SELECT} query and convert the resulting item to an entity.
130
131
*
131
132
* @param cql must not be {@literal null}.
132
- * @param entityClass The entity type must not be {@literal null}.
133
+ * @param entityClass the entity type must not be {@literal null}.
133
134
* @return the converted object or {@literal null}.
134
135
* @throws DataAccessException if there is any problem executing the query.
135
136
*/
@@ -154,7 +155,7 @@ default CassandraBatchOperations batchOps() {
154
155
* Execute a {@code SELECT} query and convert the resulting items to a {@link List} of entities.
155
156
*
156
157
* @param statement must not be {@literal null}.
157
- * @param entityClass The entity type must not be {@literal null}.
158
+ * @param entityClass the entity type must not be {@literal null}.
158
159
* @return the converted results
159
160
* @throws DataAccessException if there is any problem executing the query.
160
161
*/
@@ -165,7 +166,7 @@ default CassandraBatchOperations batchOps() {
165
166
* query translates the effective {@link Statement#getPageSize()} to the page size.
166
167
*
167
168
* @param statement the CQL statement, must not be {@literal null}.
168
- * @param entityClass The entity type must not be {@literal null}.
169
+ * @param entityClass the entity type must not be {@literal null}.
169
170
* @return the converted results
170
171
* @throws DataAccessException if there is any problem executing the query.
171
172
* @since 2.0
@@ -190,7 +191,7 @@ default CassandraBatchOperations batchOps() {
190
191
* Execute a {@code SELECT} query and convert the resulting item to an entity.
191
192
*
192
193
* @param statement must not be {@literal null}.
193
- * @param entityClass The entity type must not be {@literal null}.
194
+ * @param entityClass the entity type must not be {@literal null}.
194
195
* @return the converted object or {@literal null}.
195
196
* @throws DataAccessException if there is any problem executing the query.
196
197
*/
@@ -204,7 +205,7 @@ default CassandraBatchOperations batchOps() {
204
205
* Execute a {@code SELECT} query and convert the resulting items to a {@link List} of entities.
205
206
*
206
207
* @param query must not be {@literal null}.
207
- * @param entityClass The entity type must not be {@literal null}.
208
+ * @param entityClass the entity type must not be {@literal null}.
208
209
* @return the converted results
209
210
* @throws DataAccessException if there is any problem executing the query.
210
211
* @since 2.0
@@ -215,7 +216,7 @@ default CassandraBatchOperations batchOps() {
215
216
* Execute a {@code SELECT} query with paging and convert the result set to a {@link Slice} of entities.
216
217
*
217
218
* @param query the query object used to create a CQL statement, must not be {@literal null}.
218
- * @param entityClass The entity type must not be {@literal null}.
219
+ * @param entityClass the entity type must not be {@literal null}.
219
220
* @return the converted results
220
221
* @throws DataAccessException if there is any problem executing the query.
221
222
* @since 2.0
@@ -241,7 +242,7 @@ default CassandraBatchOperations batchOps() {
241
242
* Execute a {@code SELECT} query and convert the resulting item to an entity.
242
243
*
243
244
* @param query must not be {@literal null}.
244
- * @param entityClass The entity type must not be {@literal null}.
245
+ * @param entityClass the entity type must not be {@literal null}.
245
246
* @return the converted object or {@literal null}.
246
247
* @throws DataAccessException if there is any problem executing the query.
247
248
* @since 2.0
@@ -253,7 +254,7 @@ default CassandraBatchOperations batchOps() {
253
254
*
254
255
* @param query must not be {@literal null}.
255
256
* @param update must not be {@literal null}.
256
- * @param entityClass The entity type must not be {@literal null}.
257
+ * @param entityClass the entity type must not be {@literal null}.
257
258
* @throws DataAccessException if there is any problem executing the query.
258
259
*/
259
260
boolean update (Query query , Update update , Class <?> entityClass ) throws DataAccessException ;
@@ -262,7 +263,7 @@ default CassandraBatchOperations batchOps() {
262
263
* Remove entities (rows)/columns from the table by {@link Query}.
263
264
*
264
265
* @param query must not be {@literal null}.
265
- * @param entityClass The entity type must not be {@literal null}.
266
+ * @param entityClass the entity type must not be {@literal null}.
266
267
* @throws DataAccessException if there is any problem executing the query.
267
268
*/
268
269
boolean delete (Query query , Class <?> entityClass ) throws DataAccessException ;
@@ -322,7 +323,7 @@ default CassandraBatchOperations batchOps() {
322
323
* @param id the Id value. For single primary keys it's the plain value. For composite primary keys either the
323
324
* {@link org.springframework.data.cassandra.core.mapping.PrimaryKeyClass} or
324
325
* {@link org.springframework.data.cassandra.core.mapping.MapId}. Must not be {@literal null}.
325
- * @param entityClass The entity type must not be {@literal null}.
326
+ * @param entityClass the entity type must not be {@literal null}.
326
327
* @return the converted object or {@literal null}.
327
328
* @throws DataAccessException if there is any problem executing the query.
328
329
*/
@@ -407,15 +408,15 @@ default WriteResult delete(Object entity, DeleteOptions options) throws DataAcce
407
408
* @param id the Id value. For single primary keys it's the plain value. For composite primary keys either the
408
409
* {@link org.springframework.data.cassandra.core.mapping.PrimaryKeyClass} or
409
410
* {@link org.springframework.data.cassandra.core.mapping.MapId}. Must not be {@literal null}.
410
- * @param entityClass The entity type must not be {@literal null}.
411
+ * @param entityClass the entity type must not be {@literal null}.
411
412
* @throws DataAccessException if there is any problem executing the query.
412
413
*/
413
414
boolean deleteById (Object id , Class <?> entityClass ) throws DataAccessException ;
414
415
415
416
/**
416
417
* Execute a {@code TRUNCATE} query to remove all entities of a given class.
417
418
*
418
- * @param entityClass The entity type must not be {@literal null}.
419
+ * @param entityClass the entity type must not be {@literal null}.
419
420
* @throws DataAccessException if there is any problem executing the query.
420
421
*/
421
422
void truncate (Class <?> entityClass ) throws DataAccessException ;
0 commit comments