org.objectweb.jorm.mapper.rdb.lib
Interface RdbScriptWriter

All Known Implementing Classes:
RdbScriptPMSM

public interface RdbScriptWriter

This interface is used to generate the database creation script.

Author:
Y.Bersihand

Method Summary
 java.lang.String getFileName()
          Get the name of the file to generate.
 java.io.FileWriter getFileWriter()
           
 void init()
          Init the script writer: create the file.
 boolean isWriteScript()
          Return true if the script has to be written.
 void setFileName(java.lang.String fileName)
           
 void setWriteScript(boolean writeScript)
           
 

Method Detail

init

public void init()
          throws PException
Init the script writer: create the file.

Throws:
PException

isWriteScript

public boolean isWriteScript()
Return true if the script has to be written.


setWriteScript

public void setWriteScript(boolean writeScript)

getFileName

public java.lang.String getFileName()
Get the name of the file to generate.


setFileName

public void setFileName(java.lang.String fileName)

getFileWriter

public java.io.FileWriter getFileWriter()