ch.sahits.codegen.sql.generator
Class JDBCSQLInsertScriptGenerator

java.lang.Object
  extended by ch.sahits.codegen.sql.generator.JDBCSQLInsertScriptGenerator
All Implemented Interfaces:
ISQLInsertScriptGenerator

public final class JDBCSQLInsertScriptGenerator
extends java.lang.Object
implements ISQLInsertScriptGenerator

This class handles the generation of the insert skript based on the defined model

Author:
Andi Hotz

Constructor Summary
JDBCSQLInsertScriptGenerator(InsertScriptWizardModel model)
          Constructor initializing the model
 
Method Summary
 java.io.InputStream getInsertScriptAsInputStream()
          Retrieve the insert script contents as an input stream to be read from
 java.lang.String getInsertScriptAsString()
          Retrieve the insert script data as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCSQLInsertScriptGenerator

public JDBCSQLInsertScriptGenerator(InsertScriptWizardModel model)
Constructor initializing the model

Parameters:
model - to be used
Method Detail

getInsertScriptAsString

public java.lang.String getInsertScriptAsString()
                                         throws java.sql.SQLException
Retrieve the insert script data as a string

Specified by:
getInsertScriptAsString in interface ISQLInsertScriptGenerator
Returns:
insert statements
Throws:
java.sql.SQLException
See Also:
ISQLInsertScriptGenerator.getInsertScriptAsString()

getInsertScriptAsInputStream

public java.io.InputStream getInsertScriptAsInputStream()
                                                 throws java.sql.SQLException
Retrieve the insert script contents as an input stream to be read from

Specified by:
getInsertScriptAsInputStream in interface ISQLInsertScriptGenerator
Returns:
Input stream
Throws:
java.sql.SQLException