Examples of Company


Examples of at.compax.bbsng.dataimport.app.model.Company

  }

  public Company getNewTransientCompany(final String line) {
    final String[] lineSplit = splitPreserveAllTokens(line, ";");

    final Company obj = new Company();
    setId(obj, Integer.valueOf(lineSplit[0]));
    setAddress(obj, lineSplit);
    setContact(obj, lineSplit);
    setName(obj, lineSplit[1]);
    setNumber(obj);
View Full Code Here

Examples of baza_jsf.domain.Company

@ApplicationScoped
public class CompanyManager {
  private List<Company> db = new ArrayList<Company>();

  public void addCompany(Company company) {
    Company newCompany = new Company();

    newCompany.setFirstName(company.getFirstName());
    newCompany.setZipCode(company.getZipCode());
    newCompany.setNip(company.getNip());
    newCompany.setDateOfBirth(company.getDateOfBirth());
    newCompany.setMarried(company.isMarried());
    newCompany.setEmploy(company.getEmploy());
    newCompany.setNumOfChildren(company.getNumOfChildren());

    db.add(newCompany);
  }
View Full Code Here

Examples of ch.sahits.game.openpatrician.model.impl.Company

    super();
    fleet = new LinkedList<IShip>();
    this.rank=rank;
    careerLevel=EEconomicCareer.INEXPERIANCED;
    this.personalData=personalData;
    company = new Company(this, homeTown, cash);
  }
View Full Code Here

Examples of cl.molavec.jpa.entities.Company

     
      //Entities
      QuotationProperties qp = null;
    QUser quser = null;
    Customer customer = null;
    Company company = null;
    Quotation quotation =null;
   
   
    EntityManager em = this.emf.createEntityManager();
    em.getTransaction().begin();
View Full Code Here

Examples of com.alibaba.json.test.entity.Company

        group.setName("Alibaba Group");
        group.setDescription("Alibaba Group makes it easy for anyone to buy or sell online anywhere in the world. ");

        {
            Company company = new Company();
            company.setId(createId());
            company.setName("Alibaba.com");
            company.setDescription("Global leader in e-commerce for small businesses");
            company.setStock("1688.HK");
            group.getCompanies().add(company);

            Department root = new Department();
            root.setId(createId());
            root.setName("B2B");
            company.setRootDepartment(root);

            {
                Department cbu = new Department();
                cbu.setId(createId());
                cbu.setName("CBU");

                root.getChildren().add(cbu);

                Employee emp0 = new Employee();
                emp0.setName("校长");
                emp0.setDescription("神棍敌人姐");
                emp0.setAge(3);
                emp0.setSalary(new BigDecimal("123456789.0123"));
                emp0.setBirthdate(new Date());
                emp0.setBadboy(true);

                cbu.getMembers().add(emp0);
            }
            {
                Department icbu = new Department();
                icbu.setId(createId());
                icbu.setName("ICBU");

                root.getChildren().add(icbu);
            }
        }

        {
            Company company = new Company();
            company.setId(createId());
            company.setName("Taobao");
            company.setDescription("China's largest online retail website and one-stop platform for shopping, socializing and information sharing");
            group.getCompanies().add(company);
        }
        {
            Company company = new Company();
            company.setId(createId());
            company.setName("Alipay");
            company.setDescription("China's leading third-party online payment platform");
            group.getCompanies().add(company);
        }
        {
            Company company = new Company();
            company.setId(createId());
            company.setName("Alibaba Cloud Computing");
            company.setDescription("Developer of advanced data-centric cloud computing services");
            group.getCompanies().add(company);
        }
        {
            Company company = new Company();
            company.setId(createId());
            company.setName("China Yahoo");
            company.setDescription("One of China's leading Internet portals");
            group.getCompanies().add(company);
        }

        String jsonString = JSON.toJSONString(group, true);
        System.out.println(jsonString);
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.managed.Company

    @Override
    public List<Department> getTableEntries() {
        Logic.lockReading();
        List<Department> departments;
        try {
            Company company = (Company) object;
            departments = company.getDepartments();
            for (Department department : departments) {
                department.addObserver(this);
            }
        } finally {
            Logic.unlockReading();
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.managed.Company

    public static boolean isAllowedToAdd(Employee user, Object parent, Class childClass) {
        if (user.isCompanyManager()) {
            return true;
        }
        if (parent instanceof Company) {
            Company company = (Company) parent;
            if (childClass.equals(Department.class)) {
                return user.isManager(company);
            }
            if (childClass.equals(Employee.class)) {
                return false;
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.managed.Company

    public static boolean isAllowedToEdit(Employee user, DataObject obj) {
        if (user.isCompanyManager()) {
            return true;
        }
        if (obj instanceof Company) {
            Company company = (Company) obj;
            return user.isManager(company);
        } else if (obj instanceof Department) {
            return user.isCompanyManager();
        } else if (obj instanceof Project) {
            Project project = (Project) obj;
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.managed.Company

                }

            } else if (dObj.isNew()) { // neues Objekt vom Server bekommen, also erstmal in die Map/Liste speichern
                if (dObj instanceof Company) {

                    Company company1 = (Company) dObj;
                    if (company.isNew()) {
                        dObj = company.adopt((Company) dObj);
                        dObj.setState(Status.NEW);
                    } else {
                        dObj = company.adopt((Company) dObj);
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.managed.Company

        activateDelayedFlush();
        try {
            ResultSet rs = dbConnector.query("SELECT * FROM " + Company.getTableName());
            if (rs.next()) {
                company = new Company(this, rs);
            } else {
                company = getDummyCompany();
                final Department d = getDummyDepartment();
                final Employee e = getDummyEmployee();
                final Project project = getDummyProject();
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.