BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.datasource.manager.impl.DataSourceManager Class Reference
Inheritance diagram for eu.baltrad.dex.datasource.manager.impl.DataSourceManager:
eu.baltrad.dex.datasource.manager.IDataSourceManager

Public Member Functions

 DataSourceManager ()
 
void setJdbcTemplate (JdbcOperations jdbcTemplate)
 
DataSource load (int id)
 
List< DataSourceload (String type)
 
DataSource load (String name, String type)
 
List< DataSourceload (int id, String type)
 
int store (DataSource dataSource)
 
int update (DataSource dataSource)
 
int delete (int id)
 
List< RadarloadRadar (int id)
 
int storeRadar (int dataSourceId, int radarId)
 
int deleteRadar (int dataSourceId)
 
List< FileObjectloadFileObject (int DataSourceId)
 
int storeFileObject (int dataSourceId, int fileObjectId)
 
int deleteFileObject (int dataSourceId)
 
List< UserloadUser (int DataSourceId)
 
int storeUser (int dataSourceId, int userId)
 
int deleteUser (int dataSourceId)
 
int loadFilterId (int dataSourceId)
 
int loadFilterId (String name, String type)
 
int storeFilter (int dataSourceId, int filterId)
 
int deleteFilter (int dataSourceId)
 
CombinedFilter createFilter (String wmoNumbers, String fileObjects)
 

Detailed Description

Data source manager.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.2.1
Since
1.2.1

Constructor & Destructor Documentation

◆ DataSourceManager()

eu.baltrad.dex.datasource.manager.impl.DataSourceManager.DataSourceManager ( )
inline

Constructor.

Member Function Documentation

◆ createFilter()

CombinedFilter eu.baltrad.dex.datasource.manager.impl.DataSourceManager.createFilter ( String wmoNumbers,
String fileObjects )
inline

Creates filter based on user selected parameters.

Parameters
wmoNumbersRadar's WMO numbers
fileObjectsFile object names
Returns
Filter object

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ delete()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.delete ( int id)
inline

Delete data source with a given id.

Parameters
idData source id
Returns
Number of deleted records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ deleteFileObject()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.deleteFileObject ( int dataSourceId)
inline

Delete file object parameter for a given data source id.

Parameters
dataSourceIdData source id
Returns
Number of deleted records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ deleteFilter()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.deleteFilter ( int dataSourceId)
inline

Delete user parameter for a given data source id.

Parameters
dataSourceIdData source id
Returns
Number of deleted records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ deleteRadar()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.deleteRadar ( int dataSourceId)
inline

Delete radar parameter for a given data source id.

Parameters
dataSourceIdData source id
Returns
Number of deleted records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ deleteUser()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.deleteUser ( int dataSourceId)
inline

Delete user parameter for a given data source id.

Parameters
dataSourceIdData source id
Returns
Number of deleted records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ load() [1/4]

DataSource eu.baltrad.dex.datasource.manager.impl.DataSourceManager.load ( int id)
inline

Load data source by id.

Parameters
idRecord id
Returns
Data source with a given id

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ load() [2/4]

List< DataSource > eu.baltrad.dex.datasource.manager.impl.DataSourceManager.load ( int id,
String type )
inline

Load data sources by user and type.

Parameters
idUser id
typeData source type
Returns
List of data sources for a given user.

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ load() [3/4]

DataSource eu.baltrad.dex.datasource.manager.impl.DataSourceManager.load ( String name,
String type )
inline

Load data source by name and type.

Parameters
idData source name
typeData source type
Returns
Data source with a matching name and type

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ load() [4/4]

List< DataSource > eu.baltrad.dex.datasource.manager.impl.DataSourceManager.load ( String type)
inline

Load data sources by type.

Returns
List of data sources of a given type

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ loadFileObject()

List< FileObject > eu.baltrad.dex.datasource.manager.impl.DataSourceManager.loadFileObject ( int DataSourceId)
inline

Get list of file objects for a given data source id.

Parameters
DataSourceIdData source id
Returns
List of file objects

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ loadFilterId() [1/2]

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.loadFilterId ( int dataSourceId)
inline

Load filter by data source id.

Parameters
dataSourceIdData source id
Returns
Filter id

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ loadFilterId() [2/2]

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.loadFilterId ( String name,
String type )
inline

Load filter by data source name and type matches

Parameters
namethe name of the data source
typethe type of the data source
Returns
the filter id

◆ loadRadar()

List< Radar > eu.baltrad.dex.datasource.manager.impl.DataSourceManager.loadRadar ( int id)
inline

Get list of radars for a given data source id.

Parameters
idData source id
Returns
List of radars

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ loadUser()

List< User > eu.baltrad.dex.datasource.manager.impl.DataSourceManager.loadUser ( int DataSourceId)
inline

Get list of user accounts for a given data source id.

Parameters
DataSourceIdData source id
Returns
List of users

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ setJdbcTemplate()

void eu.baltrad.dex.datasource.manager.impl.DataSourceManager.setJdbcTemplate ( JdbcOperations jdbcTemplate)
inline
Parameters
jdbcTemplatethe jdbcTemplate to set

◆ store()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.store ( DataSource dataSource)
inline

Store data source object in the db.

Parameters
dataSourceData source to store
Returns
Auto-generated record id

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ storeFileObject()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.storeFileObject ( int dataSourceId,
int fileObjectId )
inline

Save data source file object parameter.

Parameters
dataSourceIdData source id
fileObjectIdFile object id
Returns
Number of stored records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ storeFilter()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.storeFilter ( int dataSourceId,
int filterId )
inline

Save data source filter parameter.

Parameters
dataSourceIdData source id
filterIdFilter id
Returns
Number of stored records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ storeRadar()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.storeRadar ( int dataSourceId,
int radarId )
inline

Save data source radar parameter.

Parameters
dataSourceIdData source id
radarIdRadar id
Returns
Number of stored records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ storeUser()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.storeUser ( int dataSourceId,
int userId )
inline

Save data source user parameter.

Parameters
dataSourceIdData source id
userIdUser id
Returns
Number of stored records

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.

◆ update()

int eu.baltrad.dex.datasource.manager.impl.DataSourceManager.update ( DataSource dataSource)
inline

Update data source object in the db.

Parameters
dataSourceData source to store
Returns
Number of records updated

Implements eu.baltrad.dex.datasource.manager.IDataSourceManager.


The documentation for this class was generated from the following file: