Package er.extensions.eof

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


    }
  }
 
  public void testJoin() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
    ec.lock();
    try {
     
      NSArray<City> cities = City.fetchCities(ec, City.COUNTRY.dot(Country.CODE).eq("NLD"), null);
     
      assertNotNull(cities);
View Full Code Here


    }
  }
 
  public void testLeftJoin() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
    ec.lock();
    try {
     
      NSArray<Country> countries = Country.fetchCountries(ec,
          Country.COUNTRY_LANGUAGES.dot(CountryLanguage.LANGUAGE).eq("Dutch").or// this is left join
              Country.NAME.like("Nor*"))
 
View Full Code Here

   
  }

  public void testSortOrder() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
    ec.lock();
    try {
     
      NSArray<City> cities = City.fetchCities(ec, City.NAME.like("A*"),  City.NAME.ascInsensitives());
     
      assertNotNull(cities);
View Full Code Here

    }
  }

  public void testBatchFetch() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
    ec.lock();
    try {
     
      NSArray<Country> countries = Country.fetchAllCountries(ec);
     
      assertNotNull(countries);
View Full Code Here

    }
  }
 
  public void testLimitedFetch() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
    ec.lock();
    try {
     
      EOFetchSpecification fs = new EOFetchSpecification(City.ENTITY_NAME, null, City.NAME.ascs());
      NSArray<City> cities = ERXEOControlUtilities.objectsInRange(ec, fs, 1, 5);
     
View Full Code Here

  }

 
  public void testMoreComplexLimitedFetch() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
    ec.lock();
    try {
     
      EOFetchSpecification fs = new EOFetchSpecification(City.ENTITY_NAME, City.COUNTRY.dot(Country.CODE).eq("NLD"), City.NAME.ascs());
      NSArray<City> cities = ERXEOControlUtilities.objectsInRange(ec, fs, 1, 5);
     
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.