Class HSQLAsciiReader


public class HSQLAsciiReader extends AbstractAsciiReader
Simple I/O and conversion methods for jFreeChart.
  • Constructor Details

    • HSQLAsciiReader

      public HSQLAsciiReader(File aSourceFile, org.jdom2.Element aConfigData, String aTabLen, String aSeperator, String aDefaultDateFormat, Connection aConnection, String aTableName, FWObservable aObservable)
      Parameters:
      aSourceFile -
      aConfigData -
      aTabLen -
      aSeperator -
      aDefaultDateFormat -
      aIsTableCreated -
      aConnection -
      aTableName -
      aObservable -
  • Method Details

    • isTableCreated

      public boolean isTableCreated()
      Returns:
      if Table was created
    • createTable

      public static void createTable(Connection aConnection, String aTableName, Vector<ColumnData> aColumnDatas, boolean aDropBeforeDelete)
      Creates new table in the database. The name of table depends on file from which will be the data loaded.
      Parameters:
      aConnection -
      aTableName -
      aColumnDatas -
      aDropBeforeDelete -
    • getCanonicalForm

      public static String getCanonicalForm(String aText)
      Parameters:
      aText -
      Returns:
      string which can be used for table name, column name, ... in a database based on passed attribute
    • processLineOfFile

      protected void processLineOfFile(String aOrientation, String aLine, int aRowIdx) throws Exception
      Specified by:
      processLineOfFile in class AbstractAsciiReader
      Parameters:
      aOrientation -
      aLine -
      aRowIdx -
      Throws:
      Exception
      IOException