public class SingleTableDatabaseInitializer
extends org.springframework.jdbc.datasource.init.ResourceDatabasePopulator
implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SingleTableDatabaseInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
addScript(org.springframework.core.io.Resource script) |
void |
afterPropertiesSet() |
void |
setColumnNames(java.lang.String[] names)
Sets the column names which will be used to create a DDL definition
of the columns for the table.
|
void |
setScripts(org.springframework.core.io.Resource... scripts) |
void |
setTableName(java.lang.String tableName) |
public void setTableName(java.lang.String tableName)
public void addScript(org.springframework.core.io.Resource script)
addScript
in class org.springframework.jdbc.datasource.init.ResourceDatabasePopulator
public void setScripts(org.springframework.core.io.Resource... scripts)
setScripts
in class org.springframework.jdbc.datasource.init.ResourceDatabasePopulator
public void setColumnNames(java.lang.String[] names)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception