public class SQLTask extends AbstractTask
| Constructor and Description |
|---|
SQLTask() |
| Modifier and Type | Method and Description |
|---|---|
String |
getComment() |
String |
getIdentifier()
This String is used to identify a particular task.
|
String |
getSql() |
Target |
getTarget()
May return null of this Task is run for all targets.
|
Version |
getVersion()
returns the version this task belongs to
|
boolean |
isSchemaChange()
Schema changes are sort to run before any data change.
|
boolean |
runTask(Connection con) |
void |
setComment(String comment) |
void |
setIdentifier(String identifier) |
void |
setSchemaChange(boolean bool) |
void |
setSql(String sql) |
void |
setTarget(Target target) |
void |
setVersion(Version version) |
isRunpublic Target getTarget()
Taskpublic void setTarget(Target target)
public String getComment()
public void setComment(String comment)
public String getIdentifier()
TaskgetIdentifier in interface TaskgetIdentifier in class AbstractTaskpublic boolean isSchemaChange()
Taskpublic void setSchemaChange(boolean bool)
public void setIdentifier(String identifier)
public Version getVersion()
Taskpublic void setVersion(Version version)
public String getSql()
public boolean runTask(Connection con) throws SQLException
SQLException - if there was a problem executing.public void setSql(String sql)
Copyright © 2015. All rights reserved.