|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fatwire.assetapi.query.SimpleQuery
public class SimpleQuery
This class presents a helpful way to create Queries based on commonly used patterns.
Constructor Summary | |
---|---|
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 with all invarients specified... |
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 thsi query |
void |
setProperties(QueryProperties props)
|
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(java.lang.String assetType, java.lang.String subtype)
assetType
- name of the asset typepublic SimpleQuery(java.lang.String assetType, java.lang.String subtype, Condition cond, java.util.List<java.lang.String> attributeNames)
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)
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 Query
public java.lang.String getSubtype()
getSubtype
in interface Query
public Condition getCondition()
getCondition
in interface Query
public void setCondition(Condition cond)
cond
- public java.util.List<java.lang.String> getAttributeNames()
getAttributeNames
in interface Query
public void setAttributes(java.util.List<java.lang.String> attributeNames)
attributeNames
- List of Attribute namespublic java.util.List<SortOrder> getSortOrder()
getSortOrder
in interface Query
public void setSortOrder(java.util.List<SortOrder> sort)
sort
- List of SortOrderpublic QueryProperties getProperties()
getProperties
in interface Query
public void setProperties(QueryProperties props)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |