Package org.openqreg.bean

Examples of org.openqreg.bean.Language


   
    String centreid = "JUnit@"+ id +"@"+ System.currentTimeMillis();
    CentreBean testCentre = new CentreBean();
   
    Collection<LanguageBean> languages = LanguageFinderBase.findAll();
    Language language = languages.iterator().next();
   
    Collection<CountryBean> countries = CountryFinderBase.findAll();
    Country country = countries.iterator().next();
   
    Collection<CentretypeBean> centretypes = CentretypeFinderBase.findAll();
    Centretype centretype = centretypes.iterator().next();
   
    testCentre.setId(centreid);
    testCentre.setCentrename(centreid);
    testCentre.setBelongsto(null);
    testCentre.setCentreshortname(centreid.substring(0, 9));
    testCentre.setTimezone(null);
    testCentre.setImportformat(null);
    testCentre.setImporting(new Integer(0));
    testCentre.setStatus(new Integer(Status.ACTIVE));
    testCentre.setLanguageid(language.getLanguageid());
    testCentre.setCountryid(country.getId());
    testCentre.setTypeid(centretype.getId());
    testCentre.setTest(new Integer(1));
    testCentre.setDefaultlanguageid(language.getLanguageid());
    testCentre.setCreatedby("System");
    testCentre.setTscreated(new Timestamp(System.currentTimeMillis()));
    testCentre.setUpdatedby("System");
    testCentre.setTsupdated(new Timestamp(System.currentTimeMillis()));
   
View Full Code Here


  @Test
  public void testCreate() throws SQLException {
    SystemmessageBean systemmessage = new SystemmessageBean();
   
    Language language = LanguageFinderBase.findAll(con).iterator().next();
   
    systemmessage.setLanguageid(language.getLanguageid());
   
    StringBuffer text = new StringBuffer();
//    while(text.length()<= 100){
//      text.append("0123456789");
//    }
View Full Code Here

      out.append(">\n");
      out.append(lang.getTranslation(langId, "ADMINLANGUAGELIST_STATUS_HL"));
      out.append("</td>\n");
      out.append("</tr>\n");

      Language userLanguage = (Language)LanguageFinderBase.findByPrimaryKey(new LanguageKey(user.getLanguageid()));
     
      Locale userLocale = userLanguage.getLocale();
      String languageName;
     
      for(LanguageBean language:col) {
        out.append("<tr class=\"listRow\"");
        out.append(" onClick=\"");
View Full Code Here

TOP

Related Classes of org.openqreg.bean.Language

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.