it.openutils.migration.sqlserver
Class SqlServerFunctionCreateOrUpdateTask

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.SqlServerFunctionCreateOrUpdateTask
All Implemented Interfaces:
DbTask

public class SqlServerFunctionCreateOrUpdateTask
extends GenericConditionalTask

Compares the function 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: SqlServerFunctionCreateOrUpdateTask.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
SqlServerFunctionCreateOrUpdateTask()
           
 
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

SqlServerFunctionCreateOrUpdateTask

public SqlServerFunctionCreateOrUpdateTask()
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.