|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.client.SrampClientQuery
public class SrampClientQuery
An S-RAMP Query, created by the SrampAtomApiClient 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:
| Constructor Summary | |
|---|---|
protected |
SrampClientQuery(SrampAtomApiClient client,
String queryTemplate)
Constructor. |
| Method Summary | |
|---|---|
SrampClientQuery |
ascending()
Sets ascending to true. |
SrampClientQuery |
count(int count)
|
SrampClientQuery |
descending()
Sets ascending to false. |
SrampClientQuery |
orderBy(String orderBy)
|
SrampClientQuery |
parameter(Calendar param)
Sets a parameter on the query. |
SrampClientQuery |
parameter(Date param)
Sets a parameter on the query - this should match up to a ? in the query template provided. |
SrampClientQuery |
parameter(double param)
Sets a parameter on the query - this should match up to a ? in the query template provided. |
SrampClientQuery |
parameter(float param)
Sets a parameter on the query - this should match up to a ? in the query template provided. |
SrampClientQuery |
parameter(int param)
Sets a parameter on the query - this should match up to a ? in the query template provided. |
SrampClientQuery |
parameter(long param)
Sets a parameter on the query - this should match up to a ? in the query template provided. |
SrampClientQuery |
parameter(Number param)
Sets a parameter on the query - this should match up to a ? in the query template provided. |
SrampClientQuery |
parameter(String param)
Sets a parameter on the query - this should match up to a ? in the query template provided. |
SrampClientQuery |
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. |
SrampClientQuery |
startIndex(int startIndex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SrampClientQuery(SrampAtomApiClient client,
String queryTemplate)
client - queryTemplate - | Method Detail |
|---|
public SrampClientQuery parameter(String param)
param - public SrampClientQuery parameter(int param)
param - public SrampClientQuery parameter(long param)
param - public SrampClientQuery parameter(double param)
param - public SrampClientQuery parameter(Date param)
parameter(Calendar param)
param - public SrampClientQuery parameter(Calendar param)
param - public SrampClientQuery parameter(float param)
param - public SrampClientQuery parameter(Number param)
param - public SrampClientQuery startIndex(int startIndex)
startIndex - the startIndex to setpublic SrampClientQuery count(int count)
count - the count to setpublic SrampClientQuery orderBy(String orderBy)
orderBy - the orderBy to setpublic SrampClientQuery ascending()
public SrampClientQuery descending()
public SrampClientQuery propertyName(String propertyName)
propertyName - property name to include in the result
public QueryResultSet query()
throws SrampClientException,
SrampAtomException
SrampAtomException
SrampClientException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||