net.sourceforge.wicketwebbeans.databinder.CriteriaBuilderDelegate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicketwebbeans-databinder
Show all versions of wicketwebbeans-databinder
Wicket Web Beans Databinder Support
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