Examples of RepositoryInformation


Examples of org.springframework.data.repository.core.RepositoryInformation

   */
  @SuppressWarnings("unchecked")
  private RepositoryInvoker prepareInvokers(Class<?> domainType) {

    Object repository = repositories.getRepositoryFor(domainType);
    RepositoryInformation information = repositories.getRepositoryInformationFor(domainType);

    if (repository instanceof PagingAndSortingRepository) {
      return new PagingAndSortingRepositoryInvoker((PagingAndSortingRepository<Object, Serializable>) repository,
          information, conversionService);
    } else if (repository instanceof CrudRepository) {
View Full Code Here

Examples of org.springframework.data.repository.core.RepositoryInformation

   * @param type
   * @return
   */
  private List<Descriptor> getPaginationDescriptors(Class<?> type, HttpMethod method) {

    RepositoryInformation information = repositories.getRepositoryInformationFor(type);

    if (!information.isPagingRepository() || !getType(method).equals(Type.SAFE)) {
      return Collections.emptyList();
    }

    Link linkToCollectionResource = entityLinks.linkToCollectionResource(type);
    List<TemplateVariable> variables = linkToCollectionResource.getVariables();
View Full Code Here

Examples of org.springframework.ide.eclipse.data.jdt.core.RepositoryInformation

    if (!RepositoryInformation.isSpringDataRepository(type)) {
      return false;
    }

    // resolve repository information and generate problem markers
    RepositoryInformation information = new RepositoryInformation(type);

    Class<?> domainClass = information.getManagedDomainClass();
    if (domainClass == null) {
      return false;
    }
    return true;
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.data.jdt.core.RepositoryInformation

      if (!supports(typeRoot))
        return;

      // resolve repository information and generate problem markers
      RepositoryInformation information = new RepositoryInformation(type);

      Class<?> domainClass = information.getManagedDomainClass();
      if (domainClass == null) {
        return;
      }

      for (IMethod method : information.getMethodsToValidate()) {

        String methodName = method.getElementName();

        try {
          new PartTree(methodName, domainClass);
View Full Code Here

Examples of org.springframework.ide.eclipse.data.jdt.core.RepositoryInformation

      if (!RepositoryInformation.isSpringDataRepository(type)) {
        return false;
      }

      // resolve repository information and generate problem markers
      RepositoryInformation information = new RepositoryInformation(type);

      Class<?> domainClass = information.getManagedDomainClass();
      if (domainClass == null) {
        return false;
      }
      return true;
    }
View Full Code Here

Examples of org.springframework.ide.eclipse.data.jdt.core.RepositoryInformation

    ITypeRoot typeRoot = element.getTypeRoot();
    IType type = typeRoot.findPrimaryType();

    // resolve repository information and generate problem markers
    RepositoryInformation information = new RepositoryInformation(type);

    Class<?> domainClass = information.getManagedDomainClass();
    if (domainClass == null) {
      return;
    }

    try {
View Full Code Here

Examples of org.springframework.ide.eclipse.data.jdt.core.RepositoryInformation

        return super.computeCompletionProposals(javaContext, monitor);
      }

      List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>();

      RepositoryInformation repositoryInfo = new RepositoryInformation(expectedType);
      Class<?> domainClass = repositoryInfo.getManagedDomainClass();
      if (domainClass != null) {
        Method[] methods = domainClass.getMethods();

        for (Method method : methods) {
          Class<?> returnType = method.getReturnType();
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.