Class CqlExecCassandraMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="cql-exec",
          threadSafe=true,
          defaultPhase=PRE_INTEGRATION_TEST)
    public class CqlExecCassandraMojo
    extends AbstractCqlExecMojo
    Executes cql statements from maven.
    Author:
    zznate
    • Field Detail

      • cqlScript

        @Parameter(property="cassandra.cql.script",
                   defaultValue="${basedir}/src/cassandra/cql/exec.cql")
        protected File cqlScript
        The CQL script which will be executed
      • cqlStatement

        @Parameter(property="cql.statement")
        protected String cqlStatement
        The CQL statement to execute singularly
      • defaultValidator

        @Parameter(property="cql.defaultValidator")
        protected String defaultValidator
        Expected type of the column value
      • keyValidator

        @Parameter(property="cql.keyValidator")
        protected String keyValidator
        Expected type of the key
      • comparator

        @Parameter(property="cql.comparator")
        protected String comparator
        Expected type of the column name
    • Constructor Detail

      • CqlExecCassandraMojo

        public CqlExecCassandraMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException