com.metamatrix.server.admin.apiimpl
Class MaterializationLoadScriptsImpl

java.lang.Object
  extended by com.metamatrix.server.admin.apiimpl.MaterializationLoadScriptsImpl
All Implemented Interfaces:
MaterializationLoadScripts, java.io.Serializable

public class MaterializationLoadScriptsImpl
extends java.lang.Object
implements MaterializationLoadScripts, java.io.Serializable

Since:
4.2
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.metamatrix.server.admin.api.MaterializationLoadScripts
MaterializationLoadScripts.DatabaseType
 
Method Summary
 java.io.InputStream getConnectionPropsFileContents()
          Get the contents of the connection properties file.
 java.lang.String getConnectionPropsFileName()
          Get the file name the connection properties should be named.
 byte[] getConPropsFileContents()
           
 byte[] getCreateFileContents()
           
 java.io.InputStream getCreateScriptFile()
          Get a stream for the generated DDL script.
 java.lang.String getCreateScriptFileName()
          Get the file name the the DDL script should be named.
 byte[] getLoadFileContents()
           
 java.io.InputStream getLoadScriptFile()
          Get a stream of the generated load script.
 java.lang.String getLoadScriptFileName()
          Get the file name the the load script should be named.
 byte[] getSwapFileContents()
           
 java.io.InputStream getSwapScriptFile()
          Get a stream of the generated swap script.
 java.lang.String getSwapScriptFileName()
          Get the file name the the swap script should be named.
 byte[] getTruncateFileContents()
           
 java.io.InputStream getTruncateScriptFile()
          Get a stream of the generated truncate script.
 java.lang.String getTruncateScriptFileName()
          Get the file name the the truncate script should be named.
 void setConnectionPropsFile(java.lang.String conPropsFileName, byte[] conPropsFileContents)
           
 void setCreateScript(java.lang.String fileName, byte[] fileContents)
          Add the named file contents.
 void setLoadScript(java.lang.String fileName, byte[] fileContents)
          Add the named file contents.
 void setSwapScript(java.lang.String fileName, byte[] fileContents)
          Add the named file contents.
 void setTruncateScript(java.lang.String fileName, byte[] fileContents)
          Add the named file contents.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setLoadScript

public void setLoadScript(java.lang.String fileName,
                          byte[] fileContents)
Add the named file contents.

Parameters:
fileName - The file name this file should have when written.
fileContents - The contents of the file that will be written.
Since:
4.2

getLoadScriptFile

public java.io.InputStream getLoadScriptFile()
Description copied from interface: MaterializationLoadScripts
Get a stream of the generated load script.

NOTE: Client is responsible for closing the stream.

Specified by:
getLoadScriptFile in interface MaterializationLoadScripts
Returns:
Load script
Since:
4.2
See Also:
MaterializationLoadScripts.getLoadScriptFile()

getLoadScriptFileName

public java.lang.String getLoadScriptFileName()
Description copied from interface: MaterializationLoadScripts
Get the file name the the load script should be named.

Specified by:
getLoadScriptFileName in interface MaterializationLoadScripts
Returns:
Load script file name.
Since:
4.2
See Also:
MaterializationLoadScripts.getLoadScriptFileName()

setSwapScript

public void setSwapScript(java.lang.String fileName,
                          byte[] fileContents)
Add the named file contents.

Parameters:
fileName - The file name this file should have when written.
fileContents - The contents of the file that will be written.
Since:
4.2

getSwapScriptFile

public java.io.InputStream getSwapScriptFile()
Description copied from interface: MaterializationLoadScripts
Get a stream of the generated swap script.

NOTE: Client is responsible for closing the stream.

Specified by:
getSwapScriptFile in interface MaterializationLoadScripts
Returns:
Since:
4.2
See Also:
MaterializationLoadScripts.getSwapScriptFile()

getSwapScriptFileName

public java.lang.String getSwapScriptFileName()
Description copied from interface: MaterializationLoadScripts
Get the file name the the swap script should be named.

Specified by:
getSwapScriptFileName in interface MaterializationLoadScripts
Returns:
Swap script file name.
Since:
4.2
See Also:
MaterializationLoadScripts.getSwapScriptFileName()

setTruncateScript

public void setTruncateScript(java.lang.String fileName,
                              byte[] fileContents)
Add the named file contents.

Parameters:
fileName - The file name this file should have when written.
fileContents - The contents of the file that will be written.
Since:
4.2

getTruncateScriptFile

public java.io.InputStream getTruncateScriptFile()
Description copied from interface: MaterializationLoadScripts
Get a stream of the generated truncate script.

NOTE: Client is responsible for closing the stream.

Specified by:
getTruncateScriptFile in interface MaterializationLoadScripts
Returns:
Truncate script.
Since:
4.2
See Also:
MaterializationLoadScripts.getTruncateScriptFile()

getTruncateScriptFileName

public java.lang.String getTruncateScriptFileName()
Description copied from interface: MaterializationLoadScripts
Get the file name the the truncate script should be named.

Specified by:
getTruncateScriptFileName in interface MaterializationLoadScripts
Returns:
Truncate script file name.
Since:
4.2
See Also:
MaterializationLoadScripts.getTruncateScriptFileName()

setCreateScript

public void setCreateScript(java.lang.String fileName,
                            byte[] fileContents)
Add the named file contents.

Parameters:
fileName - The file name this file should have when written.
fileContents - The contents of the file that will be written.
Since:
4.2

getCreateScriptFile

public java.io.InputStream getCreateScriptFile()
Description copied from interface: MaterializationLoadScripts
Get a stream for the generated DDL script.

NOTE: Client is responsible for closing the stream.

Specified by:
getCreateScriptFile in interface MaterializationLoadScripts
Returns:
DDL script.
Since:
4.2
See Also:
com.metamatrix.server.admin.api.MaterializationDDLScript#getCreateScriptFile()

getCreateScriptFileName

public java.lang.String getCreateScriptFileName()
Description copied from interface: MaterializationLoadScripts
Get the file name the the DDL script should be named.

Specified by:
getCreateScriptFileName in interface MaterializationLoadScripts
Returns:
DDL script file name.
Since:
4.2
See Also:
com.metamatrix.server.admin.api.MaterializationDDLScript#getCreateScriptFileName()

getConnectionPropsFileContents

public java.io.InputStream getConnectionPropsFileContents()
Description copied from interface: MaterializationLoadScripts
Get the contents of the connection properties file.

Specified by:
getConnectionPropsFileContents in interface MaterializationLoadScripts
Returns:
Returns the conPropsFileContents.
Since:
4.2

getConnectionPropsFileName

public java.lang.String getConnectionPropsFileName()
Description copied from interface: MaterializationLoadScripts
Get the file name the connection properties should be named.

Specified by:
getConnectionPropsFileName in interface MaterializationLoadScripts
Returns:
Returns the conPropsFileName.
Since:
4.2

setConnectionPropsFile

public void setConnectionPropsFile(java.lang.String conPropsFileName,
                                   byte[] conPropsFileContents)
Parameters:
conPropsFileName - The conPropsFileName to set.
Since:
4.2

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Since:
4.2
See Also:
Object.toString()

getConPropsFileContents

public byte[] getConPropsFileContents()
Returns:
Returns the conPropsFileContents.
Since:
4.3

getCreateFileContents

public byte[] getCreateFileContents()
Returns:
Returns the createFileContents.
Since:
4.3

getLoadFileContents

public byte[] getLoadFileContents()
Returns:
Returns the loadFileContents.
Since:
4.3

getSwapFileContents

public byte[] getSwapFileContents()
Returns:
Returns the swapFileContents.
Since:
4.3

getTruncateFileContents

public byte[] getTruncateFileContents()
Returns:
Returns the truncateFileContents.
Since:
4.3


Copyright © 2009. All Rights Reserved.