|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.openutils.migration.task.setup.BaseDbTask
it.openutils.migration.task.setup.BaseConditionalTask
it.openutils.migration.task.setup.GenericConditionalTask
public class GenericConditionalTask
A siple update task that executes a query and apply a DDL only if the query retuns a certain value (by default
0)
| Field Summary | |
|---|---|
protected java.lang.String |
check
Query for the check condition. |
protected java.lang.Integer |
triggerValue
The value that will let the ddl script start. |
| 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 | |
|---|---|
GenericConditionalTask()
|
|
| Method Summary | |
|---|---|
boolean |
check(org.springframework.jdbc.core.simple.SimpleJdbcTemplate jdbcTemplate)
Subclasses need to override this method and provide specific checks. |
java.lang.String |
getCheck()
Returns the check. |
java.lang.String |
getDescription()
Returns a description for this task |
void |
setCheck(java.lang.String name)
|
void |
setSourceDb(java.lang.String sourceDb)
Deprecated. |
void |
setTriggerValue(java.lang.Integer triggerValue)
Sets the triggerValue. |
| Methods inherited from class it.openutils.migration.task.setup.BaseConditionalTask |
|---|
execute, 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 |
| Field Detail |
|---|
protected java.lang.String check
protected java.lang.Integer triggerValue
0.
| Constructor Detail |
|---|
public GenericConditionalTask()
| Method Detail |
|---|
public final void setCheck(java.lang.String name)
public java.lang.String getCheck()
public final void setTriggerValue(java.lang.Integer triggerValue)
triggerValue - the triggerValue to setpublic java.lang.String getDescription()
getDescription in interface DbTaskgetDescription in class BaseConditionalTaskpublic boolean check(org.springframework.jdbc.core.simple.SimpleJdbcTemplate jdbcTemplate)
check in class BaseConditionalTaskjdbcTemplate - SimpleJdbcTemplate
@Deprecated public final void setSourceDb(java.lang.String sourceDb)
sourceDb - the sourceDb to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||