Annotation Interface CQL


@Retention(RUNTIME) @Target(METHOD) public @interface CQL
Annotation used to define a dynamic CQL query method in ScyllaDBRepository. Methods annotated with @CQL allow the execution of custom ScyllaDB Query Language (CQL) statements within repository interfaces. Example usage:

 @CQL("SELECT * FROM users WHERE username = :username")
 List<User> findByUsername(@Param("username") String username);
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The CQL query string to be executed.
  • Element Details

    • value

      String value
      The CQL query string to be executed.
      Returns:
      the CQL query string