Package net.freedom.gj.beans.criteria

Examples of net.freedom.gj.beans.criteria.CriteriaBuilder


    public void execute() {
        System.out.println("executed A");
    }

    public List<PropertyCriteria> getCriteria() {
        return new CriteriaBuilder().build("payload", new InstanceOfMatcher(String.class) ).getCriteria();
    }
View Full Code Here


    public void execute() {
        System.out.println("executed Service C");
    }

    public List<PropertyCriteria> getCriteria() {
        return new CriteriaBuilder().build( new PropertyBuilder()
                                        .build("client", new PropertyValueEqualsMatcher("ABC"))
                                        .build("category", new PropertyValueEqualsMatcher("furniture")))
                                    .getCriteria();
    }
View Full Code Here

        System.out.println("executed B with a switch as ON");
    }
   
   
     public List<PropertyCriteria> getCriteria() {
        return new CriteriaBuilder().build( new PropertyBuilder()
                                        .build("payload", new InstanceOfMatcher(Integer.class))
                                        .build("switch", new PropertyValueEqualsMatcher("ON")))
                                    .getCriteria();
    }
View Full Code Here

    }


     public List<PropertyCriteria> getCriteria() {
        try {
            return new CriteriaBuilder().build(new PropertyBuilder()
                    .build("source", new InstanceOfMatcher(Class.forName(sourceType)))
                    .build("target", new InstanceOfMatcher(Class.forName(targetType)))).getCriteria();

        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException(e.getMessage(),e.getCause());
View Full Code Here

            if (additionalCriteria != null && !additionalCriteria.isEmpty()) {
                for (String property : additionalCriteria.keySet()) {
                    pb.build(property, additionalCriteria.get(property));
                }
            }
            return new CriteriaBuilder().build(pb).getCriteria();
        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of net.freedom.gj.beans.criteria.CriteriaBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.