liquibase.change
Class RawSQLChange
java.lang.Object
liquibase.change.AbstractChange
liquibase.change.AbstractSQLChange
liquibase.change.RawSQLChange
- All Implemented Interfaces:
- Change
public class RawSQLChange
- extends AbstractSQLChange
Allows execution of arbitrary SQL. This change can be used when existing changes are either don't exist,
are not flexible enough, or buggy.
| Methods inherited from class liquibase.change.AbstractChange |
canRollBack, createInverses, executeRollbackStatements, executeStatements, generateRollbackStatements, 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 |
RawSQLChange
public RawSQLChange()
RawSQLChange
public RawSQLChange(java.lang.String sql)
getComments
public java.lang.String getComments()
setComments
public void setComments(java.lang.String comments)
getConfirmationMessage
public java.lang.String getConfirmationMessage()
- Description copied from interface:
Change
- Confirmation message to be displayed after the change is executed
- Returns:
- a
String containing the message after the change is executed
createNode
public org.w3c.dom.Element createNode(org.w3c.dom.Document currentChangeLogFileDOM)
- Description copied from interface:
Change
- Creates an XML element (of type
Node) of the change object, and adds it
to the Document object passed as argument
- Parameters:
currentChangeLogFileDOM - the current Document where this element is being added
- Returns:
- the
Node object created
getAffectedDatabaseObjects
public java.util.Set<DatabaseObject> getAffectedDatabaseObjects()