wt.inf.container
Class WTContainerReferenceSearch

java.lang.Object
  extended bywt.query.AttributeSearchSpecification
      extended bywt.fc.ObjectReferenceSearch
          extended bywt.inf.container.WTContainerReferenceSearch
All Implemented Interfaces:
Serializable

public class WTContainerReferenceSearch
extends ObjectReferenceSearch
implements Serializable

This class is used to generate SearchCondition objects that are used to append to a QuerySpec for Container Aware type searches. Its intended use is to support the WTQuery search bean in processing searches that need to filter objects based on container and container type parameters

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  WTContainer containerFilter
           
private  Vector filteredContainerTypes
           
private static String RESOURCE
           
 
Fields inherited from class wt.query.AttributeSearchSpecification
 
Constructor Summary
WTContainerReferenceSearch(String attribute)
          

Supported API: false
WTContainerReferenceSearch(String attribute, String expression)
          

Supported API: false
 
Method Summary
private  QueryResult getContainers(String container)
          This method queries the Database to get all of the possible containers could be included in the search condition
 SearchCondition getSearchCondition(Class classname)
          

Supported API: false
 void setValue(WTContainer container)
          

Supported API: false
 
Methods inherited from class wt.fc.ObjectReferenceSearch
setValue, setValue, toString
 
Methods inherited from class wt.query.AttributeSearchSpecification
appendToClassSearchSpec, areThereDBWildCards, areThereWildCards, convertWildcardValue, getAttributeName, getQueryName, getSearchExpression, getSearchExpression, getSearchType, getStringCase, getValue, isFalseSearch, processWildCards, setFalseSearch, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

filteredContainerTypes

private Vector filteredContainerTypes

containerFilter

private WTContainer containerFilter
Constructor Detail

WTContainerReferenceSearch

public WTContainerReferenceSearch(String attribute,
                                  String expression)


Supported API: false

Parameters:
attribute -
expression -

WTContainerReferenceSearch

public WTContainerReferenceSearch(String attribute)


Supported API: false

Parameters:
attribute -
Method Detail

setValue

public void setValue(WTContainer container)
              throws WTPropertyVetoException


Supported API: false

Parameters:
container -
Throws:
WTPropertyVetoException

getSearchCondition

public SearchCondition getSearchCondition(Class classname)
                                   throws WTException,
                                          QueryException


Supported API: false

Overrides:
getSearchCondition in class ObjectReferenceSearch
Parameters:
classname -
Returns:
SearchCondition
Throws:
WTException
QueryException

getContainers

private QueryResult getContainers(String container)
                           throws WTException
This method queries the Database to get all of the possible containers could be included in the search condition

Parameters:
container - This is the user inputted string that is used to search against, could include wildcard characters
Returns:
QueryResult
Throws:
WTException