<commit_before>/*******************************************************************************
 *
 *  Copyright FUJITSU LIMITED 2016
 *
 *  Creation Date: 31.08.2016
 *
 *******************************************************************************/
package org.oscm.tenant.local;

import org.oscm.domobjects.Tenant;
import org.oscm.domobjects.TenantSetting;
import org.oscm.internal.types.exception.NonUniqueBusinessKeyException;
import org.oscm.internal.types.exception.ObjectNotFoundException;
import java.util.List;

import javax.ejb.Local;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

import org.oscm.domobjects.Tenant;
import org.oscm.internal.types.exception.ObjectNotFoundException;

@Local
public interface TenantServiceLocal {

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    List<Tenant> getAllTenants();

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    Tenant getTenantByTenantId(String tenantId) throws ObjectNotFoundException;

    void saveTenant(Tenant tenant) throws NonUniqueBusinessKeyException;

    Tenant getTenantByKey(long tkey) throws ObjectNotFoundException;

    void removeTenant(Tenant tenant);

    void saveTenantSetting(TenantSetting tenantSetting) throws NonUniqueBusinessKeyException;

    void removeTenantSetting(TenantSetting tenantSetting) throws ObjectNotFoundException;

    List<TenantSetting> getAllTenantSettingsForTenant(Tenant tenant);

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    List<Tenant> getTenantsByIdPattern(String tenantIdPattern);

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    Tenant getTenantByTkey(long tenantID);

    Tenant getMyTenant();
}
<commit_msg>Added transactionattribute over the method.<commit_after>/*******************************************************************************
 *
 *  Copyright FUJITSU LIMITED 2016
 *
 *  Creation Date: 31.08.2016
 *
 *******************************************************************************/
package org.oscm.tenant.local;

import org.oscm.domobjects.Tenant;
import org.oscm.domobjects.TenantSetting;
import org.oscm.internal.types.exception.NonUniqueBusinessKeyException;
import org.oscm.internal.types.exception.ObjectNotFoundException;
import java.util.List;

import javax.ejb.Local;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

import org.oscm.domobjects.Tenant;
import org.oscm.internal.types.exception.ObjectNotFoundException;

@Local
public interface TenantServiceLocal {

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    List<Tenant> getAllTenants();

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    Tenant getTenantByTenantId(String tenantId) throws ObjectNotFoundException;

    void saveTenant(Tenant tenant) throws NonUniqueBusinessKeyException;

    Tenant getTenantByKey(long tkey) throws ObjectNotFoundException;

    void removeTenant(Tenant tenant);

    void saveTenantSetting(TenantSetting tenantSetting) throws NonUniqueBusinessKeyException;

    void removeTenantSetting(TenantSetting tenantSetting) throws ObjectNotFoundException;

    List<TenantSetting> getAllTenantSettingsForTenant(Tenant tenant);

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    List<Tenant> getTenantsByIdPattern(String tenantIdPattern);

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    Tenant getTenantByTkey(long tenantID);

    @TransactionAttribute(TransactionAttributeType.MANDATORY)
    Tenant getMyTenant();
}

{'fraction_non_alphanumeric': 0.15616207090602138, 'fraction_numerical': 0.006752954417557681, 'mean_word_length': 7.116438356164384, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6543704', 'n_tokens_mistral': 979, 'n_tokens_neox': 916, 'n_words': 163}