Examples of bindValue()


Examples of javax.jcr.query.Query.bindValue()

        {
            Query query = getJcrSession().getWorkspace().getQueryManager().createQuery( q, Query.JCR_SQL2 );
            ValueFactory valueFactory = getJcrSession().getValueFactory();
            if ( startTime != null )
            {
                query.bindValue( "start", valueFactory.createValue( createCalendar( startTime ) ) );
            }
            if ( endTime != null )
            {
                query.bindValue( "end", valueFactory.createValue( createCalendar( endTime ) ) );
            }
View Full Code Here

Examples of javax.jcr.query.Query.bindValue()

            {
                query.bindValue( "start", valueFactory.createValue( createCalendar( startTime ) ) );
            }
            if ( endTime != null )
            {
                query.bindValue( "end", valueFactory.createValue( createCalendar( endTime ) ) );
            }
            QueryResult result = query.execute();

            artifacts = new ArrayList<>();
            for ( Node n : JcrUtils.getNodes( result ) )
View Full Code Here

Examples of javax.jcr.query.Query.bindValue()

        try
        {
            Query query = getJcrSession().getWorkspace().getQueryManager().createQuery( q, Query.JCR_SQL2 );
            ValueFactory valueFactory = getJcrSession().getValueFactory();
            query.bindValue( "checksum", valueFactory.createValue( checksum ) );
            QueryResult result = query.execute();

            artifacts = new ArrayList<>();
            for ( Node n : JcrUtils.getNodes( result ) )
            {
View Full Code Here

Examples of javax.jcr.query.Query.bindValue()

        query.setOffset(offset);
        if (values != null && !values.isEmpty()) {
            for (Iterator<String> it = values.keySet().iterator(); it.hasNext();) {
                String varName = it.next();
                Value value = ValueFormat.getJCRValue(values.get(varName), sInfo.getNamePathResolver(), sInfo.getSession().getValueFactory());
                query.bindValue(varName, value);
            }
        }
        return new QueryInfoImpl(query.execute(), idFactory,
                sInfo.getNamePathResolver(), getQValueFactory());
    }
View Full Code Here

Examples of org.eclipse.core.databinding.DataBindingContext.bindValue()

    label.setImage(help);

    // add WizardPage validators
    DataBindingContext dbc = new DataBindingContext();
    WizardPageSupport.create(this, dbc);
    dbc.bindValue(SWTObservables.observeText(nameText, SWT.Modify),
        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new FilterNameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(queryText, SWT.Modify),
        queryValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new JSONValidator()), null);
View Full Code Here

Examples of org.eclipse.core.databinding.DataBindingContext.bindValue()

    DataBindingContext dbc = new DataBindingContext();
    WizardPageSupport.create(this, dbc);
    dbc.bindValue(SWTObservables.observeText(nameText, SWT.Modify),
        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new FilterNameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(queryText, SWT.Modify),
        queryValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new JSONValidator()), null);

    setControl(container);
    // disable save until everything matches
View Full Code Here

Examples of org.eclipse.core.databinding.DataBindingContext.bindValue()

    // add WizardPage validators
    DataBindingContext dbc = new DataBindingContext();
    WizardPageSupport.create(this, dbc);

    dbc.bindValue(SWTObservables.observeText(connName, SWT.Modify),
        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new NameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(host, SWT.Modify), hostValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new HostNameValidator()), null);
View Full Code Here

Examples of org.eclipse.core.databinding.DataBindingContext.bindValue()

    WizardPageSupport.create(this, dbc);

    dbc.bindValue(SWTObservables.observeText(connName, SWT.Modify),
        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new NameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(host, SWT.Modify), hostValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new HostNameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(port, SWT.Modify), portValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new PortValidator()), null);
View Full Code Here

Examples of org.eclipse.core.databinding.DataBindingContext.bindValue()

        nameValue, new UpdateValueStrategy()
            .setBeforeSetValidator(new NameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(host, SWT.Modify), hostValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new HostNameValidator()), null);
    dbc.bindValue(SWTObservables.observeText(port, SWT.Modify), portValue,
        new UpdateValueStrategy()
            .setBeforeSetValidator(new PortValidator()), null);

    initialize();
    setControl(container);
View Full Code Here

Examples of org.eclipse.core.databinding.DataBindingContext.bindValue()

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue spinnerObserveSelectionObserveWidget = SWTObservables.observeSelection(spinner);
    IObservableValue wrapperMeasuresNumberOfNewMeasuresObserveValue = PojoObservables.observeValue(wrapper, "measuresNumberOfNewMeasures");
    bindingContext.bindValue(spinnerObserveSelectionObserveWidget, wrapperMeasuresNumberOfNewMeasuresObserveValue, null, null);
    //
    IObservableValue btnCreateNewSectionObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCreateNewSection);
    IObservableValue wrapperMeasuresCreateNewSectionObserveValue = PojoObservables.observeValue(wrapper, "measuresCreateNewSection");
    bindingContext.bindValue(btnCreateNewSectionObserveSelectionObserveWidget, wrapperMeasuresCreateNewSectionObserveValue, null, null);
    //
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.