Example usage for org.apache.wicket.extensions.markup.html.repeater.data.table PropertyColumn getPropertyExpression

List of usage examples for org.apache.wicket.extensions.markup.html.repeater.data.table PropertyColumn getPropertyExpression

Introduction

In this page you can find the example usage for org.apache.wicket.extensions.markup.html.repeater.data.table PropertyColumn getPropertyExpression.

Prototype

public String getPropertyExpression() 

Source Link

Usage

From source file:net.databinder.models.hib.CriteriaColumnFilter.java

License:Open Source License

public void build(Criteria criteria) {
    for (IColumn col : columns) {
        if (col instanceof PropertyColumn) {
            PropertyColumn propCol = (PropertyColumn) col;
            String property = propCol.getPropertyExpression();
            Object value = PropertyResolver.getValue(property, bean);
            if (value != null) {
                if (value instanceof String)
                    criteria.add(Restrictions.ilike(property, (String) value, MatchMode.ANYWHERE));
                else
                    criteria.add(Restrictions.eq(property, value));
            }//from   ww  w . ja v  a 2  s .c om

        }
    }
}