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, iTabLenFields inherited from class net.simplace.core.io.AbstractDataReader
iColumnsData, iConfigData, iObservable -
Constructor Summary
ConstructorsConstructorDescriptionHSQLAsciiReader(File aSourceFile, org.jdom2.Element aConfigData, String aTabLen, String aSeperator, String aDefaultDateFormat, Connection aConnection, String aTableName, FWObservable aObservable) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateTable(Connection aConnection, String aTableName, Vector<ColumnData> aColumnDatas, boolean aDropBeforeDelete) Creates new table in the database.static StringgetCanonicalForm(String aText) booleanprotected voidprocessLineOfFile(String aOrientation, String aLine, int aRowIdx) Methods inherited from class net.simplace.core.io.AbstractAsciiReader
getStringParameter, getTitle, initColumnHeads, initTitle, readData, setTitleMethods 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:
processLineOfFilein classAbstractAsciiReader- Parameters:
aOrientation-aLine-aRowIdx-- Throws:
ExceptionIOException
-