it.openutils.migration.sqlserver
Class SqlServerProcedureCreateOrUpdateTask

java.lang.Object
  extended by it.openutils.migration.task.setup.BaseDbTask
      extended by it.openutils.migration.task.setup.BaseConditionalTask
          extended by it.openutils.migration.task.setup.GenericConditionalTask
              extended by it.openutils.migration.sqlserver.SqlServerProcedureCreateOrUpdateTask
All Implemented Interfaces:
DbTask

public class SqlServerProcedureCreateOrUpdateTask
extends GenericConditionalTask

Compares the procedure script with the one stored in the db and drops and recreates it if the scripts differs. Be aware that tabs chars are ALWAYS considered different, so remove them from your scripts! This works ONLY for SQL Server 2005.

Version:
$Id: SqlServerProcedureCreateOrUpdateTask.java 568 2008-01-27 15:25:47Z fgiust $
Author:
Danilo Ghirardelli

Field Summary
 
Fields inherited from class it.openutils.migration.task.setup.GenericConditionalTask
check, triggerValue
 
Fields inherited from class it.openutils.migration.task.setup.BaseConditionalTask
ddl, log, not, scripts, variables
 
Fields inherited from class it.openutils.migration.task.setup.BaseDbTask
description
 
Constructor Summary
SqlServerProcedureCreateOrUpdateTask()
           
 
Method Summary
 void execute(javax.sql.DataSource dataSource)
          Execute this db task.
 
Methods inherited from class it.openutils.migration.task.setup.GenericConditionalTask
check, getCheck, getDescription, setCheck, setSourceDb, setTriggerValue
 
Methods inherited from class it.openutils.migration.task.setup.BaseConditionalTask
objectNameFromFileName, performSubstitution, setDdl, setDdlScript, setNot, setScripts
 
Methods inherited from class it.openutils.migration.task.setup.BaseDbTask
setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlServerProcedureCreateOrUpdateTask

public SqlServerProcedureCreateOrUpdateTask()
Method Detail

execute

public void execute(javax.sql.DataSource dataSource)
Execute this db task.

Specified by:
execute in interface DbTask
Overrides:
execute in class BaseConditionalTask
Parameters:
dataSource - javax.sql.datasource


Copyright © 2008 Openmind. All Rights Reserved.