com.metamatrix.vdb.materialization
Class ScriptDecorator
java.lang.Object
com.metamatrix.vdb.materialization.ScriptDecorator
public class ScriptDecorator
- extends java.lang.Object
This class modifies the DDL, which generated of the VDB. Sometimes like in the
Materialization Model, we need to add extra specific DDL statements into the
original DDL, which are not generated by default. This class used as
Intercepter after the generation, before saving, so that proper DDL can be
generated for any purpose.
Method Summary |
byte[] |
modifyDDL(java.lang.String name,
byte[] orignalContent)
Add the custom extensions or modify the original DDL script
into a customized format based on the database type supplied. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptDecorator
public ScriptDecorator()
modifyDDL
public byte[] modifyDDL(java.lang.String name,
byte[] orignalContent)
- Add the custom extensions or modify the original DDL script
into a customized format based on the database type supplied.
- Parameters:
dbType
- - Database StyleorignalContent
- - Byte stream of original DDL
- Returns:
- modified DDL, if custom extnsion needed, otherwise
original byte stream returned
Copyright © 2009. All Rights Reserved.