Package org.conserve.select.discriminators

Examples of org.conserve.select.discriminators.Greater


    long count = persist.getCount(new SimplestObject());
    assertEquals(200L, count);
    // select half of the objects
    SimplestObject selectObject = new SimplestObject();
    selectObject.setFoo(99.0);
    Greater g = new Greater(selectObject);
    count = persist.getCount(SimplestObject.class, g);
    assertEquals(100L, count);
    persist.close();
  }
View Full Code Here


    SimplestObject equal = new SimplestObject(66.0);
    SimplestObject smallerOrEquals = new SimplestObject(3.0);
    SimplestObject largerOrEquals = new SimplestObject(3.0);

    And one = new And(new GreaterOrEqual(largerOrEquals), new LessOrEqual(smallerOrEquals));
    And two = new And(new Different(different), new Greater(larger));
    List<SimplestObject> list = persist.getObjects(SimplestObject.class, new Or(one, two, new Equal(equal)));
    assertEquals(3, list.size());
    list = persist.getObjects(SimplestObject.class, new Or(one, two, new Equal(equal)), new Ascending(different));
    assertEquals(3, list.size());
    assertEquals(3.0, (double) list.get(0).getFoo(), 0.0001);
View Full Code Here

TOP

Related Classes of org.conserve.select.discriminators.Greater

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.