public class GrailsHibernateQueryUtils extends Object
Utility methods for configuring Hibernate queries
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static FetchMode |
getFetchMode(Object object)Retrieves the fetch mode for the specified instance; otherwise returns the default FetchMode. |
|
public static void |
populateArgumentsForCriteria(PersistentEntity entity, Criteria c, Map argMap, ConversionService conversionService, boolean useDefaultMapping)Populates criteria arguments for the given target class and arguments map |
|
public static void |
populateArgumentsForCriteria(PersistentEntity entity, CriteriaQuery query, Root queryRoot, CriteriaBuilder criteriaBuilder, Map argMap, ConversionService conversionService, boolean useDefaultMapping)Populates criteria arguments for the given target class and arguments map |
|
public static void |
populateArgumentsForCriteria(PersistentEntity entity, Query query, Map argMap, ConversionService conversionService, boolean useDefaultMapping)Populates criteria arguments for the given target class and arguments map |
Retrieves the fetch mode for the specified instance; otherwise returns the default FetchMode.
object - The object, converted to a stringPopulates criteria arguments for the given target class and arguments map
entity - The PersistentEntity instancec - The criteria instanceargMap - The arguments mapPopulates criteria arguments for the given target class and arguments map
entity - The PersistentEntity instancequery - The criteria instanceargMap - The arguments mapPopulates criteria arguments for the given target class and arguments map
entity - The PersistentEntity instancequery - The criteria instanceargMap - The arguments map