Package net.simplace.core.database
Class HSQLAsciiReader
java.lang.Object
net.simplace.core.io.AbstractDataReader
net.simplace.core.io.AbstractAsciiReader
net.simplace.core.database.HSQLAsciiReader
Simple I/O and conversion methods for
jFreeChart.
-
Field Summary
Fields inherited from class net.simplace.core.io.AbstractAsciiReader
iDefaultDateFormat, iSeperator, iSourceFile, iTabLen
Fields inherited from class net.simplace.core.io.AbstractDataReader
iColumnsData, iConfigData, iObservable
-
Constructor Summary
ConstructorDescriptionHSQLAsciiReader
(File aSourceFile, org.jdom2.Element aConfigData, String aTabLen, String aSeperator, String aDefaultDateFormat, Connection aConnection, String aTableName, FWObservable aObservable) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
createTable
(Connection aConnection, String aTableName, Vector<ColumnData> aColumnDatas, boolean aDropBeforeDelete) Creates new table in the database.static String
getCanonicalForm
(String aText) boolean
protected void
processLineOfFile
(String aOrientation, String aLine, int aRowIdx) Methods inherited from class net.simplace.core.io.AbstractAsciiReader
getStringParameter, getTitle, initColumnHeads, initTitle, readData, setTitle
Methods inherited from class net.simplace.core.io.AbstractDataReader
getIntegerValue
-
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
- Parameters:
aText
-- Returns:
- string which can be used for table name, column name, ... in a database based on passed attribute
-
processLineOfFile
- Specified by:
processLineOfFile
in classAbstractAsciiReader
- Parameters:
aOrientation
-aLine
-aRowIdx
-- Throws:
Exception
IOException
-