Package siena.base.test.model

Examples of siena.base.test.model.Discovery


  }
 
  public void testOffsetLimitStatefulPaginate2(){
    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.limit(50).offset(12).fetch();
View Full Code Here


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

    Query<Discovery> query = pm.createQuery(Discovery.class).paginate(5).order("id");
    List<Discovery> res = query.fetch();
View Full Code Here

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

    Query<Discovery> query = pm.createQuery(Discovery.class).stateful().paginate(5).order("id");
    List<Discovery> res = query.fetch();
View Full Code Here

 
 
  public void testLimitStatelessKeys(){
    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).fetchKeys();
View Full Code Here

  }
 
  public void testLimitStatefulKeys(){
    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).fetchKeys();
View Full Code Here

  }
 
  public void testOffsetStatelessKeys(){
    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).fetchKeys();
View Full Code Here

  }

  public void testOffsetStatefulKeys(){
    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).fetchKeys();
View Full Code Here

  }
 
  public void testOffsetLimitStatelessKeys(){
    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).fetchKeys();
View Full Code Here

  }

  public void testOffsetLimitStatefulKeys(){
    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).fetchKeys();
View Full Code Here

 
  public void testOffsetLimitStatelessPaginateKeys(){
    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).fetchKeys();
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.