com.tekann.codegen.pda.util
Class SQLFileParser

java.lang.Object
  extended by com.tekann.codegen.pda.util.SQLFileParser

public class SQLFileParser
extends java.lang.Object

Parser the file in the DBToPDAScript library, filling the tables.

Author:
Evandro Rathke

Field Summary
static boolean LOG
          Log file content.
 
Constructor Summary
SQLFileParser()
           
 
Method Summary
static java.lang.String[] parseSQL(byte[] sqlFileContent)
          Parses the sqlFileContent
static java.lang.String[] parseSQL(byte[] sqlFileContent, char lineSeparator)
          Parses the sqlFileContent splitting according to the passed lineSeparator
static java.lang.Object[] parseSQL(java.lang.String sqlFileName)
          Parse the file and returns an array of queries.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static boolean LOG
Log file content.

Constructor Detail

SQLFileParser

public SQLFileParser()
Method Detail

parseSQL

public static java.lang.String[] parseSQL(byte[] sqlFileContent)
Parses the sqlFileContent

Parameters:
sqlFileContent -
Returns:
A String array

parseSQL

public static java.lang.String[] parseSQL(byte[] sqlFileContent,
                                          char lineSeparator)
Parses the sqlFileContent splitting according to the passed lineSeparator

Parameters:
sqlFileContent -
lineSeparator -
Returns:
A String array

parseSQL

public static java.lang.Object[] parseSQL(java.lang.String sqlFileName)
Parse the file and returns an array of queries.

Parameters:
sqlFileName -
Returns:
An array of queries.