Package adams.db.h2
Class SpectrumT
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.db.generic.SQL
-
- adams.db.AbstractTable
-
- adams.db.AbstractIndexedTable
-
- adams.db.generic.SpectrumT
-
- adams.db.h2.SpectrumT
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,adams.db.DatabaseConnectionProvider
,adams.db.DatabaseConnectionUser
,adams.db.DataProvider<Spectrum>
,SpectrumIntf
,adams.db.SQLIntf
,adams.db.TableInterface
,adams.event.DatabaseConnectionChangeListener
,Serializable
public class SpectrumT extends SpectrumT
H2 implementation.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static adams.db.TableManager<SpectrumT>
m_TableManager
the table manager.-
Fields inherited from class adams.db.generic.SpectrumT
m_BulkAddStopped
-
Fields inherited from class adams.db.AbstractTable
FILENAME, m_AnsiQuotes, m_Properties, m_TableName
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from interface adams.db.SpectrumIntf
MAX_NUM_SPECTRUMS_CACHED, TABLE_NAME
-
-
Constructor Summary
Constructors Constructor Description SpectrumT(adams.db.AbstractDatabaseConnection dbcon)
Constructor - initalise with database connection.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SampleDataIntf
getSampleDataHandler()
Returns the corresponding SampleData handler.static SpectrumIntf
getSingleton(adams.db.AbstractDatabaseConnection dbcon)
Returns the singleton of the table (active).static void
initTable(adams.db.AbstractDatabaseConnection dbcon)
Initializes the table.-
Methods inherited from class adams.db.generic.SpectrumT
add, add, addQuery, bulkAdd, exists, exists, exists, getColumnMapping, getDatabaseID, getDatabaseID, getIndices, getValues, getValues, getValues, init, load, load, load, loadFromDB, loadFromDB, loadRaw, loadRaw, pointsToString, remove, remove, remove, resultsetToSpectrum, stopBulkAdd
-
Methods inherited from class adams.db.AbstractIndexedTable
columnsMatch, columnsMatchTest, create, getAllColumns, getTables, initTables, isThere, postCreate, select, select, selectDistinct, selectDistinct, truncate, update
-
Methods inherited from class adams.db.AbstractTable
columnExists, databaseConnectionStateChanged, getProperties, getQueries, getTableName, isEnabled, quoteName, tableExists, toString, useAnsiQuotes
-
Methods inherited from class adams.db.generic.SQL
columnExists, doSelect, drop, execute, executeGeneratedKeys, getDatabaseConnection, getDebug, getMaxColumnNameLength, getResultSet, getSimpleResultSet, prepareStatement, prepareStatement, prepareStatement, select, selectDistinct, selectDouble, selectInt, selectLong, selectString, selectStrings, setDebug, singleton, tableExists, truncate, update, updatePrefix, updateTableName
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_TableManager
protected static adams.db.TableManager<SpectrumT> m_TableManager
the table manager.
-
-
Method Detail
-
getSampleDataHandler
public SampleDataIntf getSampleDataHandler()
Returns the corresponding SampleData handler.- Returns:
- the corresponding handler
-
initTable
public static void initTable(adams.db.AbstractDatabaseConnection dbcon)
Initializes the table. Used by the "InitializeTables" tool.- Parameters:
dbcon
- the database context
-
getSingleton
public static SpectrumIntf getSingleton(adams.db.AbstractDatabaseConnection dbcon)
Returns the singleton of the table (active).- Parameters:
dbcon
- the database connection to get the singleton for- Returns:
- the singleton
-
-