ch.sahits.codegen.sql.generator
Interface ISQLInsertScriptGenerator

All Known Implementing Classes:
JDBCSQLInsertScriptGenerator

public interface ISQLInsertScriptGenerator

This interface defines the method that are needed for generating of a insert script

Author:
Andi Hotz

Method Summary
 java.io.InputStream getInsertScriptAsInputStream()
          Retrieve the insert script contents as an input stream to be read from
 java.lang.String getInsertScriptAsString()
          Generate the insert script as a string
 

Method Detail

getInsertScriptAsString

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

Returns:
insert statements
Throws:
java.sql.SQLException

getInsertScriptAsInputStream

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

Returns:
Input stream
Throws:
java.sql.SQLException