Package org.dmlite.model.action

Examples of org.dmlite.model.action.UpdateAction


   * @throws dmLite
   *             action exception if there is a problem
   */
  public boolean update(T entity, T updateEntity)
      throws ActionException {
    EntitiesAction entitiesUpdateAction = new UpdateAction();
    entitiesUpdateAction.setEntities(this);
    entitiesUpdateAction.setEntity(entity);
    entitiesUpdateAction.setUpdateEntity(updateEntity);
    try {
      if (entity == updateEntity) {
        String error = "The before update entity and the after update entity cannot be the same object.";
        throw new ActionException(error, entitiesUpdateAction);
      }
View Full Code Here

TOP

Related Classes of org.dmlite.model.action.UpdateAction

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.