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
iSource
Fields inherited from class net.simplace.core.io.AbstractDataReader
iColumnsData, iConfigData, iObservable
-
Constructor Summary
ConstructorDescriptionHSQLListReader
(Object aSource, org.jdom2.Element aConfigData, Connection aConnection, String aTableName, FWObservable aObservable) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createTable
(Vector<ColumnData> aColumnDatas) Creates new table in the database.static String
getCanonicalForm
(String aText) boolean
protected void
processList
(String aOrientation) Methods inherited from class net.simplace.core.io.AbstractListReader
initColumnHeads, initTitle, readData
Methods 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:
processList
in classAbstractListReader
- Parameters:
aColumnsIndices
-aColumnHeads
-aRowHeadStartCol
-aRowHeadEndCol
-aOrientation
-tLine
-rowIdx
-- Throws:
Exception
IOException
-