details: https://code.openbravo.com/erp/devel/pi/rev/fca6041ae989 changeset: 32605:fca6041ae989 user: Augusto Mauch <augusto.mauch <at> openbravo.com> date: Wed Aug 30 10:51:37 2017 +0200 summary: Fixes issue 36678: Where clause can be customized by query generator subclass
Classes that extend DataSetTableQueryGenerator can now customize the where clause by overwriting the customizeExtraProperties method. The customization is done by adding WhereClauseSimpleExpression to the DataSetTableQueryGeneratorExtraProperties passed as parameter. Classes that extend DataSetTableQueryGenerator sometimes need to know the name of the table being exported in order to know how to transform its query. For instance, depending on the table being exported sometimes a clause to exclude the records defined for client 0. Now that table name is passed as a parameter to transformWhereClause. It is an API change, but it does not have any consequences, I checked that no one else is invoking that method. The way the WhereClauseSimpleExpression where iterated to build a where clause was wrong, as if there were more than one the query would be built without joining each where clause with an 'AND' keyword. diffstat: src-db/database/lib/dbsourcemanager.jar | 0 1 files changed, 0 insertions(+), 0 deletions(-) diffs (2 lines): diff -r 1dc42ad30d5c -r fca6041ae989 src-db/database/lib/dbsourcemanager.jar Binary file src-db/database/lib/dbsourcemanager.jar has changed ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
