Package org.hibernate.dialect.hint
Class IndexQueryHintHandler
- java.lang.Object
-
- org.hibernate.dialect.hint.IndexQueryHintHandler
-
- All Implemented Interfaces:
QueryHintHandler
public class IndexQueryHintHandler extends Object implements QueryHintHandler
Adds an INDEX query hint as follows:SELECT * FROM TEST USE INDEX (hint1, hint2) WHERE X=1
-
-
Field Summary
Fields Modifier and Type Field Description static IndexQueryHintHandler
INSTANCE
-
Constructor Summary
Constructors Constructor Description IndexQueryHintHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addQueryHints(String query, String hints)
Add query hints to the given query.
-
-
-
Field Detail
-
INSTANCE
public static final IndexQueryHintHandler INSTANCE
-
-
Method Detail
-
addQueryHints
public String addQueryHints(String query, String hints)
Description copied from interface:QueryHintHandler
Add query hints to the given query.- Specified by:
addQueryHints
in interfaceQueryHintHandler
- Parameters:
query
- original queryhints
- hints to be applied- Returns:
- query with hints
-
-