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 setDataSource(DataSource dataSource)
          Sets the data source.
 void setDialect(String dialect)
          Sets the database dialect.
 
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

setDialect

public void setDialect(String dialect)
Sets the database dialect.

Parameters:
dialect - the database dialect

afterPropertiesSet

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


Copyright © 2011–2013 Talend Inc.. All rights reserved.