Module spring.data.commons
Class RepositoryFragment.ImplementedRepositoryFragment<T>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFragment.ImplementedRepositoryFragment<T>
- All Implemented Interfaces:
RepositoryFragment<T>
- Enclosing interface:
- RepositoryFragment<T>
public static class RepositoryFragment.ImplementedRepositoryFragment<T>
extends Object
implements RepositoryFragment<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.repository.core.support.RepositoryFragment
RepositoryFragment.ImplementedRepositoryFragment<T>, RepositoryFragment.StructuralRepositoryFragment<T> -
Constructor Summary
ConstructorsConstructorDescriptionImplementedRepositoryFragment(Class<T> interfaceClass, T implementation) Creates a newRepositoryFragment.ImplementedRepositoryFragmentfor the given interface class and implementation.ImplementedRepositoryFragment(Optional<Class<T>> interfaceClass, T implementation) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<?>inthashCode()toString()withImplementation(T implementation) Implement a structuralRepositoryFragmentgiven itsimplementationobject.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.repository.core.support.RepositoryFragment
hasMethod, methods
-
Constructor Details
-
ImplementedRepositoryFragment
@Deprecated(since="3.4", forRemoval=true) public ImplementedRepositoryFragment(Optional<Class<T>> interfaceClass, T implementation) Deprecated, for removal: This API element is subject to removal in a future version.since 3.4 - useImplementedRepositoryFragment(java.lang.Class<T>,T)instead.Creates a newRepositoryFragment.ImplementedRepositoryFragmentfor the given interface class and implementation.- Parameters:
interfaceClass-implementation-
-
ImplementedRepositoryFragment
Creates a newRepositoryFragment.ImplementedRepositoryFragmentfor the given interface class and implementation.- Parameters:
interfaceClass- must not be null.implementation- must not be null.
-
-
Method Details
-
getSignatureContributor
- Specified by:
getSignatureContributorin interfaceRepositoryFragment<T>- Returns:
- the class/interface providing signatures for this
RepositoryFragment.
-
getImplementation
- Specified by:
getImplementationin interfaceRepositoryFragment<T>- Returns:
- the optional implementation. Only available for implemented fragments. Structural fragments return always
Optional.empty().
-
withImplementation
Description copied from interface:RepositoryFragmentImplement a structuralRepositoryFragmentgiven itsimplementationobject. Returns an implementedRepositoryFragment.- Specified by:
withImplementationin interfaceRepositoryFragment<T>- Parameters:
implementation- must not be null.- Returns:
- a new implemented
RepositoryFragmentforimplementation.
-
toString
-
equals
-
hashCode
public int hashCode()
-
ImplementedRepositoryFragment(java.lang.Class<T>,T)instead.