Package net.simplace.core.database
Class HSQLListReader
java.lang.Object
net.simplace.core.io.AbstractDataReader
net.simplace.core.io.AbstractListReader
net.simplace.core.database.HSQLListReader
- Author:
- Andreas Enders Simple I/O and conversion methods for jFreeChart.
-
Field Summary
Fields inherited from class net.simplace.core.io.AbstractListReader
iSourceFields inherited from class net.simplace.core.io.AbstractDataReader
iColumnsData, iConfigData, iObservable -
Constructor Summary
ConstructorsConstructorDescriptionHSQLListReader(Object aSource, org.jdom2.Element aConfigData, Connection aConnection, String aTableName, FWObservable aObservable) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateTable(Vector<ColumnData> aColumnDatas) Creates new table in the database.static StringgetCanonicalForm(String aText) booleanprotected voidprocessList(String aOrientation) Methods inherited from class net.simplace.core.io.AbstractListReader
initColumnHeads, initTitle, readDataMethods inherited from class net.simplace.core.io.AbstractDataReader
getIntegerValue
-
Constructor Details
-
HSQLListReader
public HSQLListReader(Object aSource, org.jdom2.Element aConfigData, Connection aConnection, String aTableName, FWObservable aObservable) - Parameters:
aSource-aConfigData-aConnection-aTableName-aObservable-
-
-
Method Details
-
isTableCreated
public boolean isTableCreated()- Returns:
- true, if the Table was successfully created, otherwise returns false
-
createTable
Creates new table in the database. The name of table depends on file from which will be the data loaded.- Parameters:
aColumnDatas-- Throws:
SQLException
-
getCanonicalForm
- Parameters:
aText-- Returns:
- string which can be used for table name, column name, ... in a database based on passed attribute
-
processList
- Specified by:
processListin classAbstractListReader- Parameters:
aColumnsIndices-aColumnHeads-aRowHeadStartCol-aRowHeadEndCol-aOrientation-tLine-rowIdx-- Throws:
ExceptionIOException
-