org.springframework.boot.autoconfigure.jdbc

Class DataSourceProperties

  • java.lang.Object
    • org.springframework.boot.autoconfigure.jdbc.DataSourceProperties
    • Constructor Detail

      • DataSourceProperties

        public DataSourceProperties()
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName(String name)
      • isGenerateUniqueName

        public boolean isGenerateUniqueName()
      • setGenerateUniqueName

        public void setGenerateUniqueName(boolean generateUniqueName)
      • getDriverClassName

        public String getDriverClassName()
        Return the configured driver or null if none was configured.
        Returns:
        the configured driver
        See Also:
        determineDriverClassName()
      • setDriverClassName

        public void setDriverClassName(String driverClassName)
      • determineDriverClassName

        public String determineDriverClassName()
        Determine the driver to use based on this configuration and the environment.
        Returns:
        the driver to use
        Since:
        1.4.0
      • getUrl

        public String getUrl()
        Return the configured url or null if none was configured.
        Returns:
        the configured url
        See Also:
        determineUrl()
      • setUrl

        public void setUrl(String url)
      • determineUrl

        public String determineUrl()
        Determine the url to use based on this configuration and the environment.
        Returns:
        the url to use
        Since:
        1.4.0
      • determineDatabaseName

        public String determineDatabaseName()
        Determine the name to used based on this configuration.
        Returns:
        the database name to use or null
        Since:
        2.0.0
      • getUsername

        public String getUsername()
        Return the configured username or null if none was configured.
        Returns:
        the configured username
        See Also:
        determineUsername()
      • setUsername

        public void setUsername(String username)
      • determineUsername

        public String determineUsername()
        Determine the username to use based on this configuration and the environment.
        Returns:
        the username to use
        Since:
        1.4.0
      • getPassword

        public String getPassword()
        Return the configured password or null if none was configured.
        Returns:
        the configured password
        See Also:
        determinePassword()
      • setPassword

        public void setPassword(String password)
      • determinePassword

        public String determinePassword()
        Determine the password to use based on this configuration and the environment.
        Returns:
        the password to use
        Since:
        1.4.0
      • getJndiName

        public String getJndiName()
      • setJndiName

        public void setJndiName(String jndiName)
        Allows the DataSource to be managed by the container and obtained via JNDI. The URL, driverClassName, username and password fields will be ignored when using JNDI lookups.
        Parameters:
        jndiName - the JNDI name
      • getPlatform

        public String getPlatform()
      • setPlatform

        public void setPlatform(String platform)
      • setSchema

        public void setSchema(List<String> schema)
      • getSchemaUsername

        public String getSchemaUsername()
      • setSchemaUsername

        public void setSchemaUsername(String schemaUsername)
      • getSchemaPassword

        public String getSchemaPassword()
      • setSchemaPassword

        public void setSchemaPassword(String schemaPassword)
      • setData

        public void setData(List<String> data)
      • getDataUsername

        public String getDataUsername()
      • setDataUsername

        public void setDataUsername(String dataUsername)
      • getDataPassword

        public String getDataPassword()
      • setDataPassword

        public void setDataPassword(String dataPassword)
      • isContinueOnError

        public boolean isContinueOnError()
      • setContinueOnError

        public void setContinueOnError(boolean continueOnError)
      • getSeparator

        public String getSeparator()
      • setSeparator

        public void setSeparator(String separator)
      • getSqlScriptEncoding

        public Charset getSqlScriptEncoding()
      • setSqlScriptEncoding

        public void setSqlScriptEncoding(Charset sqlScriptEncoding)