Liferay 6.2.0-ce-m5

com.liferay.portal.tools.samplesqlbuilder
Class SampleSQLBuilder

java.lang.Object
  extended by com.liferay.portal.tools.samplesqlbuilder.SampleSQLBuilder

public class SampleSQLBuilder
extends Object


Constructor Summary
SampleSQLBuilder(Map<String,String> arguments)
           
 
Method Summary
protected  void compressInsertSQL(String insertSQL)
           
protected  void compressSQL(Reader reader)
           
protected  Writer createFileWriter(File file)
           
protected  Writer createFileWriter(String fileName)
           
protected  Writer createUnsyncBufferedWriter(Writer writer)
           
protected  void generateSQL(CharPipe charPipe)
           
protected  Map<String,Object> getContext()
           
protected  File getInsertSQLFile(String tableName)
           
static void main(String[] args)
           
protected  void mergeSQL()
           
protected  void processTemplate(String name, Map<String,Object> context)
           
protected  void put(Map<String,Object> context, String key, Object value)
           
protected  void writeToInsertSQLFile(String tableName, String sql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleSQLBuilder

public SampleSQLBuilder(Map<String,String> arguments)
                 throws Exception
Throws:
Exception
Method Detail

main

public static void main(String[] args)

compressInsertSQL

protected void compressInsertSQL(String insertSQL)
                          throws IOException
Throws:
IOException

compressSQL

protected void compressSQL(Reader reader)
                    throws IOException
Throws:
IOException

createFileWriter

protected Writer createFileWriter(File file)
                           throws IOException
Throws:
IOException

createFileWriter

protected Writer createFileWriter(String fileName)
                           throws IOException
Throws:
IOException

createUnsyncBufferedWriter

protected Writer createUnsyncBufferedWriter(Writer writer)

generateSQL

protected void generateSQL(CharPipe charPipe)

getContext

protected Map<String,Object> getContext()

getInsertSQLFile

protected File getInsertSQLFile(String tableName)

mergeSQL

protected void mergeSQL()
                 throws IOException
Throws:
IOException

processTemplate

protected void processTemplate(String name,
                               Map<String,Object> context)
                        throws Exception
Throws:
Exception

put

protected void put(Map<String,Object> context,
                   String key,
                   Object value)

writeToInsertSQLFile

protected void writeToInsertSQLFile(String tableName,
                                    String sql)
                             throws IOException
Throws:
IOException

Liferay 6.2.0-ce-m5