org.sql.generation.api.grammar.builders.definition
Interface ViewDefinitionBuilder

All Superinterfaces:
AbstractBuilder<ViewDefinition>

public interface ViewDefinitionBuilder
extends AbstractBuilder<ViewDefinition>

This is a builder for CREATE VIEW statements.

Author:
Stanislav Muhametsin
See Also:
ViewDefinition

Method Summary
 QueryExpression getQueryExpression()
          Returns the query for the view.
 ViewCheckOption getViewCheckOption()
          Returns the view check option.
 TableNameDirect getViewName()
          Returns the name of the view.
 ViewSpecification getViewSpecification()
          Returns the view specification.
 Boolean isRecursive()
          Returns whether this view is to be RECURSIVE.
 ViewDefinitionBuilder setQuery(QueryExpression query)
          Sets the query for this view.
 ViewDefinitionBuilder setRecursive(Boolean isRecursive)
          Sets whether this view is RECURSIVE.
 ViewDefinitionBuilder setViewCheckOption(ViewCheckOption viewCheck)
          Sets the view check option for this view.
 ViewDefinitionBuilder setViewName(TableNameDirect viewName)
          Sets the name for this view.
 ViewDefinitionBuilder setViewSpecification(ViewSpecification spec)
          Sets the view specification for this view.
 
Methods inherited from interface org.sql.generation.api.grammar.builders.AbstractBuilder
createExpression
 

Method Detail

setRecursive

ViewDefinitionBuilder setRecursive(Boolean isRecursive)
Sets whether this view is RECURSIVE.

Parameters:
isRecursive - True if view is to be RECURSIVE; false otherwise.
Returns:
This builder.

setViewName

ViewDefinitionBuilder setViewName(TableNameDirect viewName)
Sets the name for this view.

Parameters:
viewName - The name for this view.
Returns:
This builder.

setQuery

ViewDefinitionBuilder setQuery(QueryExpression query)
Sets the query for this view.

Parameters:
query - The query for this view.
Returns:
This builder.

setViewCheckOption

ViewDefinitionBuilder setViewCheckOption(ViewCheckOption viewCheck)
Sets the view check option for this view.

Parameters:
viewCheck - The view check option for this view.
Returns:
This builder.
See Also:
ViewCheckOption

setViewSpecification

ViewDefinitionBuilder setViewSpecification(ViewSpecification spec)
Sets the view specification for this view. Typically is a list of columns (via RegularViewSpecification).

Parameters:
spec - The view specification.
Returns:
This builder.
See Also:
ViewSpecification

isRecursive

Boolean isRecursive()
Returns whether this view is to be RECURSIVE.

Returns:
True if this view is to be RECURSIVE; false otherwise.

getViewName

TableNameDirect getViewName()
Returns the name of the view.

Returns:
The name of the view.

getQueryExpression

QueryExpression getQueryExpression()
Returns the query for the view.

Returns:
The query for the view.

getViewCheckOption

ViewCheckOption getViewCheckOption()
Returns the view check option.

Returns:
The view check option.
See Also:
ViewCheckOption

getViewSpecification

ViewSpecification getViewSpecification()
Returns the view specification. Typically is a list of columns (via RegularViewSpecification).

Returns:
The view specification.


Copyright © 2010-2012. All Rights Reserved.