|
||||||||||
| 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.GenericConditionalTask
it.openutils.migration.sqlserver.SqlServerGenericAlterTask
public class SqlServerGenericAlterTask
This class is used for any alter task needed. The triggerValue is the value (only numeric) of result query that activates the alter script. Default is zero. Both the condition query and the alter query can be script or embedded in the xml.
| Constructor Summary | |
|---|---|
SqlServerGenericAlterTask()
|
|
| Method Summary | |
|---|---|
void |
execute(javax.sql.DataSource dataSource)
Execute this db task. |
java.lang.String |
getDescription()
Returns a description for this task |
void |
setCheckScript(org.springframework.core.io.Resource checkScript)
Sets the checkScript. |
void |
setDdl(java.lang.String ddl)
Sets the ddl. |
void |
setDdlScript(org.springframework.core.io.Resource ddlScript)
Sets the ddlScript. |
void |
setSourceDb(java.lang.String sourceDb)
Sets the sourceDb. |
void |
setTriggerValue(java.lang.Integer triggerValue)
Sets the triggerValue. |
| Methods inherited from class it.openutils.migration.task.setup.GenericConditionalTask |
|---|
getCheck, setCheck |
| 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 |
|---|
public SqlServerGenericAlterTask()
| Method Detail |
|---|
public void setCheckScript(org.springframework.core.io.Resource checkScript)
checkScript - the checkScript to setpublic void setDdl(java.lang.String ddl)
setDdl in class GenericConditionalTaskddl - the ddl to setpublic void setDdlScript(org.springframework.core.io.Resource ddlScript)
ddlScript - the ddlScript to setpublic void setTriggerValue(java.lang.Integer triggerValue)
triggerValue - the triggerValue to setpublic void setSourceDb(java.lang.String sourceDb)
sourceDb - the sourceDb to setpublic java.lang.String getDescription()
getDescription in interface DbTaskgetDescription in class BaseDbTaskpublic void execute(javax.sql.DataSource dataSource)
execute in interface DbTaskexecute in class GenericConditionalTaskdataSource - javax.sql.datasource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||