|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.change.AbstractChange
liquibase.change.custom.CustomChangeWrapper
public class CustomChangeWrapper
Adapts CustomChange implementations to the standard change system used by LiquiBase. Custom change implementations should implement CustomSqlChange or CustomTaskChange
CustomSqlChange,
CustomTaskChange| Field Summary |
|---|
| Fields inherited from class liquibase.change.AbstractChange |
|---|
log |
| Constructor Summary | |
|---|---|
CustomChangeWrapper()
|
|
| Method Summary | |
|---|---|
boolean |
canRollBack()
Can this change be rolled back |
org.w3c.dom.Element |
createNode(org.w3c.dom.Document currentChangeLogDOM)
Creates an XML element (of type Node) of the change object, and adds it
to the Document object passed as argument |
SqlStatement[] |
generateRollbackStatements(Database database)
Generates the SQL statements required to roll back the change |
SqlStatement[] |
generateStatements(Database database)
Generates the SQL statements required to run the change |
java.util.Set<DatabaseObject> |
getAffectedDatabaseObjects()
|
java.lang.ClassLoader |
getClassLoader()
|
java.lang.String |
getConfirmationMessage()
Confirmation message to be displayed after the change is executed |
liquibase.change.custom.CustomChange |
getCustomChange()
|
void |
setClass(java.lang.String className)
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
void |
setParam(java.lang.String name,
java.lang.String value)
|
void |
validate(Database database)
|
| Methods inherited from class liquibase.change.AbstractChange |
|---|
createInverses, executeRollbackStatements, executeStatements, getChangeName, getChangeSet, getFileOpener, getMD5Sum, getTagName, saveRollbackStatement, saveStatements, setChangeSet, setFileOpener, setUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomChangeWrapper()
| Method Detail |
|---|
public liquibase.change.custom.CustomChange getCustomChange()
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public void setClass(java.lang.String className)
throws CustomChangeException
CustomChangeException
public void setParam(java.lang.String name,
java.lang.String value)
public void validate(Database database)
throws InvalidChangeDefinitionException
InvalidChangeDefinitionException
public SqlStatement[] generateStatements(Database database)
throws UnsupportedChangeException
Change
database - databasethe target Database associated to this change's statements
Strings with the statements
UnsupportedChangeException - if this change is not supported by the Database passed as argument
public SqlStatement[] generateRollbackStatements(Database database)
throws UnsupportedChangeException,
RollbackImpossibleException
Change
generateRollbackStatements in interface ChangegenerateRollbackStatements in class AbstractChangedatabase - database databasethe target Database associated to this change's rollback statements
Strings with the rollback statements
UnsupportedChangeException - if this change is not supported by the Database passed as argument
RollbackImpossibleException - if rollback is not supported for this changeChange.generateRollbackStatements(liquibase.database.Database)public boolean canRollBack()
Change
canRollBack in interface ChangecanRollBack in class AbstractChangeChange.canRollBack()public java.lang.String getConfirmationMessage()
Change
String containing the message after the change is executedpublic org.w3c.dom.Element createNode(org.w3c.dom.Document currentChangeLogDOM)
ChangeNode) of the change object, and adds it
to the Document object passed as argument
currentChangeLogDOM - the current Document where this element is being added
Node object createdpublic java.util.Set<DatabaseObject> getAffectedDatabaseObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||