com.liferay.portal.tools.samplesqlbuilder
Class SampleSQLBuilder
java.lang.Object
com.liferay.portal.tools.samplesqlbuilder.SampleSQLBuilder
public class SampleSQLBuilder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleSQLBuilder
public SampleSQLBuilder(Map<String,String> arguments)
throws Exception
- Throws:
Exception
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