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

com.jaregu.database.queries.proxy.QueriesSourceResourceProducer 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.proxy;

import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;

import com.jaregu.database.queries.SourceId;

public class QueriesSourceResourceProducer implements SourceIdProducer {

	QueriesSourceResourceProducer() {
	}

	@Override
	public SourceId get(AnnotatedElement element, Annotation annotation) {
		QueriesSourceResource sourceResource = (QueriesSourceResource) annotation;
		return SourceId.ofResource(sourceResource.value());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy