it.openutils.migration.oracle
Class OraclePackageCreationTask

java.lang.Object
  extended by it.openutils.migration.oracle.OraclePackageCreationTask
All Implemented Interfaces:
DbTask

public class OraclePackageCreationTask
extends java.lang.Object
implements DbTask

Db tasks that handles the initial setup of packages.

Version:
$Id: OraclePackageCreationTask.java 777 2008-04-27 14:24:19Z fgiust $
Author:
quario

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> variables
           
 
Constructor Summary
OraclePackageCreationTask()
           
 
Method Summary
 void execute(javax.sql.DataSource dataSource)
          Execute this db task.
 java.lang.String getDescription()
          Returns a description for this task
protected  java.lang.String objectNameFromFileName(org.springframework.core.io.Resource script)
           
protected  java.lang.String performSubstitution(java.lang.String string)
          Perform sobstitution in the given string.
 void setScripts(java.util.List<org.springframework.core.io.Resource> packages)
          Sets the packages.
 void setSelectAllPackages(java.lang.String selectAllPackages)
          Sets the selectAllPackages.
 void setSelectUserPackages(java.lang.String selectUserPackages)
          Sets the selectUserPackages.
 void setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
          Map of key-value that will be replaced in ddl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variables

protected java.util.Map<java.lang.String,java.lang.String> variables
Constructor Detail

OraclePackageCreationTask

public OraclePackageCreationTask()
Method Detail

setScripts

public void setScripts(java.util.List<org.springframework.core.io.Resource> packages)
Sets the packages.

Parameters:
packages - the packages to set

setSelectAllPackages

public void setSelectAllPackages(java.lang.String selectAllPackages)
Sets the selectAllPackages.

Parameters:
selectAllPackages - the selectAllPackages to set

setSelectUserPackages

public void setSelectUserPackages(java.lang.String selectUserPackages)
Sets the selectUserPackages.

Parameters:
selectUserPackages - the selectUserPackages to set

setVariables

public void setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
Map of key-value that will be replaced in ddl.


getDescription

public java.lang.String getDescription()
Returns a description for this task

Specified by:
getDescription in interface DbTask
Returns:
task description

objectNameFromFileName

protected java.lang.String objectNameFromFileName(org.springframework.core.io.Resource script)
Parameters:
script - The script resource
Returns:
The script name

execute

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

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

performSubstitution

protected java.lang.String performSubstitution(java.lang.String string)
Perform sobstitution in the given string.

Parameters:
string - Original String
Returns:
processed string


Copyright © 2009 Openmind. All Rights Reserved.