| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.wli.config.resource.BaseQuery
com.bea.wli.config.resource.ResourceQuery
public class ResourceQuery
Query for searching resources based on various properties
| Field Summary | |
|---|---|
| static long | serialVersionUID | 
| Constructor Summary | |
|---|---|
| ResourceQuery(String typeId) | |
| Method Summary | |
|---|---|
|  void | addKeySearch(String key,
             Object keyValue)Adds a filtering condition. | 
|  void | addSubQuery(ResourceQuery q)Adds a subquery to be performed over a subordinate type in addition to this query | 
|  Collection<String> | getAttrsToReturn() | 
|  Map<String,Object> | getFilter() | 
|  String | getLocalName() | 
|  String | getPath() | 
|  Collection<ResourceQuery> | getSubQueries() | 
|  String | getTypeId() | 
|  Date | getUpdatedAfter() | 
|  Date | getUpdatedBefore() | 
|  boolean | isChangedInSessionOnly() | 
|  void | lastUpdatedBetween(Date startDate,
                   Date endDate)Adds a predicate to return the resource modified in between two dates. | 
|  void | setAttrsToReturn(Collection<String> attrsToReturn)Sets additional attributes to return. | 
|  void | setChangedInSessionOnly(boolean changedInSessionOnly)Adds a predicate to consider only the existing resources that have been modified (updated or created) in the session. | 
|  void | setLocalName(String localName)Adds a predicate to return only resource that have the given local name relative to their project / folder. | 
|  void | setPath(String path)Adds a predicate to return only resources under the given path | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final long serialVersionUID
| Constructor Detail | 
|---|
public ResourceQuery(String typeId)
typeId - type id of the resources to be searched. If null all resource types are
        searched. For valid type ids please refer to Refs class| Method Detail | 
|---|
public String getTypeId()
public String getPath()
public String getLocalName()
public Map<String,Object> getFilter()
public Collection<String> getAttrsToReturn()
public Collection<ResourceQuery> getSubQueries()
public Date getUpdatedAfter()
public Date getUpdatedBefore()
public boolean isChangedInSessionOnly()
public void addKeySearch(String key,
                         Object keyValue)
key - keyValue - public void setPath(String path)
path - public void setLocalName(String localName)
localName - public void setAttrsToReturn(Collection<String> attrsToReturn)
attrsToReturn - public void addSubQuery(ResourceQuery q)
q - 
public void lastUpdatedBetween(Date startDate,
                               Date endDate)
startDate - start date of the date rangeendDate - end date of the date rangepublic void setChangedInSessionOnly(boolean changedInSessionOnly)
changedInSessionOnly - a value of true causes only the
      resources that has been modified in the session to be
      considered. A false value however indicates that all
      resources be considered, regardless of updates.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||