| MGDatabaseSetup.setWhereClause |
|
boolean setWhereClause(String whereClause)
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.
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".
whereClause - The SQL Where clause to use to run queries on the data source.
boolean - Returns True and sets the layer's rebuild flag to True if successful. Returns False if the method does not apply.
-1 (busy)