Package siena.base.test.model

Examples of siena.base.test.model.Discovery


 
  public void testBatchGetByKeysList() {
    Discovery[] discs = new Discovery[100];
   
    for(int i=0; i<100; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);

    List<Long> discsKeys = new ArrayList<Long>();
    for(int i=0; i<100; i++){
View Full Code Here


  }
 
  public void testLimitStateless(){
    Discovery[] discs = new Discovery[150];
    for(int i=0; i<150; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).stateless().order("id");
    List<Discovery> res = query.limit(50).fetch();
View Full Code Here

  }
 
  public void testLimitStateful(){
    Discovery[] discs = new Discovery[150];
    for(int i=0; i<150; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).stateful().order("id");
    List<Discovery> res = query.limit(50).fetch();
View Full Code Here

  }

  public void testOffsetStateless(){
    Discovery[] discs = new Discovery[150];
    for(int i=0; i<150; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).order("id");
    List<Discovery> res = query.offset(50).fetch();
View Full Code Here

  }

  public void testOffsetStateful(){
    Discovery[] discs = new Discovery[150];
    for(int i=0; i<150; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).stateful().order("id");
    List<Discovery> res = query.offset(50).fetch();
View Full Code Here

  }
 
  public void testOffsetLimitStateless(){
    Discovery[] discs = new Discovery[150];
    for(int i=0; i<150; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).order("id");
    List<Discovery> res = query.offset(50).limit(50).fetch();
View Full Code Here

  }
 
  public void testOffsetLimitStateful(){
    Discovery[] discs = new Discovery[150];
    for(int i=0; i<150; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).stateful().order("id");
    List<Discovery> res = query.offset(50).limit(50).fetch();
View Full Code Here


  public void testOffsetLimitStatelessPaginate(){
    Discovery[] discs = new Discovery[150];
    for(int i=0; i<150; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).order("id");
    List<Discovery> res = query.paginate(50).fetch();
View Full Code Here

  }
 
  public void testOffsetLimitStatefulPaginate(){
    Discovery[] discs = new Discovery[300];
    for(int i=0; i<300; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).order("id").stateful();
    List<Discovery> res = query.paginate(50).fetch();
View Full Code Here

  }
 
  public void testOffsetLimitStatelessPaginate2(){
    Discovery[] discs = new Discovery[300];
    for(int i=0; i<300; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);
   
    Query<Discovery> query = pm.createQuery(Discovery.class).order("id");
    List<Discovery> res = query.limit(50).offset(12).fetch();
View Full Code Here

TOP

Related Classes of siena.base.test.model.Discovery

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.