|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.openutils.migration.task.setup.GenericScriptBasedConditionalTask
public class GenericScriptBasedConditionalTask
| Field Summary | |
|---|---|
protected java.lang.String |
check
Check statement. |
protected java.lang.String |
description
Custom description. |
protected java.util.List<org.springframework.core.io.Resource> |
scripts
Script list to execute |
| Constructor Summary | |
|---|---|
GenericScriptBasedConditionalTask()
|
|
| 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)
|
void |
setCheck(java.lang.String check)
Sets the check. |
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setScripts(java.util.List<org.springframework.core.io.Resource> scripts)
Sets the scripts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<org.springframework.core.io.Resource> scripts
protected java.lang.String check
protected java.lang.String description
| Constructor Detail |
|---|
public GenericScriptBasedConditionalTask()
| Method Detail |
|---|
public void setScripts(java.util.List<org.springframework.core.io.Resource> scripts)
scripts - the scripts to setpublic void setCheck(java.lang.String check)
check - the check to setpublic void setDescription(java.lang.String description)
description - the description to setprotected java.lang.String objectNameFromFileName(org.springframework.core.io.Resource script)
script - The script resource
public java.lang.String getDescription()
getDescription in interface DbTaskpublic void execute(javax.sql.DataSource dataSource)
execute in interface DbTaskdataSource - javax.sql.datasource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||