|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fatwire.assetapi.query.SimpleQuery
public class SimpleQuery
This class presents a helpful way to create Queries based on commonly used patterns.
| Constructor Summary | |
|---|---|
SimpleQuery(Query query)
Constructs a Simple query from a query; Query cannot be null, if null is specified, a NullPointerException will be thrown |
|
SimpleQuery(java.lang.String assetType,
java.lang.String subtype)
Builds Query with asset type. |
|
SimpleQuery(java.lang.String assetType,
java.lang.String subtype,
Condition cond,
java.util.List<java.lang.String> attributeNames)
Builds a Query for an asset type, a Condition and a List of attributes. |
|
SimpleQuery(java.lang.String assetType,
java.lang.String subtype,
Condition cond,
java.util.List<java.lang.String> attributeNames,
java.util.List<SortOrder> sortOrder)
Builds a Query for an asset type, a Condition, and a List of attributes where results are sorted. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAssetType()
Returns asset type this query is built for |
java.util.List<java.lang.String> |
getAttributeNames()
Lists name of the attributes requested in the Query |
Condition |
getCondition()
Returns Condition for this Query, if any, |
QueryProperties |
getProperties()
Gets properties associated with this Query instance. |
java.util.List<SortOrder> |
getSortOrder()
Returns list of SortOrders. |
java.lang.String |
getSubtype()
Returns asset type this query is built for |
void |
setAttributes(java.util.List<java.lang.String> attributeNames)
Sets(resets) the names of attributes this Query uses. |
void |
setCondition(Condition cond)
Sets(resets) Condition used for this query |
void |
setProperties(QueryProperties props)
Sets(resets) properties associated with this Query instance. |
void |
setSortOrder(java.util.List<SortOrder> sort)
Sets(resets) sort order to be used in this Query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleQuery(Query query)
query - the Query that we will use to constructs the SimpleQuery; NULLPointerException will be thrown if query is null
public SimpleQuery(java.lang.String assetType,
java.lang.String subtype)
assetType - name of the asset type
public SimpleQuery(java.lang.String assetType,
java.lang.String subtype,
Condition cond,
java.util.List<java.lang.String> attributeNames)
QueryProperties of this instance to read all attributes.
assetType - Name of the asset typecond - data Condition to be satisfied by returning dataattributeNames - names of the attributes that will be made part of the result.
public SimpleQuery(java.lang.String assetType,
java.lang.String subtype,
Condition cond,
java.util.List<java.lang.String> attributeNames,
java.util.List<SortOrder> sortOrder)
SortOrder
assetType - Name of the asset typecond - data Condition to be satisfied by returning dataattributeNames - names of the attributes that will be made part of the result.sortOrder - Sorting criteria.| Method Detail |
|---|
public java.lang.String getAssetType()
getAssetType in interface Querypublic java.lang.String getSubtype()
getSubtype in interface Querypublic Condition getCondition()
getCondition in interface Querypublic void setCondition(Condition cond)
cond - the Condition that the Query containspublic java.util.List<java.lang.String> getAttributeNames()
getAttributeNames in interface Querypublic void setAttributes(java.util.List<java.lang.String> attributeNames)
attributeNames - List of Attribute namespublic java.util.List<SortOrder> getSortOrder()
getSortOrder in interface Querypublic void setSortOrder(java.util.List<SortOrder> sort)
sort - List of SortOrderpublic QueryProperties getProperties()
getProperties in interface Querypublic void setProperties(QueryProperties props)
props - properties
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||