Package org.paquitosoft.lml.model.action

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


     * @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 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

TOP

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

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.