Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


com.bea.wli.config.resource
Class ResourceQuery

java.lang.Object
  extended by com.bea.wli.config.resource.BaseQuery
      extended by com.bea.wli.config.resource.ResourceQuery

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArchiveResourceQuery, JndiProviderQuery, ProxyServerQuery, ServiceAccountQuery, ServiceKeyProviderQuery, ServiceProviderQuery, ServiceQuery, SmtpServerQuery, UDDIRegistryEntryQuery, WsdlQuery, WsPolicyQuery, XmlSchemaQuery

public class ResourceQuery
extends BaseQuery
implements java.io.Serializable

Query for searching resources based on various properties

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           

 

Constructor Summary
ResourceQuery(java.lang.String typeId)
           

 

Method Summary
 void addKeySearch(java.lang.String key, java.lang.Object keyValue)
          Adds a filtering condition.
 java.util.Collection<java.lang.String> getAttrsToReturn()
           
 java.util.Map<java.lang.String,java.lang.Object> getFilter()
           
 java.lang.String getLocalName()
           
 java.lang.String getPath()
           
 java.lang.String getTypeId()
           
 java.util.Date getUpdatedAfter()
           
 java.util.Date getUpdatedBefore()
           
 boolean isChangedInSessionOnly()
           
 void lastUpdatedBetween(java.util.Date startDate, java.util.Date endDate)
          Adds a predicate to return the resource modified in between two dates.
 void setAttrsToReturn(java.util.Collection<java.lang.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(java.lang.String localName)
          Adds a predicate to return only resource that have the given local name relative to their project / folder.
 void setPath(java.lang.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

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

Constructor Detail

ResourceQuery

public ResourceQuery(java.lang.String typeId)
Parameters:
typeId - type id of the resources to be searched. If null all resource types are searched.

Method Detail

getTypeId

public java.lang.String getTypeId()

getPath

public java.lang.String getPath()

getLocalName

public java.lang.String getLocalName()

getFilter

public java.util.Map<java.lang.String,java.lang.Object> getFilter()

getAttrsToReturn

public java.util.Collection<java.lang.String> getAttrsToReturn()

getUpdatedAfter

public java.util.Date getUpdatedAfter()

getUpdatedBefore

public java.util.Date getUpdatedBefore()

isChangedInSessionOnly

public boolean isChangedInSessionOnly()

addKeySearch

public void addKeySearch(java.lang.String key,
                         java.lang.Object keyValue)
Adds a filtering condition.
Parameters:
key -
keyValue -

setPath

public void setPath(java.lang.String path)
Adds a predicate to return only resources under the given path
Parameters:
path -

setLocalName

public void setLocalName(java.lang.String localName)
Adds a predicate to return only resource that have the given local name relative to their project / folder.
Parameters:
localName -

setAttrsToReturn

public void setAttrsToReturn(java.util.Collection<java.lang.String> attrsToReturn)
Sets additional attributes to return. If null or empty no additional attributes are returned.
Parameters:
attrsToReturn -

lastUpdatedBetween

public void lastUpdatedBetween(java.util.Date startDate,
                               java.util.Date endDate)
Adds a predicate to return the resource modified in between two dates. Only the last updated time of a resource is considered for this search. Dates are inclusive. A null value indicates an open ended query. i.e. If startDate is null, then it returns resources updated before the end date. If endDate == null, it then returns resources updated after startDate. If both are null this predicate will not be applied.
Parameters:
startDate - start date of the date range
endDate - end date of the date range
Since:
2.6

setChangedInSessionOnly

public void setChangedInSessionOnly(boolean changedInSessionOnly)
Adds a predicate to consider only the existing resources that have been modified (updated or created) in the session. Resources that no longer exists (because they have been deleted) are not considered.
Parameters:
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.
Since:
2.6

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


Copyright © 2008, 2012, Oracle. All rights reserved.