@Override protected List createPagedResultList(Map args) { GrailsHibernateUtil.populateArgumentsForCriteria( datastore, targetClass, criteria, args, conversionService); GrailsHibernateTemplate ght = new GrailsHibernateTemplate(sessionFactory, (HibernateDatastore) datastore); return new PagedResultList(ght, criteria); }
public static void populateArgumentsForCriteria( AbstractHibernateDatastore datastore, Class<?> targetClass, Criteria c, Map argMap, ConversionService conversionService) { populateArgumentsForCriteria(datastore, targetClass, c, argMap, conversionService, true); }
@SuppressWarnings("rawtypes") public static void populateArgumentsForCriteria( Criteria c, Map argMap, ConversionService conversionService) { populateArgumentsForCriteria(null, null, c, argMap, conversionService); }
/** * Populates criteria arguments for the given target class and arguments map * * @param targetClass The target class * @param c The criteria instance * @param argMap The arguments map * @deprecated Use {@link #populateArgumentsForCriteria(HibernateDatastore, Class, * org.hibernate.Criteria, java.util.Map)} instead */ @Deprecated @SuppressWarnings("rawtypes") public static void populateArgumentsForCriteria( Class<?> targetClass, Criteria c, Map argMap, ConversionService conversionService) { populateArgumentsForCriteria(null, targetClass, c, argMap, conversionService); }