All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gorm.tools.mango.jpql.QueryHandler.groovy Maven / Gradle / Ivy

There is a newer version: 7.3.74
Show newest version
/*
* Copyright 2023 Yak.Works - Licensed under the Apache License, Version 2.0 (the "License")
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
package gorm.tools.mango.jpql

import org.grails.datastore.mapping.model.PersistentEntity
import org.grails.datastore.mapping.query.Query

/**
 * simple interface to be implemented for each Query. type
 */
interface QueryHandler {
    @SuppressWarnings(['ParameterCount'])
    int handle(PersistentEntity entity, Query.Criterion criterion, StringBuilder q, StringBuilder whereClause,
                      String logicalName, int position, List parameters)

    // default int handle(JpqlQueryBuilder queryBuilder, Query.Criterion criterion, StringBuilder q, StringBuilder whereClause,
    //            String logicalName, int position, List parameters){
    //     return handle(queryBuilder.entity, criterion, q, whereClause, logicalName, position, parameters)
    // }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy