All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.versionone.apiclient.services.QueryURLBuilder Maven / Gradle / Ivy

Go to download

A library for custom Java development against the VersionOne Development Platform's REST API.

There is a newer version: 16.1.3
Show newest version
package com.versionone.apiclient.services;

import com.versionone.apiclient.Query;
import com.versionone.apiclient.SelectionBuilder;
import com.versionone.apiclient.SortBuilder;

/**
 * Responsible for building the query
 */
public class QueryURLBuilder extends CompositeBuilder {
    private final Query query;

    public QueryURLBuilder(Query query, boolean isV1connector) {
        this.query = query;

        builders.add(new HierarchicalPartBuilder(isV1connector));
        builders.add(new SelectionBuilder());
        builders.add(new WhereBuilder());
        builders.add(new SortBuilder());
        builders.add(new PagingBuilder());
        builders.add(new AsOfBuilder());
        builders.add(new FindBuilder());
        builders.add(new WithVariablesBuilder());
    }

    
	@Override
    public String toString() {
        return build(query, new BuildResult()).toUrl();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy