Interface CqlScript

    • Method Detail

      • ofClassPath

        static CqlScript ofClassPath​(String name)
        Creates CqlScript with the specified resource name and default charset.
        Parameters:
        name - the resource name
        Returns:
        a new CqlScript
      • ofClassPath

        static CqlScript ofClassPath​(String name,
                                     Charset charset)
        Creates CqlScript with the specified resource name and charset.
        Parameters:
        name - the resource name
        charset - the encoding to use
        Returns:
        a new CqlScript
      • ofResource

        static CqlScript ofResource​(Resource resource)
        Creates CqlScript with the specified resource and default charset.
        Parameters:
        resource - the resource to use
        Returns:
        a new CqlScript
        Since:
        4.0.1
      • ofResource

        static CqlScript ofResource​(Resource resource,
                                    Charset charset)
        Creates CqlScript with the specified resources and charset.
        Parameters:
        resource - the resource to use
        charset - the encoding to use
        Returns:
        a new CqlScript
        Since:
        4.0.1
      • ofStatements

        static CqlScript ofStatements​(String... statements)
        Creates CqlScript with the specified statements.
        Parameters:
        statements - the statements to use
        Returns:
        a new CqlScript
        Since:
        5.0.0
      • ofStatements

        static CqlScript ofStatements​(List<? extends String> statements)
        Creates CqlScript with the specified statements.
        Parameters:
        statements - the statements to use
        Returns:
        a new CqlScript
        Since:
        5.0.0
      • forEachStatement

        default void forEachStatement​(Consumer<? super String> callback)
        Performs the provided callback for each statement of the CqlScript.
        Parameters:
        callback - The action to be performed for each statement
      • getStatements

        List<String> getStatements()
        Gets CQL statements.
        Returns:
        CQL statements (never null)