com.versionone.apiclient.services.QueryURLBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of VersionOne.SDK.Java.APIClient Show documentation
Show all versions of VersionOne.SDK.Java.APIClient Show documentation
A library for custom Java development against the VersionOne Development Platform's REST API.
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