MGDatabaseSetup.setWhereClause   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

boolean setWhereClause(String whereClause)

Description

Sets the SQL Where clause that Autodesk MapGuide uses to query the OLE DB data source that provides data for this layer.

This method is functionally equivalent to the MGMapLayer setSQLWhere method.

Note

If you use the comparison operators =, <, >, <>, or <=, the value is assumed to be a string. Thus, numerical comparisons can return unexpected results. For example, if the SQL Where clause includes FEATURE_ID > 55, a row in the database table that has a feature ID of 6 would be returned, because the string "6" is greater than the string "55".

Parameters

whereClause - The SQL Where clause to use to run queries on the data source.

Returns

boolean - Returns True and sets the layer's rebuild flag to True if successful. Returns False if the method does not apply.

Error Codes

-1 (busy)

See Also

getWhereClause, WhereClause