Class DataRestRepository


  • public class DataRestRepository
    extends Object
    The type Data rest repository.
    Author:
    bnasslahsen
    • Constructor Detail

      • DataRestRepository

        public DataRestRepository​(Class<?> domainType,
                                  Class<?> repositoryType,
                                  Locale locale)
        Instantiates a new Data rest repository.
        Parameters:
        domainType - the domain type
        repositoryType - the repository type
        locale - the locale
    • 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