src/main/java/com/tri/persistence/jpql/QueryBuilder.java
public Query createQuery(final EntityManager manager) {
		if (manager == null) {
			throw new NullPointerException("Entity Manager required");
		}

		final Query query = manager.createQuery(render());

		for (Parameter<?> parameter : parameters) {
			parameter.apply(query);
		}

		return query;
	}
public Query createQuery(final EntityManager manager) {
		if (manager == null) {
			throw new NullPointerException("Entity Manager required");
		}

		final Query query = manager.createQuery(render());

		for (Parameter<?> parameter : parameters) {
			parameter.apply(query);
		}

		return query;
	}
public Query createQuery ( final EntityManager manager ) { if ( manager == null ) { throw new NullPointerException ( "Entity Manager required" ) ; } final Query query = manager . createQuery ( render ( ) ) ; for ( Parameter < ? > parameter : parameters ) { parameter . apply ( query ) ; } return query ; }
Returns a JPA Query with all previously specified parameters added.

@param manager
JPA EntityManager
@return JPA Query
Returns a JPA Query with all previously specified parameters added .