Package org.springdoc.core.data
Class DataRestRepository
java.lang.Object
org.springdoc.core.data.DataRestRepository
The type Data rest repository.
- Author:
- bnasslahsen
-
Constructor Summary
ConstructorsConstructorDescriptionDataRestRepository
(Class<?> domainType, Class<?> repositoryType, Locale locale) Instantiates a new Data rest repository. -
Method Summary
Modifier and TypeMethodDescriptionGets controller type.Class<?>
Gets domain type.Gets locale.org.springframework.data.mapping.PersistentEntity
Gets persistent entity.Class<?>
Gets property type.Gets relation name.Class<?>
Gets repository type.Gets return type.boolean
Is collection like boolean.boolean
isMap()
Is map boolean.void
setCollectionLike
(boolean collectionLike) Sets collection like.void
setControllerType
(ControllerType controllerType) Sets controller type.void
setDomainType
(Class<?> domainType) Sets domain type.void
Sets locale.void
setMap
(boolean map) Sets map.void
setPersistentEntity
(org.springframework.data.mapping.PersistentEntity persistentEntity) Sets persistent entity.void
setPropertyType
(Class<?> propertyType) Sets property type.void
setRelationName
(String relationName) Sets relation name.void
setRepositoryType
(Class<?> repositoryType) Sets repository type.
-
Constructor Details
-
DataRestRepository
Instantiates a new Data rest repository.- Parameters:
domainType
- the domain typerepositoryType
- the repository typelocale
- the locale
-
-
Method Details
-
getDomainType
Gets domain type.- Returns:
- the domain type
-
setDomainType
Sets domain type.- Parameters:
domainType
- the domain type
-
getRepositoryType
Gets repository type.- Returns:
- the repository type
-
setRepositoryType
Sets repository type.- Parameters:
repositoryType
- the repository type
-
getRelationName
Gets relation name.- Returns:
- the relation name
-
setRelationName
Sets relation name.- Parameters:
relationName
- the relation name
-
getControllerType
Gets controller type.- Returns:
- the controller type
-
setControllerType
Sets controller type.- Parameters:
controllerType
- the controller type
-
isCollectionLike
public boolean isCollectionLike()Is collection like boolean.- Returns:
- the boolean
-
setCollectionLike
public void setCollectionLike(boolean collectionLike) Sets collection like.- Parameters:
collectionLike
- the collection like
-
isMap
public boolean isMap()Is map boolean.- Returns:
- the boolean
-
setMap
public void setMap(boolean map) Sets map.- Parameters:
map
- the map
-
getPropertyType
Gets property type.- Returns:
- the property type
-
setPropertyType
Sets property type.- Parameters:
propertyType
- the property type
-
getPersistentEntity
public org.springframework.data.mapping.PersistentEntity getPersistentEntity()Gets persistent entity.- Returns:
- the persistent entity
-
setPersistentEntity
public void setPersistentEntity(org.springframework.data.mapping.PersistentEntity persistentEntity) Sets persistent entity.- Parameters:
persistentEntity
- the persistent entity
-
getLocale
Gets locale.- Returns:
- the locale
-
setLocale
Sets locale.- Parameters:
locale
- the locale
-
getReturnType
Gets return type.- Returns:
- the return type
-