Package edu.ie3.datamodel.io.source.sql
Class SqlTimeSeriesMappingSource
java.lang.Object
edu.ie3.datamodel.io.source.sql.SqlDataSource<TimeSeriesMappingSource.MappingEntry>
edu.ie3.datamodel.io.source.sql.SqlTimeSeriesMappingSource
- All Implemented Interfaces:
DataSource
,TimeSeriesMappingSource
public class SqlTimeSeriesMappingSource
extends SqlDataSource<TimeSeriesMappingSource.MappingEntry>
implements TimeSeriesMappingSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.ie3.datamodel.io.source.TimeSeriesMappingSource
TimeSeriesMappingSource.MappingEntry
-
Field Summary
Fields inherited from class edu.ie3.datamodel.io.source.sql.SqlDataSource
log
-
Constructor Summary
ConstructorDescriptionSqlTimeSeriesMappingSource
(SqlConnector connector, String schemaName, EntityPersistenceNamingStrategy entityPersistenceNamingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<TimeSeriesMappingSource.MappingEntry>
createEntity
(Map<String, String> fieldToValues) Instantiates an entity produced by this source given the required field value map.getTimeSeriesMetaInformation
(UUID timeSeriesUuid) Deprecated, for removal: This API element is subject to removal in a future version.since 3.0.Methods inherited from class edu.ie3.datamodel.io.source.sql.SqlDataSource
createBaseQueryString, executeQuery, getDbColumnName, getDbTables
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.ie3.datamodel.io.source.TimeSeriesMappingSource
getTimeSeriesUuid
-
Constructor Details
-
SqlTimeSeriesMappingSource
public SqlTimeSeriesMappingSource(SqlConnector connector, String schemaName, EntityPersistenceNamingStrategy entityPersistenceNamingStrategy)
-
-
Method Details
-
getMapping
Description copied from interface:TimeSeriesMappingSource
- Specified by:
getMapping
in interfaceTimeSeriesMappingSource
- Returns:
- That mapping
-
getTimeSeriesMetaInformation
@Deprecated(since="3.0", forRemoval=true) public Optional<IndividualTimeSeriesMetaInformation> getTimeSeriesMetaInformation(UUID timeSeriesUuid) Deprecated, for removal: This API element is subject to removal in a future version.since 3.0. UseSqlTimeSeriesMetaInformationSource.getTimeSeriesMetaInformation()
insteadDescription copied from interface:TimeSeriesMappingSource
Get an option on the given time series meta information- Specified by:
getTimeSeriesMetaInformation
in interfaceTimeSeriesMappingSource
- Parameters:
timeSeriesUuid
- Unique identifier of the time series in question- Returns:
- An Option onto the meta information
-
createEntity
protected Optional<TimeSeriesMappingSource.MappingEntry> createEntity(Map<String, String> fieldToValues) Description copied from class:SqlDataSource
Instantiates an entity produced by this source given the required field value map.- Specified by:
createEntity
in classSqlDataSource<TimeSeriesMappingSource.MappingEntry>
- Parameters:
fieldToValues
- map of fields to their respective values- Returns:
- the entity if instantiation succeeds
-