BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.db.manager.impl.BltFileManager Class Reference
Inheritance diagram for eu.baltrad.dex.db.manager.impl.BltFileManager:
eu.baltrad.dex.db.manager.IBltFileManager

Public Member Functions

 BltFileManager ()
 
IFilter loadFilter (String dsName, String type)
 
long count () throws DatabaseError
 
long count (String dsName) throws DatabaseError
 
long count (BltQueryParameter param) throws DatabaseError
 
List< BltFileload (String dsName, int offset, int limit) throws DatabaseError
 
BltFile load (String uuid) throws DatabaseError
 
List< String > loadDistinctRadarStations () throws DatabaseError
 
List< BltFileload (BltQueryParameter param) throws DatabaseError
 
void setFileCatalog (FileCatalog fileCatalog)
 
void setDataSourceManager (DataSourceManager dataSourceManager)
 
void setCoreFilterManager (CoreFilterManager coreFilterManager)
 
void setConfigurationManager (ConfigurationManager configurationManager)
 

Static Public Attributes

static final int ENTRIES_PER_PAGE = 16
 
static final int SCROLL_RANGE = 11
 

Detailed Description

Data manager - interacts with baltrad-db component.

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

Constructor & Destructor Documentation

◆ BltFileManager()

eu.baltrad.dex.db.manager.impl.BltFileManager.BltFileManager ( )
inline

Constructor

Member Function Documentation

◆ count() [1/3]

long eu.baltrad.dex.db.manager.impl.BltFileManager.count ( ) throws DatabaseError
inline

Count all entries in the database.

Returns
Total number of entries in the database.
Exceptions
DatabaseError

Implements eu.baltrad.dex.db.manager.IBltFileManager.

◆ count() [2/3]

long eu.baltrad.dex.db.manager.impl.BltFileManager.count ( BltQueryParameter param) throws DatabaseError
inline

Counts file entries matching criteria given by parameters.

Parameters
paramQuery parameters
Returns
Number of file entries matching giver criteria
Exceptions
DatabaseErrorIn case when file catalog is not available

Implements eu.baltrad.dex.db.manager.IBltFileManager.

◆ count() [3/3]

long eu.baltrad.dex.db.manager.impl.BltFileManager.count ( String dsName) throws DatabaseError
inline

Counts file entries from a given data source.

Parameters
dsNameData source name
Returns
Number of file entries.
Exceptions
DatabaseErrorIn case when file catalog is not available

Implements eu.baltrad.dex.db.manager.IBltFileManager.

◆ load() [1/3]

List< BltFile > eu.baltrad.dex.db.manager.impl.BltFileManager.load ( BltQueryParameter param) throws DatabaseError
inline

Fetches set of file entries matching criteria given by parameters.

Parameters
paramQuery parameters
Returns
Set of file entries matching given criteria
Exceptions
DatabaseErrorIn case when file catalog is not available

Implements eu.baltrad.dex.db.manager.IBltFileManager.

◆ load() [2/3]

List< BltFile > eu.baltrad.dex.db.manager.impl.BltFileManager.load ( String dsName,
int offset,
int limit ) throws DatabaseError
inline

Gets data set for a given data source.

Parameters
dsNameData source name
offsetDataset offset
limitDataset size limit
Returns
Dataset from a given data source
Exceptions
DatabaseErrorIn case when file catalog is not available

Implements eu.baltrad.dex.db.manager.IBltFileManager.

◆ load() [3/3]

BltFile eu.baltrad.dex.db.manager.impl.BltFileManager.load ( String uuid) throws DatabaseError
inline

Gets file entry with a given identity string.

Parameters
uuidFile entry's identity string
Returns
File entry with a given ID
Exceptions
DatabaseErrorIn case when file catalog is not available

Implements eu.baltrad.dex.db.manager.IBltFileManager.

◆ loadDistinctRadarStations()

List< String > eu.baltrad.dex.db.manager.impl.BltFileManager.loadDistinctRadarStations ( ) throws DatabaseError
inline

Gets distinct radar stations. Stations are discovered based on the content of data files saved in the local storage.

Returns
List containing distinct radar stations names.

Implements eu.baltrad.dex.db.manager.IBltFileManager.

◆ loadFilter()

IFilter eu.baltrad.dex.db.manager.impl.BltFileManager.loadFilter ( String dsName,
String type )
inline

Gets filter associated with a given data source.

Parameters
dsNameData source name
typeData source type
Returns
Filter associated with a given data source

Implements eu.baltrad.dex.db.manager.IBltFileManager.

◆ setConfigurationManager()

void eu.baltrad.dex.db.manager.impl.BltFileManager.setConfigurationManager ( ConfigurationManager configurationManager)
inline
Parameters
configurationManager

◆ setCoreFilterManager()

void eu.baltrad.dex.db.manager.impl.BltFileManager.setCoreFilterManager ( CoreFilterManager coreFilterManager)
inline
Parameters
coreFilterManagerthe coreFilterManager to set

◆ setDataSourceManager()

void eu.baltrad.dex.db.manager.impl.BltFileManager.setDataSourceManager ( DataSourceManager dataSourceManager)
inline
Parameters
dataSourceManagerthe dataSourceManager to set

◆ setFileCatalog()

void eu.baltrad.dex.db.manager.impl.BltFileManager.setFileCatalog ( FileCatalog fileCatalog)
inline
Parameters
fileCatalogthe fileCatalog to set

Member Data Documentation

◆ ENTRIES_PER_PAGE

final int eu.baltrad.dex.db.manager.impl.BltFileManager.ENTRIES_PER_PAGE = 16
static

Number of file entries per page

◆ SCROLL_RANGE

final int eu.baltrad.dex.db.manager.impl.BltFileManager.SCROLL_RANGE = 11
static

Number of pages in the scroll bar, must be an odd number >= 3


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