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

com.tri.persistence.jpql.WhereTextual Maven / Gradle / Ivy

Go to download

Create dynamic JPQL queries with a fluent API without cluttering code with String concatenations

The newest version!
package com.tri.persistence.jpql;

/**
 * Single textual SQL Where Clause predicate. E.g. a comparison predicate like
 * {@code field=:whatever}.
 */
public class WhereTextual extends WhereItem {

	String predicate;

	/**
	 * Constructor
	 * 
	 * @param builder
	 *            {@link QueryBuilder} to associate
	 * @param predicate
	 *            textual comparison predicate, e.g. {@code field=:whatever}
	 */
	public WhereTextual(final QueryBuilder builder, final String predicate) {
		super(builder);
		this.predicate = predicate;
	}

	@Override
	public String render() {
		return predicate;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy