Package er.extensions.eof

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


          return 0;
        }
      };
      action.perform(ec, model.name());
    } finally {
      ec.unlock();
    }
  }
 
}
View Full Code Here


        try {
         
          NSArray<City> cities = City.fetchCities(ec, City.NAME.likeInsensitive(RandomStringUtils.randomAlphabetic(1) + "*"), City.NAME.ascs());
         
        } finally {
          ec.unlock();
        }
      }
    }
    public synchronized void setRun(boolean run) {
      this.run = run;
View Full Code Here

          City city = City.createCity(ec, RandomStringUtils.randomAlphabetic(15));
          city.setCountryRelationship(country);
         
          ec.saveChanges();
        } finally {
          ec.unlock();
        }
       
      }
    }
   
View Full Code Here

            city.setPopulation(RandomUtils.nextInt(3));
          }
         
          ec.saveChanges();
        } finally {
          ec.unlock();
        }
       
      }
     
    }
View Full Code Here

      cnt = ERXEOControlUtilities.objectCountWithQualifier(ec, Country.ENTITY_NAME, Country.CODE.eq("USA"));

      assertNotNull(cnt);
      assertEquals(Integer.valueOf(1), cnt);
    } finally {
      ec.unlock();
    }
  }


  public void testUpdate() {
View Full Code Here

      Integer cnt = ERXEOControlUtilities.objectCountWithQualifier(ec, Country.ENTITY_NAME, Country.HEAD_OF_STATE.eq(headOfState));

      assertNotNull(cnt);
      assertEquals(Integer.valueOf(1), cnt);
    } finally {
      ec.unlock();
    }

  }

  public void testDelete() {
View Full Code Here

      Integer cnt = ERXEOControlUtilities.objectCountWithQualifier(ec, Country.ENTITY_NAME, Country.CODE.eq("NOR"));

      assertNotNull(cnt);
      assertEquals(Integer.valueOf(0), cnt);
    } finally {
      ec.unlock();
    }

  }
}
View Full Code Here

      NSArray<City> cities = City.fetchAllCities(ec);
     
      assertNotNull(cities);
      assertEquals(28, cities.count());
    } finally {
      ec.unlock();
    }
  }
 
  public void testSimpleQual() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
View Full Code Here

      NSArray<City> cities = City.fetchCities(ec, City.NAME.like("Rotter*"), null);
     
      assertNotNull(cities);
      assertEquals(1, cities.count());
    } finally {
      ec.unlock();
    }
  }

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

      NSArray<City> cities = City.fetchCities(ec, City.NAME.likeInsensitive("roTTer*"), null);
     
      assertNotNull(cities);
      assertEquals(1, cities.count());
    } finally {
      ec.unlock();
    }
  }
 
  public void testJoin() {
    ERXEC ec = (ERXEC) ERXEC.newEditingContext();
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.