com.liferay.portal.tools.samplesqlbuilder
Class SampleSQLBuilder
java.lang.Object
com.liferay.portal.tools.samplesqlbuilder.SampleSQLBuilder
public class SampleSQLBuilder
- extends Object
Method Summary |
protected void |
compressSQL(DB db,
File directory,
Map<String,Writer> insertSQLWriters,
Map<String,StringBundler> sqls,
String insertSQL)
|
protected void |
compressSQL(Reader reader,
File dir)
|
protected Writer |
createFileWriter(File file)
|
protected Writer |
createUnsyncBufferedWriter(Writer writer)
|
protected Reader |
generateSQL()
|
protected Map<String,Object> |
getContext()
|
protected Properties |
getProperties(String[] args)
|
static void |
main(String[] args)
|
protected void |
mergeSQL(File inputDir,
File outputSQLFile)
|
protected void |
mergeSQL(File inputFile,
FileChannel outputFileChannel)
|
protected void |
writeToInsertSQLFile(File dir,
String tableName,
Map<String,Writer> insertSQLWriters,
String insertSQL)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleSQLBuilder
public SampleSQLBuilder(Properties properties,
DataFactory dataFactory)
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
compressSQL
protected void compressSQL(DB db,
File directory,
Map<String,Writer> insertSQLWriters,
Map<String,StringBundler> sqls,
String insertSQL)
throws IOException
- Throws:
IOException
compressSQL
protected void compressSQL(Reader reader,
File dir)
throws IOException
- Throws:
IOException
createFileWriter
protected Writer createFileWriter(File file)
throws IOException
- Throws:
IOException
createUnsyncBufferedWriter
protected Writer createUnsyncBufferedWriter(Writer writer)
generateSQL
protected Reader generateSQL()
getContext
protected Map<String,Object> getContext()
throws Exception
- Throws:
Exception
getProperties
protected Properties getProperties(String[] args)
throws Exception
- Throws:
Exception
mergeSQL
protected void mergeSQL(File inputDir,
File outputSQLFile)
throws IOException
- Throws:
IOException
mergeSQL
protected void mergeSQL(File inputFile,
FileChannel outputFileChannel)
throws IOException
- Throws:
IOException
writeToInsertSQLFile
protected void writeToInsertSQLFile(File dir,
String tableName,
Map<String,Writer> insertSQLWriters,
String insertSQL)
throws IOException
- Throws:
IOException