Package org.paquitosoft.lml.model.action

Examples of org.paquitosoft.lml.model.action.IAction


     * @param entity
     * @return saved entity
     * @throws InternalErrorException (DuplicateInstanceException, ReflectionException)
     */
    public <T> T save(T entity) throws InternalErrorException {
        IAction action = new PersistAction(entity, PERSIST_MODE_SAVE);
        return (T) new ActionProcessor(action).processAction();
    }
View Full Code Here


     * @param detailLevel
     * @return entity read
     * @throws InternalErrorException (DataNotFoundException, ReflectionException)
     */
    public <T> T read(Class<T> entityType, Object entityId, Integer detailLevel) throws InternalErrorException {
        IAction action = new ReadEntityAction(entityType, entityId, detailLevel);
        return (T) new ActionProcessor(action).processAction();
    }
View Full Code Here

     * @param entity
     * @return udpated entity
     * @throws InternalErrorException (DataNotFoundException, ReflectionException)
     */
    public <T> T update(T entity) throws InternalErrorException {
        IAction action = new PersistAction(entity, PERSIST_MODE_UPDATE);
        return (T) new ActionProcessor(action).processAction();
    }
View Full Code Here

     * @param entityId
     * @return removed entity
     * @throws InternalErrorException (DataNotFoundException, ReflectionException)
     */
    public <T> T remove(T entity) throws InternalErrorException {
        IAction action = new PersistAction(entity, PERSIST_MODE_DELETE);
        return (T) new ActionProcessor(action).processAction();
    }
View Full Code Here

     * @param params
     * @return collection of entities
     * @throws InternalErrorException (DataNotFoundException, ReflectionException)
     */
    public <T> List<T> finder(String query, Class<T> entityType, Integer detailLevel, Object ... params) throws InternalErrorException {
        IAction action = new FindEntitiesAction(query, entityType, detailLevel, params);
        return new ActionProcessor(action).processAction();
    }
View Full Code Here

TOP

Related Classes of org.paquitosoft.lml.model.action.IAction

Copyright © 2018 www.massapicom. 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.