DATACASS-631 - Polish.
Resolves gh-138.
This commit is contained in:
@@ -40,6 +40,7 @@ inline fun <reified T : Any> ExecutableSelectOperation.query(): ExecutableSelect
|
||||
/**
|
||||
* Extension for [ExecutableSelectOperation.SelectWithProjection. as] providing a [KClass] based variant.
|
||||
*/
|
||||
@Deprecated("Since 2.2, use the reified variant", replaceWith = ReplaceWith("asType<T>()"))
|
||||
fun <T : Any> ExecutableSelectOperation.SelectWithProjection<*>.asType(resultType: KClass<T>): ExecutableSelectOperation.SelectWithQuery<T> =
|
||||
`as`(resultType.java)
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ fun <T : Any> ReactiveCassandraOperations.exists(id: Any, entityClass: KClass<T>
|
||||
* Extension for [ReactiveCassandraOperations.exists] leveraging reified type parameters.
|
||||
*/
|
||||
inline fun <reified T : Any> ReactiveCassandraOperations.exists(id: Any): Mono<Boolean> =
|
||||
exists(id, T::class)
|
||||
exists(id, T::class.java)
|
||||
|
||||
/**
|
||||
* Extension for [ReactiveCassandraOperations.count] providing a [KClass] based variant.
|
||||
|
||||
Reference in New Issue
Block a user