@ConfigurationProperties(prefix="spring.datasource") public class DataSourceProperties extends Object implements BeanClassLoaderAware, EnvironmentAware, InitializingBean
Modifier and Type | Class and Description |
---|---|
static class |
DataSourceProperties.Xa
XA Specific datasource settings.
|
Constructor and Description |
---|
DataSourceProperties() |
public static final String PREFIX
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public String getName()
public void setName(String name)
public Class<? extends DataSource> getType()
public void setType(Class<? extends DataSource> type)
public String getDriverClassName()
public void setDriverClassName(String driverClassName)
public String getUrl()
public void setUrl(String url)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getJndiName()
public void setJndiName(String jndiName)
URL
, driverClassName
, username
and password
fields
will be ignored when using JNDI lookups.jndiName
- the JNDI namepublic boolean isInitialize()
public void setInitialize(boolean initialize)
public String getPlatform()
public void setPlatform(String platform)
public String getSchema()
public void setSchema(String schema)
public String getData()
public void setData(String script)
public boolean isContinueOnError()
public void setContinueOnError(boolean continueOnError)
public String getSeparator()
public void setSeparator(String separator)
public Charset getSqlScriptEncoding()
public void setSqlScriptEncoding(Charset sqlScriptEncoding)
public ClassLoader getClassLoader()
public DataSourceProperties.Xa getXa()
public void setXa(DataSourceProperties.Xa xa)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.