com.jaregu.database.queries.building.ParameterBinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of queries Show documentation
Show all versions of queries Show documentation
Java based SQL templating project. Store your queries in *.sql files and build queries for execution. Supports simple expressions and conditional clauses and interface proxying for java-sql bridge.
package com.jaregu.database.queries.building;
import java.util.List;
/**
* Parameter binder is called for every binded parameter place while building
* query.
*
*
* Usually parameter binder can be used to create some IN
clause
* support or for some SQL parameter value wrapping/unwrapping
*
* See {@link Binders#binder(ParameterBinder)}
*/
public interface ParameterBinder {
Result process(Object parameter);
interface Result {
String getSql();
List