Package org.hibernate.dialect.hint
Class IndexQueryHintHandler
java.lang.Object
org.hibernate.dialect.hint.IndexQueryHintHandler
- All Implemented Interfaces:
QueryHintHandler
Adds an INDEX query hint as follows:
SELECT *
FROM TEST
USE INDEX (hint1, hint2)
WHERE X=1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddQueryHints
(String query, String hints) Add query hints to the given query.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
IndexQueryHintHandler
public IndexQueryHintHandler()
-
-
Method Details
-
addQueryHints
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
-