liquibase.change
Class CreateViewChange

java.lang.Object
  extended by liquibase.change.AbstractChange
      extended by liquibase.change.CreateViewChange
All Implemented Interfaces:
Change

public class CreateViewChange
extends AbstractChange

Creats a new view.


Field Summary
 
Fields inherited from class liquibase.change.AbstractChange
log
 
Constructor Summary
CreateViewChange()
           
 
Method Summary
protected  Change[] createInverses()
           
 org.w3c.dom.Element createNode(org.w3c.dom.Document currentChangeLogFileDOM)
          Creates an XML element (of type Node) of the change object, and adds it to the Document object passed as argument
 SqlStatement[] generateStatements(Database database)
          Generates the SQL statements required to run the change
 java.util.Set<DatabaseObject> getAffectedDatabaseObjects()
           
 java.lang.String getConfirmationMessage()
          Confirmation message to be displayed after the change is executed
 java.lang.Boolean getReplaceIfExists()
           
 java.lang.String getSchemaName()
           
 java.lang.String getSelectQuery()
           
 java.lang.String getViewName()
           
 void setReplaceIfExists(java.lang.Boolean replaceIfExists)
           
 void setSchemaName(java.lang.String schemaName)
           
 void setSelectQuery(java.lang.String selectQuery)
           
 void setViewName(java.lang.String viewName)
           
 void validate(Database database)
           
 
Methods inherited from class liquibase.change.AbstractChange
canRollBack, 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
 

Constructor Detail

CreateViewChange

public CreateViewChange()
Method Detail

getSchemaName

public java.lang.String getSchemaName()

setSchemaName

public void setSchemaName(java.lang.String schemaName)

getViewName

public java.lang.String getViewName()

setViewName

public void setViewName(java.lang.String viewName)

getSelectQuery

public java.lang.String getSelectQuery()

setSelectQuery

public void setSelectQuery(java.lang.String selectQuery)

getReplaceIfExists

public java.lang.Boolean getReplaceIfExists()

setReplaceIfExists

public void setReplaceIfExists(java.lang.Boolean replaceIfExists)

validate

public void validate(Database database)
              throws InvalidChangeDefinitionException
Throws:
InvalidChangeDefinitionException

generateStatements

public SqlStatement[] generateStatements(Database database)
                                  throws UnsupportedChangeException
Description copied from interface: Change
Generates the SQL statements required to run the 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

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

createInverses

protected Change[] createInverses()
Overrides:
createInverses in class AbstractChange

getAffectedDatabaseObjects

public java.util.Set<DatabaseObject> getAffectedDatabaseObjects()