com.fatwire.assetapi.query
Class QueryProperties

java.lang.Object
  extended by com.fatwire.assetapi.query.QueryProperties

public final class QueryProperties
extends java.lang.Object

This class defines property keys and values for Query


Constructor Summary
QueryProperties()
           
 
Method Summary
 float getConfidence()
          Gets the confidence sepcified for richtext search
 boolean getIsBasicSearch()
          Gets if to use Asset.Search for flex asset type, default to be false if the value is not set by the setter method.
 boolean getIsCaseSensitive()
          Gets whether the flex asset search is case sensitive or not, default to be false if the value is not set by the setter method.
 boolean getIsImmediateOnly()
          Gets whether to only retrieve the immediate attribute values from flex asset attributes, default value is true
 boolean getIsLowerEqual()
          Gets whether the lower bound contains equal or not for range search, default to be false if the value is not set by the setter method.
 boolean getIsUpperEqual()
          Gets whether the upper bound contains equal or not for range search, default to be false if the value is not set by the setter method.
 int getLoadDependency()
          Gets what kind of depency to log when loading assets returned from Query
 int getMaxAnswers()
          Gets the max answers specified for richtext search
 int getMaxRows()
          Gets the max number of items the query wants to return
 java.lang.String getParser()
          Gets the parser for richtext search
 void setConfidence(float fConfidence)
          Sets the confidence value for richtext search
 void setIsBasicSearch(boolean bIsBasicSearch)
          Specifies whether to use Asset.Search for flex asset type
 void setIsCaseSensitive(boolean bIsCaseSensitive)
          Specifies whether the flex asset search is case sensitive or not
 void setIsImmediateOnly(boolean bIsImmediateOnly)
          Specifies whether to only retrieve the immediate attribute values from flex asset attributes
 void setIsLowerEqual(boolean bIsLowerEqual)
          Specifies whether the lower bound contains equal or not for range search
 void setIsUpperEqual(boolean bIsUpperEqual)
          Specifies whether the upper bound contains equal or not for range search
 void setLoadDependency(int loadDependency)
          Sets the load dependency for the assets that would be returned by the Query
 void setMaxAnswers(int iMaxAnswers)
          Sets the maxAnswers value for richtext search
 void setMaxRows(int iMaxRows)
          set the max number of items to return from the query
 void setParser(java.lang.String sParser)
          Sets teh parser for richtext search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryProperties

public QueryProperties()
Method Detail

getMaxRows

public int getMaxRows()
Gets the max number of items the query wants to return

Returns:
the max number of items

setMaxRows

public void setMaxRows(int iMaxRows)
set the max number of items to return from the query

Parameters:
iMaxRows - the number

getIsBasicSearch

public boolean getIsBasicSearch()
Gets if to use Asset.Search for flex asset type, default to be false if the value is not set by the setter method.

Returns:
true indicates using Asset.Search, false indicates not using Asset.Search

setIsBasicSearch

public void setIsBasicSearch(boolean bIsBasicSearch)
Specifies whether to use Asset.Search for flex asset type

Parameters:
bIsBasicSearch - true indicates using Asset.Search, false indicates not using Asset.Search

getIsLowerEqual

public boolean getIsLowerEqual()
Gets whether the lower bound contains equal or not for range search, default to be false if the value is not set by the setter method.

Returns:
true indicates lower bound contains equal, false indicates lower bound does not contain equal

setIsLowerEqual

public void setIsLowerEqual(boolean bIsLowerEqual)
Specifies whether the lower bound contains equal or not for range search

Parameters:
bIsLowerEqual - true indicates lower bound contains equal, false indicates lower bound does not contain equal

getIsUpperEqual

public boolean getIsUpperEqual()
Gets whether the upper bound contains equal or not for range search, default to be false if the value is not set by the setter method.

Returns:
true indicates upper bound contains equal, false indicates upper bound does not contain equal

setIsUpperEqual

public void setIsUpperEqual(boolean bIsUpperEqual)
Specifies whether the upper bound contains equal or not for range search

Parameters:
bIsUpperEqual - true indicates upper bound contains equal, false indicates upper bound does not contain equal

getIsCaseSensitive

public boolean getIsCaseSensitive()
Gets whether the flex asset search is case sensitive or not, default to be false if the value is not set by the setter method.

Returns:
true indicates the flex asset search is case sensitive, false indicates it is not

setIsCaseSensitive

public void setIsCaseSensitive(boolean bIsCaseSensitive)
Specifies whether the flex asset search is case sensitive or not

Parameters:
bIsCaseSensitive - true indicates the flex asset search is case sensitive, false indicates it is not

getIsImmediateOnly

public boolean getIsImmediateOnly()
Gets whether to only retrieve the immediate attribute values from flex asset attributes, default value is true

Returns:
true only retrieve the child attribute value, false means retrieving the inherited parent values too

setIsImmediateOnly

public void setIsImmediateOnly(boolean bIsImmediateOnly)
Specifies whether to only retrieve the immediate attribute values from flex asset attributes

Parameters:
bIsImmediateOnly - true only retrieve the child attribute value, false means retrieving the inherited parent values too

getParser

public java.lang.String getParser()
Gets the parser for richtext search

Returns:
the String parser name

setParser

public void setParser(java.lang.String sParser)
Sets teh parser for richtext search

Parameters:
sParser - the parser name

getConfidence

public float getConfidence()
Gets the confidence sepcified for richtext search

Returns:
the confidence value

setConfidence

public void setConfidence(float fConfidence)
Sets the confidence value for richtext search

Parameters:
fConfidence - the float value fo the confidence

getMaxAnswers

public int getMaxAnswers()
Gets the max answers specified for richtext search

Returns:
the value of maxAnswers

setMaxAnswers

public void setMaxAnswers(int iMaxAnswers)
Sets the maxAnswers value for richtext search

Parameters:
iMaxAnswers - the int value of the maxAnswers

getLoadDependency

public int getLoadDependency()
Gets what kind of depency to log when loading assets returned from Query

Returns:
the value of the dependency

setLoadDependency

public void setLoadDependency(int loadDependency)
Sets the load dependency for the assets that would be returned by the Query

Parameters:
loadDependency - the value of the dependency