public class GreenplumDataSourceFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<org.apache.commons.dbcp.BasicDataSource>
DataSource
. Needed to use
both command-line props and a control file.Constructor and Description |
---|
GreenplumDataSourceFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.apache.commons.dbcp.BasicDataSource |
createInstance() |
protected void |
destroyInstance(org.apache.commons.dbcp.BasicDataSource instance) |
java.lang.Class<javax.sql.DataSource> |
getObjectType() |
void |
setControlFile(ControlFile controlFile) |
void |
setDbHost(java.lang.String dbHost) |
void |
setDbName(java.lang.String dbName) |
void |
setDbPassword(java.lang.String dbPassword) |
void |
setDbPort(int dbPort) |
void |
setDbUser(java.lang.String dbUser) |
public java.lang.Class<javax.sql.DataSource> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.apache.commons.dbcp.BasicDataSource>
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<org.apache.commons.dbcp.BasicDataSource>
protected org.apache.commons.dbcp.BasicDataSource createInstance() throws java.lang.Exception
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<org.apache.commons.dbcp.BasicDataSource>
java.lang.Exception
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.beans.factory.config.AbstractFactoryBean<org.apache.commons.dbcp.BasicDataSource>
java.lang.Exception
protected void destroyInstance(org.apache.commons.dbcp.BasicDataSource instance) throws java.lang.Exception
destroyInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<org.apache.commons.dbcp.BasicDataSource>
java.lang.Exception
public void setControlFile(ControlFile controlFile)
public void setDbHost(java.lang.String dbHost)
public void setDbName(java.lang.String dbName)
public void setDbUser(java.lang.String dbUser)
public void setDbPassword(java.lang.String dbPassword)
public void setDbPort(int dbPort)