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

net.sourceforge.wicketwebbeans.databinder.CriteriaBuilderDelegate Maven / Gradle / Ivy

The newest version!
package net.sourceforge.wicketwebbeans.databinder;

import java.util.Set;
import java.util.LinkedHashSet;

import net.databinder.models.ICriteriaBuilder;

import org.hibernate.Criteria;

public class CriteriaBuilderDelegate implements ICriteriaBuilderDelegate
{
	private Set builders = new LinkedHashSet();
	
	public void addCriteriaBuilder(ICriteriaBuilder criteriaBuilder) {
		builders.add(criteriaBuilder);
	}

	public Iterable criteriaBuilders() {
		return builders;
	}

	public void removeCriteriaBuilder(ICriteriaBuilder criteriaBuilder) {
		builders.remove(criteriaBuilder);
	}

	public void build(Criteria criteria){
		for(ICriteriaBuilder builder: criteriaBuilders())
			builder.build(criteria);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy