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

com.jaregu.database.queries.parsing.QueriesSources 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.parsing;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;

/**
 * Implementation represent collection of {@link QueriesSource}
 *
 */
@FunctionalInterface
public interface QueriesSources {

	Collection getSources();

	static QueriesSources empty() {
		return () -> Collections.emptyList();
	}

	static QueriesSources of(Collection sources) {
		return () -> sources;
	}

	static QueriesSources of(QueriesSource... sources) {
		return () -> Arrays.asList(sources);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy