@ConfigurationProperties(prefix="spring.datasource") public class DataSourceProperties extends Object implements BeanClassLoaderAware, 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 afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected String getDriverClassName()
public String getUrl()
public String getUsername()
public String getPassword()
public void setDriverClassName(String driverClassName)
public void setUrl(String url)
public void setUsername(String username)
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 String getSqlScriptEncoding()
public void setSqlScriptEncoding(String sqlScriptEncoding)
public ClassLoader getClassLoader()
public DataSourceProperties.Xa getXa()
public void setXa(DataSourceProperties.Xa xa)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.