Package org.springdoc.data.rest.core
Class DataRestRepository
- java.lang.Object
-
- org.springdoc.data.rest.core.DataRestRepository
-
public class DataRestRepository extends Object
The type Data rest repository.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description DataRestRepository(Class<?> domainType, Class<?> repositoryType, Locale locale)Instantiates a new Data rest repository.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControllerTypegetControllerType()Gets controller type.Class<?>getDomainType()Gets domain type.LocalegetLocale()Gets locale.org.springframework.data.mapping.PersistentEntitygetPersistentEntity()Gets persistent entity.Class<?>getPropertyType()Gets property type.StringgetRelationName()Gets relation name.Class<?>getRepositoryType()Gets repository type.ClassgetReturnType()Gets return type.booleanisCollectionLike()Is collection like boolean.booleanisMap()Is map boolean.voidsetCollectionLike(boolean collectionLike)Sets collection like.voidsetControllerType(ControllerType controllerType)Sets controller type.voidsetDomainType(Class<?> domainType)Sets domain type.voidsetLocale(Locale locale)Sets locale.voidsetMap(boolean map)Sets map.voidsetPersistentEntity(org.springframework.data.mapping.PersistentEntity persistentEntity)Sets persistent entity.voidsetPropertyType(Class<?> propertyType)Sets property type.voidsetRelationName(String relationName)Sets relation name.voidsetRepositoryType(Class<?> repositoryType)Sets repository type.
-
-
-
Method Detail
-
getDomainType
public Class<?> getDomainType()
Gets domain type.- Returns:
- the domain type
-
setDomainType
public void setDomainType(Class<?> domainType)
Sets domain type.- Parameters:
domainType- the domain type
-
getRepositoryType
public Class<?> getRepositoryType()
Gets repository type.- Returns:
- the repository type
-
setRepositoryType
public void setRepositoryType(Class<?> repositoryType)
Sets repository type.- Parameters:
repositoryType- the repository type
-
getRelationName
public String getRelationName()
Gets relation name.- Returns:
- the relation name
-
setRelationName
public void setRelationName(String relationName)
Sets relation name.- Parameters:
relationName- the relation name
-
getControllerType
public ControllerType getControllerType()
Gets controller type.- Returns:
- the controller type
-
setControllerType
public void setControllerType(ControllerType controllerType)
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
public Class<?> getPropertyType()
Gets property type.- Returns:
- the property type
-
setPropertyType
public void setPropertyType(Class<?> propertyType)
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
public Locale getLocale()
Gets locale.- Returns:
- the locale
-
setLocale
public void setLocale(Locale locale)
Sets locale.- Parameters:
locale- the locale
-
getReturnType
public Class getReturnType()
Gets return type.- Returns:
- the return type
-
-