it.eng.qbe.model.views
Class ViewBuilder

java.lang.Object
  extended by it.eng.qbe.model.views.ViewBuilder

public class ViewBuilder
extends java.lang.Object

The Class ViewBuilder.

Author:
Andrea Gioia

Field Summary
static java.lang.String CREATE_VIEW_DDL_SCRIPT
          The Constant CREATE_VIEW_DDL_SCRIPT.
 
Constructor Summary
ViewBuilder()
           
 
Method Summary
 void buildView(java.lang.String viewName, java.lang.String query, java.sql.Connection connection, java.io.File templateScriptFile)
          Builds the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_VIEW_DDL_SCRIPT

public static final java.lang.String CREATE_VIEW_DDL_SCRIPT
The Constant CREATE_VIEW_DDL_SCRIPT.

See Also:
Constant Field Values
Constructor Detail

ViewBuilder

public ViewBuilder()
Method Detail

buildView

public void buildView(java.lang.String viewName,
                      java.lang.String query,
                      java.sql.Connection connection,
                      java.io.File templateScriptFile)
               throws java.sql.SQLException
Builds the view.

Parameters:
viewName - the view name
query - the query
connection - the connection
templateScriptFile - the template script file
Throws:
java.sql.SQLException - the SQL exception