public class ArtificerClientQuery extends Object
ArtificerAtomApiClient
from an xpath template. The
xpath template is of the same form as a typical JDBC statement (using the ? character
for replacements). Following are same example usages:Modifier | Constructor and Description |
---|---|
protected |
ArtificerClientQuery(ArtificerAtomApiClient client,
String queryTemplate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ArtificerClientQuery |
ascending()
Sets ascending to true.
|
ArtificerClientQuery |
count(int count) |
ArtificerClientQuery |
descending()
Sets ascending to false.
|
ArtificerClientQuery |
orderBy(String orderBy) |
ArtificerClientQuery |
parameter(Calendar param)
Sets a parameter on the query.
|
ArtificerClientQuery |
parameter(Date param)
Sets a parameter on the query - this should match up to a ? in the
query template provided.
|
ArtificerClientQuery |
parameter(double param)
Sets a parameter on the query - this should match up to a ? in the
query template provided.
|
ArtificerClientQuery |
parameter(float param)
Sets a parameter on the query - this should match up to a ? in the
query template provided.
|
ArtificerClientQuery |
parameter(int param)
Sets a parameter on the query - this should match up to a ? in the
query template provided.
|
ArtificerClientQuery |
parameter(long param)
Sets a parameter on the query - this should match up to a ? in the
query template provided.
|
ArtificerClientQuery |
parameter(Number param)
Sets a parameter on the query - this should match up to a ? in the
query template provided.
|
ArtificerClientQuery |
parameter(String param)
Sets a parameter on the query - this should match up to a ? in the
query template provided.
|
ArtificerClientQuery |
propertyName(String propertyName) |
QueryResultSet |
query()
Formats the query given the replacement params, then issues the query
to the S-RAMP repository and returns the result.
|
ArtificerClientQuery |
startIndex(int startIndex) |
protected ArtificerClientQuery(ArtificerAtomApiClient client, String queryTemplate)
client
- queryTemplate
- public ArtificerClientQuery parameter(String param)
param
- public ArtificerClientQuery parameter(int param)
param
- public ArtificerClientQuery parameter(long param)
param
- public ArtificerClientQuery parameter(double param)
param
- public ArtificerClientQuery parameter(Date param)
parameter(Calendar param)
param
- public ArtificerClientQuery parameter(Calendar param)
param
- public ArtificerClientQuery parameter(float param)
param
- public ArtificerClientQuery parameter(Number param)
param
- public ArtificerClientQuery startIndex(int startIndex)
startIndex
- the startIndex to setpublic ArtificerClientQuery count(int count)
count
- the count to setpublic ArtificerClientQuery orderBy(String orderBy)
orderBy
- the orderBy to setpublic ArtificerClientQuery ascending()
public ArtificerClientQuery descending()
public ArtificerClientQuery propertyName(String propertyName)
propertyName
- property name to include in the resultpublic QueryResultSet query() throws ArtificerClientException, ArtificerServerException
Copyright © 2011–2015 JBoss, a division of Red Hat. All rights reserved.