org.talend.esb.sam.server.persistence
Class DBInitializer

java.lang.Object
  extended by org.talend.esb.sam.server.persistence.DBInitializer
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class DBInitializer
extends Object
implements org.springframework.beans.factory.InitializingBean

The Class DBInitializer using for initializing persistence.


Constructor Summary
DBInitializer()
           
 
Method Summary
 void afterPropertiesSet()
           
 void setCreateSql(String createSql)
          Sets the sql.
 void setDataSource(DataSource dataSource)
          Sets the data source.
 void setRecreateDb(boolean recreateDb)
          Sets the recreate db flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBInitializer

public DBInitializer()
Method Detail

setDataSource

public void setDataSource(DataSource dataSource)
Sets the data source.

Parameters:
dataSource - the new data source

setRecreateDb

public void setRecreateDb(boolean recreateDb)
Sets the recreate db flag.

Parameters:
recreateDb - the recreateDb flag

setCreateSql

public void setCreateSql(String createSql)
Sets the sql.

Parameters:
createSql - the sql

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2011-2012 Talend Inc.. All Rights Reserved.