Package er.extensions.eof

Examples of er.extensions.eof.ERXEC.unlock()


      NSArray<City> cities = City.fetchCities(ec, City.COUNTRY.dot(Country.CODE).eq("NLD"), null);
     
      assertNotNull(cities);
      assertEquals(28, cities.count());
    } finally {
      ec.unlock();
    }
  }
 
  public void testLeftJoin() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
View Full Code Here


          , Country.NAME.ascs());
     
      assertNotNull(countries);
      assertEquals(2, countries.count());
    } finally {
      ec.unlock();
    }
   
  }

  public void testSortOrder() {
View Full Code Here

      City city = cities.objectAtIndex(0);
      assertNotNull(city);
      log.debug(city.name());
      assertEquals("Alkmaar", city.name());
    } finally {
      ec.unlock();
    }
  }

  public void testBatchFetch() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
View Full Code Here

     
      assertNotNull(countries);
      assertEquals(2, countries.count());
      ERXBatchFetchUtilities.batchFetch(countries, Country.CITIES_KEY);
    } finally {
      ec.unlock();
    }
  }
 
  public void testLimitedFetch() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
View Full Code Here

      NSArray<City> cities = ERXEOControlUtilities.objectsInRange(ec, fs, 1, 5);
     
      assertNotNull(cities);
      assertEquals(4, cities.count());
    } finally {
      ec.unlock();
    }
  }

 
  public void testMoreComplexLimitedFetch() {
View Full Code Here

      NSArray<City> cities = ERXEOControlUtilities.objectsInRange(ec, fs, 1, 5);
     
      assertNotNull(cities);
      assertEquals(4, cities.count());
    } finally {
      ec.unlock();
    }
  }
 
 
//
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.