|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.change.AbstractChange
liquibase.change.AbstractSQLChange
liquibase.change.SQLFileChange
public class SQLFileChange
Represents a Change for custom SQL stored in a File. To create an instance call the constructor as normal and then call
| Constructor Summary | |
|---|---|
SQLFileChange()
|
|
| Method Summary | |
|---|---|
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 |
java.util.Set<DatabaseObject> |
getAffectedDatabaseObjects()
|
java.lang.String |
getConfirmationMessage()
Confirmation message to be displayed after the change is executed |
java.lang.String |
getEncoding()
The encoding of the file containing SQL statements |
java.lang.String |
getMD5Sum()
Calculates an MD5 from the contents of the file. |
java.lang.String |
getPath()
|
void |
setEncoding(java.lang.String encoding)
|
void |
setPath(java.lang.String fileName)
Sets the file name but setUp must be called for the change to have impact. |
void |
setUp()
Most Changes don't need to do any setup. |
| Methods inherited from class liquibase.change.AbstractSQLChange |
|---|
generateStatements, getEndDelimiter, getSql, isSplittingStatements, isStrippingComments, setEndDelimiter, setSplitStatements, setSql, setStripComments, validate |
| Methods inherited from class liquibase.change.AbstractChange |
|---|
canRollBack, createInverses, executeRollbackStatements, executeStatements, generateRollbackStatements, getChangeName, getChangeSet, getFileOpener, getTagName, saveRollbackStatement, saveStatements, setChangeSet, setFileOpener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLFileChange()
| Method Detail |
|---|
public java.lang.String getPath()
public void setPath(java.lang.String fileName)
fileName - The file to usepublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the encoding to set
public void setUp()
throws SetupException
AbstractChange
setUp in interface ChangesetUp in class AbstractChangeSetupExceptionpublic java.lang.String getMD5Sum()
getMD5Sum in interface ChangegetMD5Sum in class AbstractChangeAbstractChange.getMD5Sum()public 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.lang.String getConfirmationMessage()
Change
String containing the message after the change is executedpublic java.util.Set<DatabaseObject> getAffectedDatabaseObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||