Migrate driver 3 statements to immutable driver 4 statements

Proprietary

Driver 4 statements are immutable, and each setter returns a changed copy, so a setter called for its effect has its result assigned back to the variable. new SimpleStatement(..) becomes SimpleStatement.newInstance(..), new BoundStatement(prepared) becomes prepared.bind() and new BatchStatement(..) becomes BatchStatement.newInstance(..). Renamed accessors such as setFetchSize and getQueryString follow.

io.moderne.cassandra.driver4.MigrateStatements
mod run . --recipe=io.moderne.cassandra.driver4.MigrateStatements

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.