<commit_before>package ai.ilikeplaces.jpa;

import java.util.List;
import java.util.Map;
import javax.ejb.Local;

/**
 *
 * @param <T>
 * @author <NAME>
 */
@Local
public interface CrudServiceLocal<T> {

    /**
     *
     * @param t
     * @return
     */
    public T create(T t);

    /**
     *
     * @param type
     * @param id
     * @return
     */
    public T find(Class type, Object id);

    /**
     *
     * @param t
     * @return
     */
    public T update(T t);

    /**
     *
     * @param type
     * @param id
     */
    public void delete(Class type, Object id);

    /**
     *
     * @param queryName
     * @return
     */
    public List findWithNamedQuery(String queryName);

    /**
     *
     * @param queryName
     * @param resultLimit
     * @return
     */
    public List findWithNamedQuery(String queryName, int resultLimit);

    /**
     *
     * @param namedQueryName
     * @param parameters
     * @return
     */
    public List findWithNamedQuery(String namedQueryName, Map parameters);

    /**
     *
     * @param namedQueryName
     * @param parameters
     * @param resultLimit
     * @return
     */
    public List findWithNamedQuery(String namedQueryName, Map parameters, int resultLimit);
}<commit_msg>20091014 added method that was already in bean and missed out here<commit_after>package ai.ilikeplaces.jpa;

import java.util.List;
import java.util.Map;
import javax.ejb.Local;

/**
 *
 * @param <T>
 * @author <NAME>
 */
@Local
public interface CrudServiceLocal<T> {

    /**
     *
     * @param t
     * @return
     */
    public T create(T t);

    /**
     *
     * @param type
     * @param id
     * @return
     */
    public T find(Class type, Object id);

    /**
     *
     * @param t
     * @return
     */
    public T update(T t);

    /**
     *
     * @param type
     * @param id
     */
    public void delete(Class type, Object id);

    /**
     *
     * @param queryName
     * @return
     */
    public List findWithNamedQuery(String queryName);

    /**
     *
     * @param queryName
     * @param resultLimit
     * @return
     */
    public List findWithNamedQuery(String queryName, int resultLimit);

    /**
     *
     * @param namedQueryName
     * @param parameters
     * @return
     */
    public List findWithNamedQuery(String namedQueryName, Map parameters);

    /**
     *
     * @param namedQueryName
     * @param parameters
     * @param resultLimit
     * @return
     */
    public List findWithNamedQuery(String namedQueryName, Map parameters, int resultLimit);

    /**
     *
     * @param sql
     * @param type
     * @return ListF
     */
    public List findByNativeQuery(final String sql, final Class type);
}
{'fraction_non_alphanumeric': 0.11903012490815577, 'fraction_numerical': 0.0029390154298310064, 'mean_word_length': 1.9029850746268657, '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': '4507378', 'n_tokens_mistral': 863, 'n_tokens_neox': 837, 'n_words': 215}