com.metamatrix.vdb.materialization
Class MaterializedViewScriptGeneratorImpl

java.lang.Object
  extended by com.metamatrix.vdb.materialization.MaterializedViewScriptGeneratorImpl
All Implemented Interfaces:
MaterializedViewScriptGenerator

public class MaterializedViewScriptGeneratorImpl
extends java.lang.Object
implements MaterializedViewScriptGenerator

Since:
4.2

Constructor Summary
MaterializedViewScriptGeneratorImpl(TemplateData materializedViewTemplateData)
          Default ctor.
 
Method Summary
 void generateMaterializationConnectionPropFile(java.io.OutputStream stream)
          Generate the connection properties file for all materialized views in a VDB and write it to the given stream.
 void generateMaterializationLoadScript(java.io.OutputStream stream)
          Generate the materialization load scripts for all materialized views in a VDB for the MetaMatrix platform and write them to the given stream.
 void generateMaterializationSwapScript(java.io.OutputStream stream, DatabaseDialect dialect)
          Generate the materialization rename scripts for all materialized views in a VDB for all supported RDBMS platforms and write them to the given stream.
 void generateMaterializationTruncateScript(java.io.OutputStream stream, DatabaseDialect dialect)
          Generate the materialization truncate scripts for all materialized views in a VDB for all supported RDBMS platforms and write them to the given stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaterializedViewScriptGeneratorImpl

public MaterializedViewScriptGeneratorImpl(TemplateData materializedViewTemplateData)
Default ctor.

Parameters:
materializedViewTemplateData - The template data for a materialization.
Since:
4.2
Method Detail

generateMaterializationTruncateScript

public void generateMaterializationTruncateScript(java.io.OutputStream stream,
                                                  DatabaseDialect dialect)
                                           throws java.io.IOException
Description copied from interface: MaterializedViewScriptGenerator
Generate the materialization truncate scripts for all materialized views in a VDB for all supported RDBMS platforms and write them to the given stream.

Specified by:
generateMaterializationTruncateScript in interface MaterializedViewScriptGenerator
Parameters:
stream - The stream that will contain all truncate scripts.
dialect - The type of RDBMS for which to generated the script.
Throws:
java.io.IOException
Since:
4.2
See Also:
MaterializedViewScriptGenerator.generateMaterializationTruncateScript(OutputStream, DatabaseDialect)

generateMaterializationLoadScript

public void generateMaterializationLoadScript(java.io.OutputStream stream)
                                       throws java.io.IOException
Description copied from interface: MaterializedViewScriptGenerator
Generate the materialization load scripts for all materialized views in a VDB for the MetaMatrix platform and write them to the given stream.

Specified by:
generateMaterializationLoadScript in interface MaterializedViewScriptGenerator
Parameters:
stream - The stream that will contain all load scripts.
Throws:
java.io.IOException - if an error occurs with the given stream or with any stream used internally to help with scipt generation.
Since:
4.2
See Also:
MaterializedViewScriptGenerator.generateMaterializationLoadScript(OutputStream)

generateMaterializationSwapScript

public void generateMaterializationSwapScript(java.io.OutputStream stream,
                                              DatabaseDialect dialect)
                                       throws java.io.IOException
Description copied from interface: MaterializedViewScriptGenerator
Generate the materialization rename scripts for all materialized views in a VDB for all supported RDBMS platforms and write them to the given stream.

Specified by:
generateMaterializationSwapScript in interface MaterializedViewScriptGenerator
Parameters:
stream - The stream that will contain all rename scripts.
dialect - The type of RDBMS for which to generated the script.
Throws:
java.io.IOException - if an error occurs with the given stream or with any stream used internally to help with scipt generation.
Since:
4.2
See Also:
MaterializedViewScriptGenerator.generateMaterializationSwapScript(OutputStream, DatabaseDialect)

generateMaterializationConnectionPropFile

public void generateMaterializationConnectionPropFile(java.io.OutputStream stream)
                                               throws java.io.IOException
Description copied from interface: MaterializedViewScriptGenerator
Generate the connection properties file for all materialized views in a VDB and write it to the given stream.

Specified by:
generateMaterializationConnectionPropFile in interface MaterializedViewScriptGenerator
Parameters:
stream - The stream that will contain the connection property file.
Throws:
java.io.IOException - if an error occurs with the given stream or with any stream used internally to help with file generation.
Since:
4.2
See Also:
MaterializedViewScriptGenerator.generateMaterializationConnectionPropFile(java.io.OutputStream)


Copyright © 2009. All Rights Reserved.