public class RepositoryResourceMetadata
extends java.lang.Object
| 构造器和说明 |
|---|
RepositoryResourceMetadata(org.springframework.data.mapping.PersistentEntity<?,?> entity,
java.lang.Class<?> repositoryInterface,
org.springframework.data.repository.core.CrudMethods crudMethods) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
enableAllDataInOnePage() |
org.springframework.data.mapping.PersistentEntity<?,?> |
getEntity() |
java.lang.Class<?> |
getModelType() |
java.lang.String |
getPathName() |
java.lang.reflect.Method |
getSearchMethod(java.lang.String search) |
java.util.Set<org.springframework.http.HttpMethod> |
getSupportedHttpMethods(ResourceType resourceType) |
boolean |
isExported() |
void |
verifySupportedMethod(org.springframework.http.HttpMethod requestHttpMethod,
ResourceType resourceType) |
public RepositoryResourceMetadata(org.springframework.data.mapping.PersistentEntity<?,?> entity,
java.lang.Class<?> repositoryInterface,
org.springframework.data.repository.core.CrudMethods crudMethods)
public org.springframework.data.mapping.PersistentEntity<?,?> getEntity()
public boolean isExported()
public java.lang.String getPathName()
public java.lang.Class<?> getModelType()
public void verifySupportedMethod(org.springframework.http.HttpMethod requestHttpMethod,
ResourceType resourceType)
throws org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedExceptionpublic java.util.Set<org.springframework.http.HttpMethod> getSupportedHttpMethods(ResourceType resourceType)
public boolean enableAllDataInOnePage()
public java.lang.reflect.Method getSearchMethod(java.lang.String search)