it.openutils.migration
Class DbSetupManagerImpl

java.lang.Object
  extended by it.openutils.migration.DbSetupManagerImpl
All Implemented Interfaces:
DbSetupManager

public class DbSetupManagerImpl
extends java.lang.Object
implements DbSetupManager

DB setup manager: handles db setup and upgrade.

Version:
$Id: DbSetupManagerImpl.java 526 2008-01-14 12:00:28Z fgiust $
Author:
fgiust

Constructor Summary
DbSetupManagerImpl()
           
 
Method Summary
 void setDataSource(javax.sql.DataSource dataSource)
          Setter for dataSource.
 void setEnabled(boolean enabled)
          Sets the enabled.
 void setName(java.lang.String name)
          Sets the name (outputted in logs, just for reference)
 void setSetupTasks(java.util.List<DbTask> setupTasks)
          Sets the tasks.
 void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
          Sets the transactionTemplate.
 void setUpdateTasks(java.util.List<DbUpdate> updateTasks)
          Sets the updateTasks.
 void setVersionManager(DbVersionManager versionManager)
          Sets the versionManager.
 void updateDDL()
          Updates the DDL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbSetupManagerImpl

public DbSetupManagerImpl()
Method Detail

setName

public void setName(java.lang.String name)
Sets the name (outputted in logs, just for reference)

Parameters:
name - the name to set

setEnabled

public void setEnabled(boolean enabled)
Sets the enabled.

Parameters:
enabled - the enabled to set

setVersionManager

public void setVersionManager(DbVersionManager versionManager)
Sets the versionManager.

Parameters:
versionManager - the versionManager to set

setTransactionTemplate

public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
Sets the transactionTemplate.

Parameters:
transactionTemplate - the transactionTemplate to set

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)
Setter for dataSource.

Parameters:
dataSource - The dataSource to set.

setSetupTasks

public void setSetupTasks(java.util.List<DbTask> setupTasks)
Sets the tasks.

Parameters:
setupTasks - the tasks to set

setUpdateTasks

public void setUpdateTasks(java.util.List<DbUpdate> updateTasks)
Sets the updateTasks.

Parameters:
updateTasks - the updateTasks to set

updateDDL

public void updateDDL()
Description copied from interface: DbSetupManager
Updates the DDL

Specified by:
updateDDL in interface DbSetupManager
See Also:
it.openutils.dbupdate.DbSetupManager#updateDDL()


Copyright © 2008 Openmind. All Rights Reserved.