com.jaregu.database.queries.proxy.ClassQueryMapper 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.proxy;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Use this annotation to mark proxiable interface or its methods to perform
* Query conversion to some other value. {@link QueryMapper} must be
* instantiable class with accessible zero argument constructor
*
*/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RUNTIME)
@Mapper(ClassQueryMapperFactory.class)
public @interface ClassQueryMapper {
/**
* {@link QueryMapper} must be instantiable class with accessible zero
* argument constructor
*/
Class extends QueryMapper>> value();
}