org.gcube.data.tml.proxies
Class SourceQueryBuilder

java.lang.Object
  extended by org.gcube.data.tml.proxies.SourceQueryBuilder

public class SourceQueryBuilder
extends Object

Builds queries for Tree Manager services that give read or write access to data sources.

Author:
Fabio Simeoni

Constructor Summary
SourceQueryBuilder(org.gcube.common.clients.fw.queries.StatefulQuery query)
           
 
Method Summary
 org.gcube.common.clients.fw.queries.StatefulQuery build()
          Returns the query.
 SourceQueryBuilder withId(String id)
          Sets a source identifier on the query.
 SourceQueryBuilder withName(String name)
          Sets a source name on the query.
 SourceQueryBuilder withType(QName type)
          Sets a source type on the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceQueryBuilder

public SourceQueryBuilder(org.gcube.common.clients.fw.queries.StatefulQuery query)
Method Detail

withId

public SourceQueryBuilder withId(String id)
Sets a source identifier on the query.

Parameters:
id - the identifier
Returns:
this builder

withName

public SourceQueryBuilder withName(String name)
Sets a source name on the query.

Parameters:
name - the name
Returns:
this builder

withType

public SourceQueryBuilder withType(QName type)
Sets a source type on the query.

Parameters:
name - the type
Returns:
this builder

build

public org.gcube.common.clients.fw.queries.StatefulQuery build()
Returns the query.

Returns:
the query.


Copyright © 2014. All Rights Reserved.