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

com.jaregu.database.queries.building.ParameterBinder Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.4.1
Show newest version
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 getParameters(); } }