All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tsl2.nano.service.util.INamedQueryService Maven / Gradle / Ivy

Go to download

TSL2 JEE Service Access (Generic Services for Entity Access, JEE File-System-Connector, Generic Featuring, Job-Scheduling, BeanContainer, Batch, Comfortable Bean Query Definitions, JAAS, Authentification, Authorization, )

The newest version!
/*
 * File: $HeadURL$
 * Id  : $Id$
 * 
 * created by: ts, Thomas Schneider
 * created on: 19.05.2011
 * 
 * Copyright: (c) Thomas Schneider 2011, all rights reserved
 */
package de.tsl2.nano.service.util;

import java.util.Collection;

import javax.ejb.Remote;

/**
 * provides services to work on beans with named queries. used by {@link IGenericService}.
 * 
 * @author ts, Thomas Schneider
 * @version $Revision$
 */
@Remote
public interface INamedQueryService {
    static final String NAMEDQUERY_ALL = "findAll";
    static final String NAMEDQUERY_ID = "findById";
    static final String NAMEDQUERY_BETWEEN = "findBetween";
    static final String NAMEDQUERY_INSERT = "insert";
    static final String NAMEDQUERY_UPDATE = "update";
    static final String NAMEDQUERY_DELETE = "delete";

    /**
     * used to work with named queries - on entities without table or view binding.
     * 
     * @param  virtual entity type
     * @param beanType entity without table or view binding
     * @param namedQuery named query (see annotation on given entity)
     * @param args query arguments
     * @return list of entities
     */
     Collection findByNamedQuery(Class beanType, String namedQuery, int maxResult, Object... args);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy