com.metamatrix.vdb.materialization
Interface MaterializedViewScriptGenerator

All Known Implementing Classes:
MaterializedViewScriptGeneratorImpl

public interface MaterializedViewScriptGenerator

This generator creates the load and refresh scripts necessary to facilitate all Materialized Views in a VDB.

Since:
4.2

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.
 

Method Detail

generateMaterializationTruncateScript

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

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 - if an error occurs with the given stream or with any stream used internally to help with scipt generation.
Since:
4.2

generateMaterializationLoadScript

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

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

generateMaterializationSwapScript

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

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

generateMaterializationConnectionPropFile

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

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


Copyright © 2009. All Rights Reserved.