<commit_before><commit_msg>CompanyBean<commit_after>package ro.uvt.controller.beans;

import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import ro.uvt.entity.Company;
import ro.uvt.entity.dao.Active;

/**
 *
 * @author Anastasia
 */

@Stateless
public class CompanyBean {
    
    @Inject
    private Active active;
    
    private final Class<Company> TYPE = Company.class;
    
    public void create(Company company) {
        active.create(company);
    }
    
    public void update(Company company) {
        active.update(company);
    }
    
    public void remove(Company company) {
        active.remove(company);
    }
    
    public void removeId(long id) {
        active.removeById(TYPE, id);
    }
    
    public List<Company> findAll() {
        return active.findAll(TYPE);
    }
    
    public Company findId(long id) {
        return active.findById(TYPE, id);
    }
    
    public long count() {
        return active.count(TYPE);
    }
    
    public void setActive(Company company, boolean bool) {
        active.setActive(TYPE, company, bool);
    }    
}
{'fraction_non_alphanumeric': 0.1052158273381295, 'fraction_numerical': 0.0, 'mean_word_length': 2.435185185185185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2500404', 'n_tokens_mistral': 337, 'n_tokens_neox': 339, 'n_words': 74}