Examples of CommandBuilder


Examples of com.cloudera.cdk.morphline.api.CommandBuilder

    }
    if (!(obj instanceof CommandBuilder)) {
      throw new MorphlineCompilationException("Type of command " + cmdName + " must be an instance of "
          + CommandBuilder.class.getName() + " but is: " + cmdClass.getName(), cmdConfig);
    }
    CommandBuilder builder = (CommandBuilder) obj;
    Command cmd = builder.build(cmdConfig.getConfig(cmdName), currentParent, finalChild, getContext());
    return cmd;
  }
View Full Code Here

Examples of com.redspr.redquerybuilder.core.client.command.CommandBuilder

    private void createCommandBuilder(final Configuration config, String sql, List args)
            throws Exception {

        final Session session = new Session(config);

        final CommandBuilder builder = new CommandBuilder(session, sql, args);

        session.getMsgBus().addHandler(TableEvent.TYPE,
                new TableEventHandler() {
                    @Override
                    public void onTable(TableEvent e) {
                        if (session.getFilters().size() > 0) {
                            config.fireOnTableChange(session.getFilters());
                            // XXX need to do distinct?
                            ObjectArray expr = ObjectArray.newInstance();
                            TableFilter tf = session.getFilters().get(0);
                            String alias = tf.getAlias();
                            for (Column col : tf.getTable().getColumns()) {
                                expr.add(new ExpressionColumn(session, null, alias,
                                    col.getName()));
                            }
                            builder.getSelect().setExpressions(expr);
                        } else {
                            builder.getSelect().setExpressions(null);
                        }
                    }
                });

        builder.addValueChangeHandler(new ValueChangeHandler<Select>() {
            @Override
            public void onValueChange(ValueChangeEvent<Select> event) {
                List<Object> args = new ArrayList<Object>();
                String sql = event.getValue().getSQL(args);
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    public String getShortDescription() {
        return "Bring changes from the repository into the working copy.";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("update")
                .withName("up")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

                "remove conflict markers; it merely removes the conflict-related\n" +
                "artifact files and allows PATH to be committed again.";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("resolved")
                .withName("res")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    private Option optForce;
    private Argument argJcrPath;
    private Argument argLocalPath;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("get")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(optForce = new DefaultOptionBuilder()
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    public String getShortDescription() {
        return "Display the differences between two paths.";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("diff")
                .withName("di")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

                "  getRelated <jcr-path>\n"+
                "  test <repo-path>";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("debug")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(argCommand = new ArgumentBuilder()
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    }

    private Argument argJcrPath;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("invalidate")
                .withName("inv")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    public String getShortDescription() {
        return "Send changes from your working copy to the repository.";
    }

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("commit")
                .withName("ci")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
View Full Code Here

Examples of org.apache.commons.cli2.builder.CommandBuilder

    private Option optAdd;

    private Option optRemove;

    protected Command createCommand() {
        return new CommandBuilder()
                .withName("mixins")
                .withDescription(getShortDescription())
                .withChildren(new GroupBuilder()
                        .withName("Options:")
                        .withOption(optAdd = new DefaultOptionBuilder()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.