QuickObjects.ObjectBase Send comments on this topic.
GetWhereExpression Method
See Also 
Akal.QuickObjects.ObjectBase Namespace > BaseBusinessObject Class : GetWhereExpression Method

GetWhereExpression

Provides a String comprised of all the field's search expressions. Each field's search expression is obtained based on its AllowSearch, UseInSearch and SearchMode properties. See GetWhereExpression method of the BaseField class for more information on how each field's search expression is created. Each field's search expression is separated by either AND or an OR clause depending the MoreResults property on this business object. If MoreResults is set to true then OR is used otherwise AND is used, this however can be overridden at each field level as well by setting the Field's SearchCondition property. The Recursive property on this objects and on the joined objects determine if the joined objects will also try to create their own search expressions from their joined objects to be include in this expression. This process will follow until the depth reaches maxLevel parameter value.

Parameters:
Description
includeTableNameIf true then each field name will be have its table name prefixed. This is important and useful when creating where expression from multiple tables and more than one table may contain the same column name.
levelCurrent level in recursion.
maxLevelsMaximum levels of business objects to cover during recursion.
objectsCoveredA collection that can be used to track what business objects are already covered.
sqlParamsAll the parameters created by this method will be added into this ArrayList.

Returns:
Type
System.String

Overload List

OverloadDescription
GetWhereExpression(Boolean,Int32,Int32,IBusinessObjectCollection,ArrayList)GetWhereExpression

Provides a String comprised of all the field's search expressions. Each field's search expression is obtained based on its AllowSearch, UseInSearch and SearchMode properties. See GetWhereExpression method of the BaseField class for more information on how each field's search expression is created. Each field's search expression is separated by either AND or an OR clause depending the MoreResults property on this business object. If MoreResults is set to true then OR is used otherwise AND is used, this however can be overridden at each field level as well by setting the Field's SearchCondition property. The Recursive property on this objects and on the joined objects determine if the joined objects will also try to create their own search expressions from their joined objects to be include in this expression. This process will follow until the depth reaches maxLevel parameter value.

Parameters:
Description
includeTableNameIf true then each field name will be have its table name prefixed. This is important and useful when creating where expression from multiple tables and more than one table may contain the same column name.
levelCurrent level in recursion.
maxLevelsMaximum levels of business objects to cover during recursion.
objectsCoveredA collection that can be used to track what business objects are already covered.
sqlParamsAll the parameters created by this method will be added into this ArrayList.

Returns:
Type
System.String
 

GetWhereExpression(Boolean,RecursionTypes,Int32,Int32,IBusinessObjectCollection,ArrayList)GetWhereExpression

Provides a String comprised of all the field's search expressions. Each field's search expression is obtained based on its AllowSearch, UseInSearch and SearchMode properties. See GetWhereExpression method of the BaseField class for more information on how each field's search expression is created. Each field's search expression is separated by either AND or an OR clause depending the MoreResults property on this business object. If MoreResults is set to true then OR is used otherwise AND is used, this however can be overridden at each field level as well by setting the Field's SearchCondition property. The Recursive property on this objects and on the joined objects determine if the joined objects will also try to create their own search expressions from their joined objects to be include in this expression. This process will follow until the depth reaches maxLevel parameter value.

Parameters:
Description
includeTableNameIf true then each field name will be have its table name prefixed. This is important and useful when creating where expression from multiple tables and more than one table may contain the same column name.
recurRecursion type that will determine what kind of joined objects will be covered. If Recursion is set to RecursionTypes.Parent then only the Join objects with relationship type of Parent will be covered and hence same process for Child relationship.
levelCurrent level in recursion.
maxLevelsMaximum levels of business objects to cover during recursion.
objectsCoveredA collection that can be used to track what business objects are already covered.
sqlParamsAll the parameters created by this method will be added into this ArrayList.

Returns:
Type
System.String
 

GetWhereExpression(Boolean,RecursionTypes,Int32,Int32,IBusinessObjectCollection,ArrayList,Boolean)GetWhereExpression

Provides a String comprised of all the field's search expressions. Each field's search expression is obtained based on its AllowSearch, UseInSearch and SearchMode properties. See GetWhereExpression method of the BaseField class for more information on how each field's search expression is created. Each field's search expression is separated by either AND or an OR clause depending the MoreResults property on this business object. If MoreResults is set to true then OR is used otherwise AND is used, this however can be overridden at each field level as well by setting the Field's SearchCondition property. The Recursive property on this objects and on the joined objects determine if the joined objects will also try to create their own search expressions from their joined objects to be include in this expression. This process will follow until the depth reaches maxLevel parameter value.

Parameters:
Description
includeTableNameIf true then each field name will be have its table name prefixed. This is important and useful when creating where expression from multiple tables and more than one table may contain the same column name.
recurRecursion type that will determine what kind of joined objects will be covered. If Recursion is set to RecursionTypes.Parent then only the Join objects with relationship type of Parent will be covered and hence same process for Child relationship.
levelCurrent level in recursion.
maxLevelsMaximum levels of business objects to cover during recursion.
objectsCoveredA collection that can be used to track what business objects are already covered.
sqlParamsAll the parameters created by this method will be added into this ArrayList.
isHavingClauseValue is used to determin if the clause being constructed is HAVING clause or WHERE clause. If the passed in value is true, then only the fields that have an aggregate function set will be included.

Returns:
Type
System.String
 

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also