public class GrailsHibernateQueryUtils extends java.lang.Object
Utility methods for configuring Hibernate queries
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static org.hibernate.FetchMode |
getFetchMode(java.lang.Object object)Retrieves the fetch mode for the specified instance; otherwise returns the default FetchMode. |
|
public static void |
populateArgumentsForCriteria(org.grails.datastore.mapping.model.PersistentEntity entity, org.hibernate.Criteria c, java.util.Map argMap, org.springframework.core.convert.ConversionService conversionService, boolean useDefaultMapping)Populates criteria arguments for the given target class and arguments map |
|
public static void |
populateArgumentsForCriteria(org.grails.datastore.mapping.model.PersistentEntity entity, org.hibernate.criterion.CriteriaQuery query, jakarta.persistence.criteria.Root queryRoot, grails.gorm.CriteriaBuilder criteriaBuilder, java.util.Map argMap, org.springframework.core.convert.ConversionService conversionService, boolean useDefaultMapping)Populates criteria arguments for the given target class and arguments map |
|
public static void |
populateArgumentsForCriteria(org.grails.datastore.mapping.model.PersistentEntity entity, org.grails.datastore.mapping.query.Query query, java.util.Map argMap, org.springframework.core.convert.ConversionService conversionService, boolean useDefaultMapping)Populates criteria arguments for the given target class and arguments map |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
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 org.grails.datastore.mapping.model.PersistentEntity instancec - The criteria instanceargMap - The arguments mapPopulates criteria arguments for the given target class and arguments map
entity - The org.grails.datastore.mapping.model.PersistentEntity instancequery - The criteria instanceargMap - The arguments mapPopulates criteria arguments for the given target class and arguments map
entity - The org.grails.datastore.mapping.model.PersistentEntity instancequery - The criteria instanceargMap - The arguments map