Examples of invokeSave()


Examples of org.springframework.data.repository.invoker.RepositoryInvoker.invokeSave()

   */
  private void persist(Object object, RepositoryInvokerFactory invokerFactory) {

    RepositoryInvoker invoker = invokerFactory.getInvokerFor(object.getClass());
    LOGGER.debug(String.format("Persisting %s using repository %s", object, invoker));
    invoker.invokeSave(object);
  }
}
View Full Code Here

Examples of org.springframework.data.rest.core.invoke.RepositoryInvoker.invokeSave()

        } else {
          prop.wrapper.setProperty(prop.property, null);
        }

        publisher.publishEvent(new BeforeLinkDeleteEvent(prop.wrapper.getBean(), prop.propertyValue));
        Object result = repoMethodInvoker.invokeSave(prop.wrapper.getBean());
        publisher.publishEvent(new AfterLinkDeleteEvent(result, prop.propertyValue));

        return null;
      }
    };
View Full Code Here

Examples of org.springframework.data.rest.core.invoke.RepositoryInvoker.invokeSave()

          Object propVal = loadPropertyValue(prop.propertyType, incoming.getLinks().get(0));
          prop.wrapper.setProperty(prop.property, propVal);
        }

        publisher.publishEvent(new BeforeLinkSaveEvent(prop.wrapper.getBean(), prop.propertyValue));
        Object result = invoker.invokeSave(prop.wrapper.getBean());
        publisher.publishEvent(new AfterLinkSaveEvent(result, prop.propertyValue));

        return null;
      }
    };
View Full Code Here

Examples of org.springframework.data.rest.core.invoke.RepositoryInvoker.invokeSave()

        } else {
          prop.wrapper.setProperty(prop.property, null);
        }

        publisher.publishEvent(new BeforeLinkDeleteEvent(prop.wrapper.getBean(), prop.propertyValue));
        Object result = invoker.invokeSave(prop.wrapper.getBean());
        publisher.publishEvent(new AfterLinkDeleteEvent(result, prop.propertyValue));

        return null;
      }
    };
View Full Code Here

Examples of org.springframework.data.rest.core.invoke.RepositoryInvoker.invokeSave()

            return toEmptyResponse(METHOD_NOT_ALLOWED);
        }

        fileResourceStorage().delete(domainObj, prop);

        invoker.invokeSave(domainObj);

        return toEmptyResponse(OK);
    }

    @RequestMapping(value = BASE_MAPPING + "/file", method = {POST})
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.