Package liquibase.statement.core
Class CreateViewStatement
- java.lang.Object
-
- liquibase.statement.AbstractSqlStatement
-
- liquibase.statement.core.CreateViewStatement
-
- All Implemented Interfaces:
SqlStatement
public class CreateViewStatement extends AbstractSqlStatement
-
-
Field Summary
-
Fields inherited from interface liquibase.statement.SqlStatement
EMPTY_SQL_STATEMENT
-
-
Constructor Summary
Constructors Constructor Description CreateViewStatement(String catalogName, String schemaName, String viewName, String selectQuery, boolean replaceIfExists)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCatalogName()
String
getSchemaName()
String
getSelectQuery()
String
getViewName()
boolean
isFullDefinition()
Returns the property "Does the statement contain a full CREATE [OR REPLACE] VIEW ...boolean
isReplaceIfExists()
CreateViewStatement
setFullDefinition(boolean fullDefinition)
Sets the property "Does the statement contain a full CREATE [OR REPLACE] VIEW ...-
Methods inherited from class liquibase.statement.AbstractSqlStatement
continueOnError, setContinueOnError, skipOnUnsupported
-
-
-
-
Method Detail
-
getCatalogName
public String getCatalogName()
-
getSchemaName
public String getSchemaName()
-
getViewName
public String getViewName()
-
getSelectQuery
public String getSelectQuery()
-
isReplaceIfExists
public boolean isReplaceIfExists()
-
isFullDefinition
public boolean isFullDefinition()
Returns the property "Does the statement contain a full CREATE [OR REPLACE] VIEW ... AS..." command (true), or just the view definition (SELECT ... FROM data_sources...) (false)?- Returns:
- true if a complete CREATE ... VIEW statement is included, false if not.
-
setFullDefinition
public CreateViewStatement setFullDefinition(boolean fullDefinition)
Sets the property "Does the statement contain a full CREATE [OR REPLACE] VIEW ... AS..." command (true), or just the view definition (SELECT ... FROM data_sources...) (false)?- Parameters:
fullDefinition
- true if a CREATE ... VIEW statement is included, false if not.- Returns:
- the same, altered object
-
-