Examples of Company


Examples of com.orientechnologies.orient.test.domain.business.Company

  public void create() {
    database.open("admin", "admin");

    startRecordNumber = database.countClusterElements("Company");

    Company company;

    for (long i = startRecordNumber; i < startRecordNumber + TOT_RECORDS; ++i) {
      company = new Company((int) i, "Microsoft" + i);
      company.setEmployees((int) (100000 + i));
      company.getAddresses().add(new Address("Headquarter", redmond, "WA 98073-9717"));
      database.save(company);
    }

    database.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.test.domain.business.Company

    final List<Company> result = database.query(new OSQLSynchQuery<ODocument>("select * from Company where name.length() > 0"));

    Assert.assertTrue(result.size() == TOT_RECORDS);

    Company account;
    for (int i = 0; i < result.size(); ++i) {
      account = result.get(i);
      Assert.assertNotSame(account.getName().length(), 0);
    }

    database.close();
  }
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter2.recipe1.task.Company

    Account  account=new Account();
    // an initialize its balance to 1000
    account.setBalance(1000);
   
    // Creates a new Company and a Thread to run its task
    Company  company=new Company(account);
    Thread companyThread=new Thread(company);
    // Creates a new Bank and a Thread to run its task
    Bank bank=new Bank(account);
    Thread bankThread=new Thread(bank);
   
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter6.recipe08.task.Company

    Account  account=new Account();
    // an initialize its balance to 1000
    account.setBalance(1000);
   
    // Creates a new Company and a Thread to run its task
    Company  company=new Company(account);
    Thread companyThread=new Thread(company);
    // Creates a new Bank and a Thread to run its task
    Bank bank=new Bank(account);
    Thread bankThread=new Thread(bank);
   
View Full Code Here

Examples of com.pre.entity.base.Company

import com.pre.entity.base.Company;

public class CompanyRowRenderer implements RowRenderer{

  public void render(Row row, Object data) throws Exception {
    Company c=(Company)data;
    row.appendChild(new Checkbox());
    row.appendChild(new Label(c.getId().toString()));
    row.appendChild(new Label(c.getName()));
    row.appendChild(new Label(c.getDivision().getCode()));
    row.appendChild(new Label(c.getDescription().getShortDescription()));
  }
View Full Code Here

Examples of com.suarte.core.Company

        if (id != null) {
            company = companyManager.get(id);
            balance = company.getBalance();
            balanceLocal = company.getBalanceLocal();
        } else {
            company = new Company();
        }

        return "edit";
    }
View Full Code Here

Examples of com.sun.facelets.bean.Company

    public void testRepeat() throws Exception {
        Facelet f = FaceletFactory.getInstance().getFacelet("repeat.xml");
        FacesContext faces = FacesContext.getCurrentInstance();
       
        Company c = Example.createCompany();
        faces.getExternalContext().getRequestMap().put("company", c);
       
        UIViewRoot root = faces.getViewRoot();
        f.apply(faces, root);
       
View Full Code Here

Examples of com.techburg.xbrl.shared.XBRLDataBase.Company

  public <T> NodeInfo<?> getNodeInfo(T value) {
    if (value == null) {
      ListDataProvider<Company> dataProvider = new ListDataProvider<Company>();
      for (int i = 0; i < 5; i++) {
        dataProvider.getList().add(new Company(String.valueOf(i), "Company-" + String.valueOf(i), null));
      }
      return new DefaultNodeInfo<Company>(dataProvider, new CompanyCell());
    } else if (value instanceof Company) {
        ListDataProvider<XBRLReportFile> dataProvider = new ListDataProvider<XBRLReportFile>();
        for (int i = 0; i < 6; i++) {
View Full Code Here

Examples of de.crowdcode.kissmda.testapp.components.Company

    person.setName("Lofi");
  }

  @Test
  public void testApp() {
    Company company = new CompanyImpl();
    company.setName("CrowdCode");

    CompanyAttribute<String, Integer> companyAttribute = new CompanyAttributeImpl();
    companyAttribute.setName("Lofi");
    companyAttribute.add("Test Element", 23);
    company.setCompanyAttribute(companyAttribute);

    Address address1 = new AddressImpl();
    address1.setStreet("Jakarta");
    address1.setAddressType(AddressType.HOME);
    address1.setPerson(person);
View Full Code Here

Examples of er.ajax.example.Company

        // Fetch/create some sample data to edit
        EOEditingContext ec = session().defaultEditingContext();
       
        for (int i = 0; i < companyNames.count(); i++) {
      String name = companyNames.objectAtIndex(i);
          Company company = Company.fetchCompany(ec, Company.NAME_KEY, name);
          if (company == null) {
            company = Company.createCompany(ec, name);
          }
          companies.addObject(company);
    }
        ec.saveChanges();
       
        employee = Employee.fetchEmployee(ec, ERXQ.and(ERXQ.equals(Employee.FIRST_NAME_KEY, "Bill"),
                                   ERXQ.equals(Employee.LAST_NAME_KEY, "Wratchit")));
        if (employee == null) {
            Company company = Company.fetchCompany(ec, Company.NAME_KEY, companyNames.objectAtIndex(2));
            employee = Employee.createEmployee(ec, "Bill", "Wratchit", company);
        }
        ec.saveChanges();
  }
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.