ObjectDB ObjectDB

setHint(hintName, value) - JPA TypedQuery's method

Method
javax.persistence.TypedQuery
TypedQuery<X> setHint(
  String hintName,
  Object value
)

Set a query property or hint. The hints elements may be used to specify query properties and hints. Properties defined by this specification must be observed by the provider. Vendor-specific hints that are not recognized by a provider must be silently ignored. Portable applications should not rely on the standard timeout hint. Depending on the database in use and the locking mechanisms used by the provider, this hint may or may not be observed.
Parameters:
hintName - name of property or hint
value - value for the property or hint
Returns:
the same query instance
Throws:
IllegalArgumentException - if the second argument is not valid for the implementation
Since:
JPA 2.0