Examples of CrudMethods


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

  public PagingAndSortingRepositoryInvoker(PagingAndSortingRepository<Object, Serializable> repository,
      RepositoryMetadata metadata, ConversionService conversionService) {

    super(repository, metadata, conversionService);

    CrudMethods crudMethods = metadata.getCrudMethods();

    this.repository = repository;
    this.customFindAll = isRedeclaredMethod(crudMethods.getFindAllMethod());
  }
View Full Code Here

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

    return new DefaultCrudMethods(information);
  }

  private static void assertFindAllMethodOn(Class<?> type, Method method) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasFindAllMethod(), is(method != null));
    assertThat(methods.getFindAllMethod(), is(method));
  }
View Full Code Here

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

    assertThat(methods.getFindAllMethod(), is(method));
  }

  private static void assertFindOneMethodOn(Class<?> type, Method method) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasFindOneMethod(), is(method != null));
    assertThat(methods.getFindOneMethod(), is(method));
  }
View Full Code Here

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

    assertThat(methods.getFindOneMethod(), is(method));
  }

  private static void assertDeleteMethodOn(Class<?> type, Method method) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasDelete(), is(method != null));
    assertThat(methods.getDeleteMethod(), is(method));
  }
View Full Code Here

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

    assertThat(methods.getDeleteMethod(), is(method));
  }

  private static void assertSaveMethodOn(Class<?> type, Method method) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasSaveMethod(), is(method != null));
    assertThat(methods.getSaveMethod(), is(method));
  }
View Full Code Here

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

    assertThat(methods.getSaveMethod(), is(method));
  }

  private static void assertSaveMethodPresent(Class<?> type, boolean present) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasSaveMethod(), is(present));
    assertThat(methods.getSaveMethod(), is(present ? notNullValue() : nullValue()));
  }
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.