Interface QueryPopulator

All Known Implementing Classes:
QueryPopulatorImpl

public interface QueryPopulator

Attempts to ease adding parameters to a query that are often used and/or evaluated as late as possible (for example the current date).

This service will search the query string for named parameters. If it finds one that it knows the value for, it will set it in the query.

Example:

   String qs = "find Date where relUser.pk == :currentUser";
   DynamicQueryPopulator dargs = //inject via spring
   Query q = dargs.createAndPopulateQuery(qs, ctx);
   EntityList list = q.execut();
 

Please see the implementation class for how to configure this service. To know all known parameter names search the hivemodule.xml files for 'ArgumentFactory'.