com.tri.persistence.jpql.WhereTextual Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpql-querybuilder Show documentation
Show all versions of jpql-querybuilder Show documentation
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;
}
}