Package wt.query

Class QueryHintFactory

java.lang.Object
wt.query.QueryHintFactory

public class QueryHintFactory extends Object
This factory class allows to create specific QueryHint object with necessary information. Once QueryHint object is in place ,same can be provided to @QuerySpec API.

Supported API: true

Extendable: false
  • Method Details

    • createSQLServerTableHint

      public static QueryHint createSQLServerTableHint(int classIndex, String hintValue)
      createSQLServerTableHint API return the table-hint object which should be provided to QuerySpec. Please note that for TABLE-HINT, POM will implicitly put WITH clause for all the table-hint arguments.

      Supported API: true
      Parameters:
      classIndex - - specifies the class to which table-hint should be appended
      hintValue - - This value represents the hint-key which can be configured in xml file against required value. If no key found in map, user provided key will be considered as actual hint-value and same will be pass on to database server.
      Returns: