liquibase.change
Class LoadDataChange
java.lang.Object
liquibase.change.AbstractChange
liquibase.change.LoadDataChange
- All Implemented Interfaces:
- Change, ChangeWithColumns
public class LoadDataChange
- extends AbstractChange
- implements ChangeWithColumns
| Methods inherited from class liquibase.change.AbstractChange |
canRollBack, createInverses, executeRollbackStatements, executeStatements, generateRollbackStatements, getChangeName, getChangeSet, getFileOpener, getTagName, saveRollbackStatement, saveStatements, setChangeSet, setFileOpener, setUp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadDataChange
public LoadDataChange()
getSchemaName
public java.lang.String getSchemaName()
setSchemaName
public void setSchemaName(java.lang.String schemaName)
getTableName
public java.lang.String getTableName()
setTableName
public void setTableName(java.lang.String tableName)
getFile
public java.lang.String getFile()
setFile
public void setFile(java.lang.String file)
getEncoding
public java.lang.String getEncoding()
setEncoding
public void setEncoding(java.lang.String encoding)
addColumn
public void addColumn(ColumnConfig column)
- Specified by:
addColumn in interface ChangeWithColumns
validate
public void validate(Database database)
throws InvalidChangeDefinitionException
- Specified by:
validate in interface Change
- Throws:
InvalidChangeDefinitionException
generateStatements
public SqlStatement[] generateStatements(Database database)
throws UnsupportedChangeException
- Description copied from interface:
Change
- Generates the SQL statements required to run the change
- Specified by:
generateStatements in interface Change
- Parameters:
database - databasethe target Database associated to this change's statements
- Returns:
- an array of
Strings with the statements
- Throws:
UnsupportedChangeException - if this change is not supported by the Database passed as argument
getConfirmationMessage
public java.lang.String getConfirmationMessage()
- Description copied from interface:
Change
- Confirmation message to be displayed after the change is executed
- Specified by:
getConfirmationMessage in interface Change
- Returns:
- a
String containing the message after the change is executed
createNode
public org.w3c.dom.Element createNode(org.w3c.dom.Document currentChangeLogDOM)
- 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
- Specified by:
createNode in interface Change
- Parameters:
currentChangeLogDOM - the current Document where this element is being added
- Returns:
- the
Node object created
getAffectedDatabaseObjects
public java.util.Set<DatabaseObject> getAffectedDatabaseObjects()
- Specified by:
getAffectedDatabaseObjects in interface Change
getMD5Sum
public java.lang.String getMD5Sum()
- Description copied from interface:
Change
- Calculates the MD5 hash for the string representation of the XML element
of this change
- Specified by:
getMD5Sum in interface Change- Overrides:
getMD5Sum in class AbstractChange
- Returns:
- the MD5 hash
- See Also:
Change.getMD5Sum()